get_balance
Check the USDC credit balance remaining on your API key to know when to top up and avoid 402 errors from paid tools.
Instructions
[free] Credits remaining on your key. There is no free allowance: a new key starts at zero and is funded with a USDC deposit, so a balance of 0 means the paid tools will answer 402 until you top up.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_balance"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| plan | No | ||
| key_prefix | No | ||
| credit_balance | No | Credits left. A new key starts at 0. | |
| free_remaining | No | ||
| plan_expires_at | No | ||
| plan_credits_per_month | No |