Balance
balanceRemaining sats and the hourly buy limit. maxBuysPerHour and remainingBuysHour are on this result. Do not call this before buying. A paid top-up is credited from the payment event. session_budget_sats sets the session cap up to the saved limit. reset_session starts a new session within that saved limit. Set issue_link_code only when the human asks for a one-time code to show this agent on an email sign-in, or to move this balance onto another sign-in. When Lightning payments are temporarily paused, the result includes paymentsPaused and retryAfter.
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": "balance"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reset_session | No | Start a new session. Clears this session spend and restores the session cap to the saved account limit. It does not raise that limit or the daily limit. | |
| issue_link_code | No | Set true only when the human wants a one-time code. Paste it at https://amazap.com/balance to show this agent on an email sign-in. https://amazap.com/credits#link-agent moves the balance onto a different signed-in agent. Leave unset for a normal balance check. | |
| session_budget_sats | No | Set the session cap to this many sats, up to the account saved limit. A higher number is refused and nothing changes. A lower cap can be raised again up to that saved limit. (minimum 1). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | approval_required, limit_exceeded, or insufficient_balance. | |
| paid | No | ||
| which | No | per_call, per_day, per_session, per_hour_buys, per_minute_calls, or per_minute_sats. | |
| status | No | ||
| message | No | ||
| quoteId | No | ||
| results | No | Search rows when this is a search result. | |
| totalCost | No | ||
| totalSats | No | ||
| approvalUrl | No | Page where the person approves this exact price. |