Skip to content

MCP tool policy ​

A set of rules, enforced outside the model, that decides whether a given agent or client may call a given MCP tool with given arguments: allow it, deny it, or hold it for a person to approve.

MCP says how tools are listed and called, not who may call what. The tools spec asks servers to "implement proper access controls" and says there "SHOULD always be a human in the loop with the ability to deny tool invocations". OWASP's MCP cheat sheet asks for least privilege "per MCP server and per tool" and explicit confirmation for "destructive, financial, or data-sharing operations". A tool policy is where those requirements become rules.

A useful rule names a few things:

  • Who: a role, an agent's workflow or a gateway client.
  • What: a server and a tool name or pattern, such as delete_*.
  • When: optionally, conditions on the arguments (env equals prod) or on the tool's declared hints.
  • Effect: allow, deny or require approval.

Three design points matter. Enforce the rules in code at call time, not in the prompt, because text in the context can talk a model out of its instructions. Hide denied tools from the model's list too, so it does not try them. And let a narrower rule beat a broader one, so an exception can sit inside a wide deny.

Example ​

EffectScopeResult
denytool delete_*, project Financeno deletes in Finance, for anyone
require approvaltool issue_refund, amount greater than 500big refunds wait for a person
allowtool issue_refund, amount greater than 500, role adminadmins' big refunds go through without the wait

Common confusion ​

Tool policy is not the same as the server's own authorization. An OAuth scope says what the token may do at the server; a tool policy says what this agent, in this context, should do with it. You usually want both.

In L2M ​

Optional, and off until an admin adds a rule. MCP tool policy rules allow, deny or require approval by project, role, server, tool pattern, arguments, annotation hints, workflow or gateway client. With no matching rule a call is allowed, deny beats allow unless an allow is strictly narrower, and any rule can run in shadow mode first.

Further reading ​

This website (not the L2M product) uses Google Analytics, only after you accept cookies. Cookie settings