wait_for_approval
Submit an authorization request and wait for a human decision. Blocks execution until approved or rejected, enabling human-in-the-loop approval for risky actions.
Instructions
Submit an authorization request and BLOCK until a human approves or rejects it (or until the timeout elapses). This is the primary tool for human-in-the-loop workflows: call it, wait for the result, and proceed ONLY if status is APPROVED. If status is REJECTED or EXPIRED, do NOT proceed with the action.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"payload": "<payload>"
},
"name": "wait_for_approval"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| payload | Yes | Structured description of the action requiring authorization. Include all context a human needs to approve or reject. | |
| metadata | No | Optional additional context (correlation IDs, tags, environment, etc.). | |
| timeoutMs | No | Maximum milliseconds to wait for a human decision before giving up (default: 300000 = 5 min). | |
| callbackUrl | No | Webhook URL to notify when the request is resolved. | |
| routingMode | No | Override the routing mode configured on the matching rule. | |
| routingRuleId | No | Directly select a routing rule by ID, bypassing filter evaluation. | |
| pollIntervalMs | No | How often to poll for a status update in milliseconds (default: 3000). |