The MCP gateway hashes every tool definition the upstream server lists and reports the hashes to Scute. A tool whose definition changes after you trusted it is held (quarantined) until someone approves the new definition. The gateway hides held tools from tools/list and refuses calls to them. This stops a server from slipping new instructions or arguments into a tool the agent already uses.
The hash#
toolHash(tool) from @scute/mcp-gateway: SHA-256, as hex, over a stable JSON form (keys sorted) of the tool's name, description, inputSchema, outputSchema and annotations.
import { toolHash } from "@scute/mcp-gateway";const hash = await toolHash({ name: "refund_invoice", description: "Refund an invoice", inputSchema: { type: "object" } });Pin mode#
Set pin_mode in the app's MCP sign-in settings.
| Case | trust_first_use (default) | approve_new |
|---|---|---|
| A tool seen for the first time | Pinned to its hash | Held until approved |
| A pinned tool with a new hash | Held until approved | Held until approved |
A held tool keeps its approved hash; the new one waits as the pending hash. Approving moves the pending hash in and pins the tool again.
What the gateway does#
- On tools/list, it reports the listed tools and drops held ones from the answer.
- On tools/call, a held tool answers a tool error: "... is new or changed and is held for review in Scute. Don't retry it; tell the person."
- When a client calls a tool before any list was reported (or the gateway restarted), the gateway lists the upstream's tools itself first. While Scute cannot confirm the pins, tool calls are refused.
- If a report fails during a list, the list still answers; calls to held tools are still refused.
pinning: false turns all of this off. Keep it on.
Review held tools#
Held tools show on the app's MCP sign-in page in the dashboard, and through these endpoints. :id is the MCP server's id from GET /v1/apps/:app_id/oauth/resources.
/v1/apps/:app_id/oauth/resources/:id/toolsApp key{ "resource": "https://mcp.acme.io/mcp", "tools": { "lookup_invoice": { "hash": "41ab...", "status": "pinned", "first_seen_at": "2026-11-01T09:00:00Z" }, "refund_invoice": { "hash": "9f2c...", "pending_hash": "c07e...", "status": "quarantined", "changed_at": "2026-11-19T08:00:00Z" } }}/v1/apps/:app_id/oauth/resources/:id/tools/approveApp keyTakes name. Pins the tool to its pending hash. A tool with nothing to approve is a 422.
/v1/apps/:app_id/oauth/resources/:id/tools/quarantineApp keyTakes name. Holds a pinned tool by hand. An unknown tool is a 404.
/v1/apps/:app_id/oauth/resources/:id/tools/observeApp keyWhat the gateway calls. Takes tools, a list of { "name": "...", "hash": "..." } (up to 500), and answers each tool's status and quarantined, the names now held. Use it if you report tools from your own proxy.
From the dashboard, approve and hold need an owner or admin. Each newly held tool is recorded as app.oauth.tool.quarantined, and each approval as app.oauth.tool.approved.
For tools an app's own agent reports (outside MCP), see Tool drift: drift there is recorded and alerted, not held.