Agents

Tool drift and decoy tools

Report an agent's tool definitions to catch changes, and pause an agent the moment it calls a tool it should never call.

A changed tool definition is a known prompt injection route: new instructions or arguments slipped into a tool the agent already trusts. A decoy is a tool no legitimate task uses; a call to one means the agent was steered. The harness and the MCP gateway report both for you. These are the endpoints they use.

Report tools#

POST/v1/auth/:app_id/agent/toolsTask token
toolsobject[]required
Each { "name": "...", "hash": "..." }, where hash is a hash of the tool's definition (name, description, input schema). Up to 500 are read.
curl -X POST https://api.scute.io/v1/auth/$SCUTE_APP_ID/agent/tools \  -H "Authorization: Bearer $TASK_TOKEN" \  -H "Content-Type: application/json" \  -d '{ "tools": [ { "name": "refund_invoice", "hash": "9f2c..." }, { "name": "lookup_invoice", "hash": "41ab..." } ] }'
{ "known": 1, "new": [], "changed": ["refund_invoice"] }
CaseWhat Scute does
First report for the agentSets the baseline quietly. Every tool counts as known.
Same hash as beforeknown
A tool not seen beforeListed in new. A new_tool item goes to the monitors inbox.
A different hashListed in changed. Records app.authz.agent.tool_drift, puts a tool_drift item (with the old and new hash) in the inbox, and sends a warning alert.

Reporting never blocks the agent. To hold a changed MCP tool until someone approves it, use tool pinning in the MCP gateway.

GET/v1/apps/:app_id/authz/agents/:slug/toolsApp key

The tools the agent reported, by name, each with hash, previous_hash, changed_at, first_seen_at and last_seen_at.

Decoy tools#

Give the agent a tool it should never call, with a name that looks useful to a steered model. When it is called, report it.

POST/v1/auth/:app_id/agent/decoysTask token
toolstringrequired
The decoy's name. Up to 200 characters.
curl -X POST https://api.scute.io/v1/auth/$SCUTE_APP_ID/agent/decoys \  -H "Authorization: Bearer $TASK_TOKEN" \  -H "Content-Type: application/json" \  -d '{ "tool": "export_all_customers" }'
{ "paused": true, "say": "I can't continue with this. A person will follow up." }

The agent is suspended at once with the reason Called the decoy tool export_all_customers, and every open task ends, including the one that made the call. Scute records app.authz.agent.decoy_triggered, puts a decoy item in the inbox and sends a critical alert. Look at what the agent was asked to do before you resume it.