Check a spend against a task envelope
check_spendCheck whether a proposed agent spend is inside a task envelope. Returns verdict, rule, reason, counterfactual and next. No state is stored.
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": {
"envelope": "<envelope>",
"amount": "<amount>",
"payee": "<payee>"
},
"name": "check_spend"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| payee | Yes | ||
| amount | Yes | ||
| envelope | Yes | ||
| calls_so_far | No | ||
| spent_so_far | No | 0 | |
| is_subscription | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |