Check how much credit a token has left
credits_balanceFree. Reports the remaining balance on a credit token so you can tell 'out of credit' apart from 'the call failed', which otherwise look identical from the outside. This tool is free; no payment is required.
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": {
"credit_token": "<credit_token>"
},
"name": "credits_balance"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| credit_token | Yes | The credit token to check |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| currency | No | Always 'USD' | |
| balance_usd | Yes | Credit remaining, in dollars | |
| balance_micros | No | Credit remaining in integer micro-dollars, the authoritative figure |