McpRule interface

A single rule within an MCP policy.

Properties

action

The action to take for the specified MCP tools.

matchingConditions

The conditions of the rule. A rule without an action uses defaultAction.

name

The name of the rule: 1 to 63 ASCII letters, digits, '_', '.' or '-', starting with a letter or digit, and unique within the policy ignoring case. Flow logs report the rule that decided as mcp-<n>/<name>.

priority

The priority of the rule, unique within the policy. Rules are tried from the lowest value and the first rule that matches decides; a policy has 1 to 5 rules. When none matches, defaultAction applies to every MCP request except session requests (initialize, ping, notifications, the list methods, JSON-RPC responses, and requests with no body such as GET and DELETE), which pass.

tools

Deprecated. Legacy MCP tool names retained for compatibility; use matchingConditions.destinations.toolMatching.names for new rules.

Property Details

action

The action to take for the specified MCP tools.

action?: string

Property Value

string

matchingConditions

The conditions of the rule. A rule without an action uses defaultAction.

matchingConditions?: McpRuleMatchingConditions

Property Value

name

The name of the rule: 1 to 63 ASCII letters, digits, '_', '.' or '-', starting with a letter or digit, and unique within the policy ignoring case. Flow logs report the rule that decided as mcp-<n>/<name>.

name?: string

Property Value

string

priority

The priority of the rule, unique within the policy. Rules are tried from the lowest value and the first rule that matches decides; a policy has 1 to 5 rules. When none matches, defaultAction applies to every MCP request except session requests (initialize, ping, notifications, the list methods, JSON-RPC responses, and requests with no body such as GET and DELETE), which pass.

priority?: number

Property Value

number

tools

Deprecated. Legacy MCP tool names retained for compatibility; use matchingConditions.destinations.toolMatching.names for new rules.

tools?: string[]

Property Value

string[]