Guardrails and approvals

Guardrails

What each server's agents may do at each risk level.

Every MCP server has guardrails: one choice for each risk level. Tracehold gives every call a risk level first, from each cloud's own data, so the same four rows mean the same thing on every cloud. Your organization can change any action's level.

The four levels are Read, Change, Destructive and Critical (what each covers). For each level, pick one:

ChoiceWhat happens
AllowYour connector runs it, with a key for that one call
Allow + alertIt runs, and an alert is raised for someone to look at later
Ask a personIt waits in Approvals (and Slack) until someone approves it
BlockIt never runs; the agent is told why, and given a safer alternative when Tracehold has one for that action

Presets#

PresetReadChangeDestructiveCritical
Balanced (default)AllowAllowAsk a personBlock
Every change asksAllowAsk a personAsk a personAsk a person
Read onlyAllowBlockBlockBlock

Set them in the server wizard, on the server's Guardrails tab, or on the server's card under Guardrails. A badge sums each server up: Moves freely, Asks a person, Read only or Guarded. A change applies to the very next call.

Monitor mode shows what they would do#

A server in Monitor mode decides every call exactly as it would in production. A call production would allow runs, so the agent can do its work while you watch. A call production would send to a person or block is only recorded: it does not run and nobody is asked. The agent is told what production would do:

Recorded, not run: this server is in monitor mode, where allowed calls run
and the rest are only recorded. In production this call would wait for a
person to approve it (Guardrail: Destructive actions are sent to a person
on this server).

Sessions show those calls as Would ask or Would block, and the server's Preview production impact counts them, so you can adjust the guardrails before switching to Production. In the API a server in monitor mode has "deploy_mode": "sandbox".

Order of checks#

  1. Exceptions: the first matching rule decides.
  2. The server's guardrails decide the rest.
  3. An allowed call whose arguments carry prompt-injection text or a plaintext credential is sent to a person instead.
  4. On a server in monitor mode, a call production would hold or block is recorded and nothing more happens; an allowed call runs.

API#

PUT /api/v1/servers/{id} with {"guardrails": "every_change"} (a preset sets all four levels) or a partial matrix such as {"guardrails": {"CRITICAL": "ask"}}, which changes only the levels it names and keeps the server's others. Unknown levels or choices are refused with a 422. The server response includes guardrails, guardrails_preset and guardrails_badge.