Get balance
get_balanceThe user's Qumge balance, plus what each Cap has spent this month against its monthly limit. Call this before a paid call when the user asks whether they can afford it, and after a 402 that says the balance or a limit stopped the call — it returns the top-up link to hand to the user. Needs the user's qumge key.
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_balance"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| qumge_key | No | Optional: your Qumge API key, for clients that cannot set an Authorization header. Takes precedence over the header. Never echoed back. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| caps | No | ||
| topup_url | No | ||
| frozen_micro_usd | No | ||
| balance_micro_usd | Yes | ||
| available_micro_usd | Yes | ||
| withdrawable_micro_usd | Yes |