Spend under a mandate
mandate_spendCall before each payment: checks the mandate and, if allowed, deducts the amount from the budget and records the payment in the agent's tamper-evident log. Refused payments are logged as blocked. Refused at once if the kill switch is on. Over the organization's live-approval threshold it returns approval_required with an approve_url for the human; call again with approval_id once they approve. Requires the organization API key.
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": {
"mandate_id": "<mandate_id>",
"amount_usdc": "<amount_usdc>",
"payee": "<payee>"
},
"name": "mandate_spend"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| payee | Yes | Who is being paid: 0x address or domain | |
| reference | No | Order, invoice or transaction reference | |
| mandate_id | Yes | mdt_... ID | |
| amount_usdc | Yes | Payment amount in USDC | |
| approval_id | No | apr_... : the human's live approval, if this payment is over the agent's approval threshold |