Get spend headroom
get_spend_balanceReturn the bound spend key’s policy headroom for the last 24 hours: daily remaining, pending, and paid. This is not the on-chain USDC wallet balance — use get_wallet_balance for that. Call this before pay_offering to check whether a pay would hit the daily cap. Related: get_wallet_balance, get_limits.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_spend_balance"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | Reminder that this is not on-chain wallet balance. | |
| label | No | Label the owner gave this spend key. | |
| authMode | No | How this MCP session authenticated. | |
| clientName | No | OAuth client name when authMode is oauth (e.g. Claude). | |
| dailyCapUsd | No | Maximum USD this key may request in 24 hours. | |
| perTxMaxUsd | No | Maximum USD this key may request in one pay. | |
| spentLast24hUsd | No | Pending plus paid USD started by this key in the last 24 hours. | |
| remainingDailyUsd | No | dailyCapUsd minus spentLast24hUsd. Policy headroom only. |