Skip to content

Tool approvals

Mark any tool approval: true. The catalog’s slack and stripe tools have it on by default.

assistant:
tools:
- use: slack # approval already on
- type: http
name: refund
method: POST
url: https://billing.example.com/refunds
approval: true
- type: mcp
name: ops
url: https://ops.example.com/mcp
approval: true # every tool of this server

When the model calls such a tool, the turn stops before running it and /chat returns pending (each call’s id, name and arguments), an approvalToken and messages. To continue, send back:

{ "messages": [...], "approvalToken": "...", "approvals": { "<call id>": true } }

Approved calls run; denied ones are reported to the model as not performed.

The token is an HMAC over the model’s exact tool calls with a per-deploy key. Changing the arguments or inventing a call gets HTTP 400.

  • Playground: Approve and Deny buttons.
  • CLI: agent-platform chat asks Allow <tool>(<args>)? [y/N].
  • MCP and the chat widget: approval tools never run there.

Every request and decision made through the platform is in the audit log.