Agent Gateway

Per-tool policy bindings

Field reference for per-tool OPA policy bindings on an MCP Proxy hop, configured from the Managed Agent’s via MCP Proxy endpoint rather than a standalone canvas element.

Per-tool policy bindings attach an Open Policy Agent (OPA) policy to an individual MCP tool name, so one tool’s tools/call requests can be evaluated against a different Rego rule than another’s. This is not a draggable canvas element. Select a Managed Agent node on an MCP surface, set Endpoint Type to via MCP Proxy, then select the node labelled MCP Proxy in the chain of nodes the canvas adds between the Managed Agent and the proxy.

Looking for the MCP Tool Gating element, which filters tools by regex on the canvas? See MCP Tool Gating element.

  • Leave Default Tool Policy unset and add no per-tool rules to leave every tool callable with no gating.
  • Set a Default Tool Policy to evaluate every tool that has no rule of its own against that one policy, instead of allowing it unconditionally.
  • Add a per-tool rule only for the tools that need a policy different from the default. Once you add a per-tool rule, set a Default Tool Policy too, or every tool without a rule is denied.

Fields

Each row in the Per-Tool Access Control list configures one tool, and Add Tool Policy adds a row. Default Tool Policy sits above the list and applies to every tool the list does not cover.

FieldWhat it doesDefault
Tool nameName of the MCP tool this rule applies to. Must match the tool name exactly, including case, as the MCP server or proxy defines it.—
Policy (the select beside the tool name)The policy this tool is evaluated against at tools/call time, selected by name from your existing policies. It reads the MCP tool policy input.“– Select policy –”
DescriptionA note shown in the dashboard, with the placeholder “Description (optional)”. Has no runtime effect.—
Default Tool PolicyThe policy evaluated for any tool the list does not cover.None. With no per-tool rules, every tool is allowed. With at least one per-tool rule, a tool without a rule is denied.

MCP Tools node

The chain of nodes for a via MCP Proxy endpoint is MCP Proxy → REST API → MCP Tools. The last node in that chain is labelled MCP Tools, and it is a read-only view unrelated to per-tool policy bindings: selecting it opens a filterable Exposed Tools list, fetched live from the proxy, with no policy fields. To edit per-tool policy bindings, select the node labelled MCP Proxy instead.