MCP Gateway Policies
Govern which MCP servers an agent may reach, which tools it may call, and what comes back.
Four decision points
The MCP Gateway evaluates its document at four stages, in pipeline order.
An effect is only legal on the stages that own it. The compiler rejects a rule that places an effect on the wrong stage, so a quota cannot be attached to a session rule and a cache mode cannot be attached to a response rule.
What you can match on
The ten control surfaces
Quota and concurrency dimensions are keyed by tenant, user, agent, mcp,
tool or group, over a fixed or rolling window.
Blocking a server
runs on sessionpriority 900
Denied at session, so the agent never sees the server's tools at all.
Hiding and denying a tool
priority 850
Denying at discovery removes the tool from the list the agent is offered.
Denying at request refuses it if the agent calls it anyway. Use both: an
agent that cached an earlier tool list can still attempt a call.
Requiring a human
runs on requestpriority 700
The call pauses until a person approves it.
Per data type actions
The MCP target carries an explicit map effect for this, so one rule can assign a different action to each data type.
runs on requestpriority 700
Each key resolves independently, so a rule that changes one data type never
erases another rule's opinion on a different one. Default sensitive data action covers any enabled category the map does not name.
Actions per sensitive data type, Default sensitive data action and
Sensitive data detectors are evaluated before content is scanned, so a rule
carrying one of them cannot also carry a data found condition. Put the data
condition in a separate rule.
Quotas and concurrency
runs on requestpriority 500
Dimensions decide what the counter is keyed by. user, mcp gives each person a
separate allowance on each MCP server. Quotas are reserved all or nothing, so a
call that would cross any limit is refused rather than partially served.
Session shape
runs on sessionpriority 800
Response handling
runs on responsepriority 400
Differences from the LLM Gateway target
Everything else - the sentence editor, drafts, immutable revisions, simulation, replay, rollback and the conversion review - works the same way on both targets. See Authoring and publishing.