Check Spend Approval
alterlab_approvalCheck the status of a spend approval raised when a batch or crawl is estimated above the key's approval_above_usd threshold. Use after alterlab_batch or alterlab_crawl returned status pending_approval with an approval_id: show the approval_url to your human, poll this tool (about every 30 seconds) until status is approved, then resubmit the identical request with approval_id. Status is pending, approved, denied or consumed. An API key cannot approve its own spend. Free.
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": {
"approval_id": "<approval_id>"
},
"name": "alterlab_approval"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| approval_id | Yes | approval_id from the pending_approval response |