Require human approval for agent tool calls
This guide is for admins of Permit MCP Gateway. Human-in-the-loop (HITL) approvals hold a sensitive agent tool call, such as deleting records or changing production data, until a human approves or rejects it. Tool calls that don't need approval run without a pause.
Human-in-the-loop approvals are available on Enterprise plans. To discuss access, schedule a demo.
Prerequisites
- An admin account on the admin dashboard (app.agent.security) with a host and an imported MCP server. See Host setup.
- An agent that completed the consent flow for that server.
Require approval for a tool
-
In the sidebar, go to MCP Servers and open the server, for example DeepWiki.
-
In the Tools card, turn on the HITL switch of the tool, for example
read_wiki_contents.
-
From the MCP client, ask the agent to call that tool. The call waits.
-
In the sidebar, open Approvals. The request appears on the Pending tab.
-
Click Approve. The tool call runs and the agent receives the result.
Verify: on the History tab, the request shows Approved. On the agent's Audit Logs tab, the tool call's reason reads "Tool call on deepwiki: allowed by the agent and person checks and approved by an approver".
How an approval works
The gateway runs its checks in a fixed order, and asks for at most one approval per call:
- The Permit checks and the trust ceiling run first. A call they deny is refused and never reaches Approvals.
- The gateway reads the server's approval rules (the HITL switches and the Server Approval Policy) and the person's "Ask me before this agent changes or deletes anything" switch.
- On a host with the Guardian on, the Guardian grades the call. A Guardian denial refuses the call at once. A Guardian doubt asks for approval when If the Guardian is unsure is set to Ask a human.
- When any of these asks, the gateway creates one approval request, notifies the approvers, and holds the call.
- On approval, the call runs. On rejection or timeout, the gateway returns an error to the agent.
The MCP client waits for the response, so you don't change any client configuration. A call also waits for an admin when the gateway can't read the tool's trust level.
Choose which calls need approval
Per-tool approval
Each tool row in a server's Tools card has a HITL switch. Turn it on to require approval for that tool. When you import a server, the Tools to Import list has the same switch for each tool.
Server approval policy
The Server Approval Policy card on the server's Overview tab applies rules to all tools on the server, in addition to the per-tool switches:
- Require approval for all tools: every tool on the server requires admin approval before it runs.
- Trust level threshold: tools at the selected trust level or higher require approval. The options are None, Low and above (all tools), Medium and above, and High only (most critical).

The per-tool switches, Require approval for all tools, and the threshold combine. If any of them requires approval, the call waits.
Guardian doubts
When the Guardian is on and If the Guardian is unsure is Ask a human (the default), a call that the Guardian finds only partly aligned with the task, or is unsure about, waits in Approvals with the Guardian's reasoning. Its card reads "The security check partly agrees with the task." or "The security check is unsure this call fits the task.", with the alignment and confidence scores. See Check agent identity and intent.
Let trusted agents skip approval
The Trusted Agent Bypass card on a server's Overview tab lists agents that skip the approval rules on that server, such as CI bots or scheduled pipelines. A trusted agent skips only the human approval step. Permit still checks every call, the Guardian still grades it when it's on, and the person's "Ask me before this agent changes or deletes anything" switch still applies.

Under Who a trusted agent skips approval for, pick one:
- Everyone (default): everyone in your org who uses the agent. Enter the agent ID, which is the agent's OAuth client ID, and click Add. The Registrations card on the agent's page lists its client IDs.
- Specific people: only the people you switch on. The card lists each agent approved on the server with the people who approved it, and a Skips approval switch for each person.
With Everyone, anyone in your org who connects with a listed agent ID skips approval on the server, even if they copied the ID into their own MCP client. Choose Specific people to trust only the person and agent ID pairs you switch on.
Review approvals
Open Approvals in the sidebar. The page has three tabs: Pending, History, and Notifications. The sidebar item and the Approvals pending (HITL) card on the Dashboard show how many requests wait.

