Get account balance
balance_getCurrent balance of the Hubris account the API key belongs to, in rubles.
Worth checking before a long or expensive run: requests are refused once the balance is spent. The balance can go slightly negative — one operation is allowed to overdraw it, and the next one is refused.
Two representations of the same number come back. Use balanceKopecks for arithmetic and comparisons — it is an exact integer string. Use balanceRub for display.
A key that does not show account money answers differently: moneyView is "own", balanceRub/balanceKopecks are null, and the key is instead stopped by its own spend limit — use limitRemainingKopecks (exact integer string) for arithmetic and limitRemainingRub for display; both are null when the key has no limit.
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_get"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| moneyView | No | Present only on a key that does not show account money: "own" — the key sees only its own limit, never the account balance. | |
| balanceRub | Yes | Account balance in rubles as a decimal string, e.g. "1240.55". Negative when overdrawn. null when moneyView is "own". | |
| balanceKopecks | Yes | The same balance in kopecks as an integer string; use it for arithmetic. null when moneyView is "own". | |
| limitRemainingRub | No | Only when moneyView is "own": how much this key may still spend in its limit window, rubles; null when the key has no limit. | |
| limitRemainingKopecks | No | Only when moneyView is "own": the same remaining limit in kopecks as an integer string; null when the key has no limit. |