Spend from wallet
spendDebit the wallet and mint a receipt. Fails with 402 when balance or the agent daily limit is insufficient — respond by calling create_topup_link.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | No | Agent key (agp_…). Optional when the MCP connection sends Authorization: Bearer. | |
| ref | No | Idempotency-ish external reference | |
| tool | No | Optional tool label | |
| service | No | Optional service label | |
| approvalId | No | Approval id from a prior approval_required response | |
| amountCents | Yes | Amount in USD cents | |
| description | Yes |