Read an approval card
| Part | Contents |
|---|---|
| Headline | "Acme Research Agent wants to run read_wiki_contents on deepwiki for Check TheDog": the agent, the tool, the server, and the person the agent acts for. |
| Agent ID and Person ID | The agent's key, agent|<client_id>|<subject>, and the person's key, human|<subject>, each with a copy button. |
| Request details | When it was asked (for example "Asked 1m ago"), the MCP session and intent number, and what the tool does: Reads data, Changes data, or Deletes data. |
| Timer | The time left before the request times out, starting at 5:00. |
| Reason | Why the call is waiting: the first reason, for example "A policy rule asks an admin to approve this tool." Click Details to see every reason. |
| Arguments | The exact arguments of the call. |
A request can wait for these reasons: Policy rule (a HITL switch or the server approval policy), Judge doubt (the Guardian, with its scores and, when the Platform channel is on, its reasoning), Unknown trust level, and Ask before writes (the person's switch).

Approve or reject
Click Approve or Reject on a card. When you reject, pick a preset reason (Unauthorized scope, Suspicious arguments, Wrong environment) or type your own in Custom reason..., then click Reject. The gateway includes the reason in the error it returns to the agent.

In the last 60 seconds before timeout, the card shows a +5 min button that adds review time, up to one hour in total.
To act on several requests at once, select their cards with the checkboxes, or the checkbox above the list, and click Approve All or Reject All.
J/K navigate, A approve, R reject (opens the reason input), X select, Esc deselect.
Single-key shortcuts can be turned off on the Approvals page. Esc works either way.
To get a desktop notification for each new request while the admin dashboard is in a background tab, click Enable desktop notifications and allow the browser prompt.
Approval history
The History tab lists resolved requests with the columns Time, Tool (with the reason it waited, such as Policy rule), Server, Agent, Decided By, Decision Time, and Decision. Filter by outcome with the status filter: Approved, Rejected, Timed out, or Cancelled. An admin's decision on a person's approval shows Admin override.

Notifications
Set up notifications so approvers know a request is waiting. Go to Approvals > Notifications.

- Email Recipients: enter an address and click Add. Each new request sends an email with the subject "Approval Required:
<tool>on<server>" and a link to the request in the admin dashboard. - Slack Webhook: create an Incoming Webhook in Slack, paste its URL, and click Save. The Slack message names the server and the tool, and links to the request in the admin dashboard. Tool arguments stay in the admin dashboard.
The Guardian's reasoning appears in Slack or email only when you check that channel under Settings > Agent Identity > Where the Guardian's reason shows. A host with no email recipients and no Slack webhook notifies no one outside the admin dashboard, so its requests wait until someone opens Approvals, or until they time out.
What the agent sees
When the call starts to wait, the gateway sends the MCP client a log message, then reminds it while the call still waits:
Tool 'read_wiki_contents' requires admin approval before execution. Waiting for approval (timeout: 5m)...
For a Guardian doubt, the message says the call "was flagged by the security check" instead. The agent never sees the Guardian's reasoning.
When an admin rejects the call, the agent gets an error with the admin's reason:
Tool 'read_wiki_contents' was rejected by admin: 'Use the Next.js docs for this task; React internals are out of scope.'. Contact your admin if you believe this is an error.
When nobody decides in time:
Tool 'read_wiki_contents' requires admin approval before execution. The approval request timed out after 5m without a response. Contact your admin or retry later.
On a host with Require Agent Identity on, an agent's registration stays valid for the Identity Token TTL, 60 seconds by default. A call that waits for approval usually waits longer. The approved call still runs, but the agent's next call gets "Session not registered or expired. Call gateway_register_session to re-establish your session baseline before retrying" followed by the tool name. The agent calls gateway_register_session again, then retries. See Check agent identity and intent.
Let people approve their agent's writes
On the consent screen, the person can turn on Ask me before this agent changes or deletes anything ("When on, changes wait for your approval by email. Reading runs without asking."). On that grant, a tool call whose tool changes or deletes data waits for the person instead of an admin. Read tools, resource reads, and prompts run without asking.
The gateway decides from the tool's name, and from MCP annotations that mark it as changing or deleting data. A server's read-only hints don't count by default, and never on a server a person added by URL. A name that isn't clearly a read, such as one with query or fetch, counts as a change, and so does a tool the gateway hasn't seen in the server's tool list.
When the person's switch is the only reason a call waits:
- The agent is told that the person asked to approve such calls, with a link to the approval page on the host,
https://<subdomain>.agent.security/approvals/<id>. - The person gets an email, "An agent is waiting for you on
<server>", with an Open Approval Page button. The email names the server only, not the client, the tool, or its arguments. Admins' Slack and email notifications aren't sent for it. - The person approves or rejects on the approval page. Their Your approvals page on the host lists what waits for them. Deciding needs a recent sign-in, set in Settings > Sign-in check for people's approvals (15 minutes by default). With an older sign-in, the person signs in again or enters a code sent by email. A person with a passkey confirms each decision with it.
When an admin rule or a Guardian doubt also applies to the call, the request goes to the admins alone.
Admins see person-routed requests on the Pending tab too, with a Who decides filter (All, Admins, People). Instead of Approve and Reject, the card shows Decide instead of followed by the person's name. An admin's decision is recorded as an Admin override.
A trusted agent doesn't skip the person's switch. Turning the switch off again needs the same sign-in check as a decision.
Timeouts and limits
| Behavior | Details |
|---|---|
| Default timeout | 5 minutes. If nobody decides, the gateway rejects the request. |
| Extend | In the last 60 seconds, +5 min adds review time, up to one hour in total. |
| Timeout result | A timeout always rejects the request. It never approves it. |
| Agent disconnects | If the client cancels the call, ends its MCP session, or drops the connection, the gateway cancels the request. |
| Access changes | If the person's approval of the agent is revoked, or the agent is blocked, while a call waits, the gateway cancels the request. |
| Pending limit | A host holds at most 50 pending requests by default. Further requests are refused until some are decided or time out. |
Next steps
- Check agent identity and intent: turn on the Guardian, whose doubts can wait for approval.
- Manage humans and agents: set the trust levels that approval thresholds build on.
- Audit logs: review approved and rejected tool calls.