request_approval
Registers a consequential action for human approval before execution and returns a request ID, letting agents gate sends, deletes, payments, or deployments on an out-of-band decision.
Instructions
Register a consequential action for human approval BEFORE performing it. Returns a request id. The action is NOT executed by this server; status 'approved' does NOT authorize anything by itself. Right before acting, call consume_approval with the same id, the exact action text and the same operation/payload if you supplied them; proceed only on ok:true. Anything else means no (fail closed).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | Precise description of the action you intend to take, e.g. 'send email to alice@example.com with subject X' | |
| reason | Yes | Why this action is needed right now | |
| payload | No | Optional JSON payload the action will execute (at most 32768 bytes canonical). The human reviews it; consume must present an identical payload. | |
| operation | No | Optional operation name a trusted executor must present, e.g. 'smtp.send' (A-Z a-z 0-9 . _ : / -) | |
| ttl_seconds | No | How long the request stays valid, pending or approved (default 1 hour) | |
| requested_by | No | Identifier of the requesting agent or workflow (self-reported, not authenticated) |