Check Agent Spending
spend_checkAuthorize-only spend check against the agent's budget (no recording). Costs 1¢ per attempt.
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": {
"agent_id": "<agent_id>",
"amount_cents": "<amount_cents>"
},
"name": "spend_check"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reason | No | ||
| api_key | No | ||
| agent_id | Yes | ||
| amount_cents | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |