Get balance
get_balanceCheck the account's current credit balance in hellers (1/100 CZK; an account of another market sees the same amount as credits, kr, in the portal), plus runway (recent daily spend and, when computable, how many days of credit remain) and notice (an upcoming concern worth surfacing to the customer: empty balance, a number fee coming due that the balance does not cover (voice numbers, mobile numbers and calls and SMS numbers), a low-runway warning, or on an account with a monthly plan subscription_exhausted_topup, subscription_cap_reached, subscription_past_due and subscription_runway, which replaces the low-runway warning for subscribers and says that at the plan's cautious pace (the highest of the 28-day average, the last 7 days and the current period so far, the same as the plan card in the portal) the balance runs out (runsOutAt) before the plan renews (renewsAt). renewsAt is epoch milliseconds, the same moment as subscription.periodEnd, which is an ISO 8601 string. When the plan is set to end after the paid period the notice also carries cancelAtPeriodEnd: true: nothing renews, renewsAt is then the end of the plan and no new monthly credit arrives, so do not promise one - null when there is nothing to flag). balanceHal is the total of monthly plan credit and topped-up credit; topupBalanceHal is the topped-up part alone (negative when the account is in debt) and subscription is the monthly plan (null without one - see get_subscription for the tiers and the full detail). topup lists the round top-up amounts in the account's own currency (topup.currency, for example EUR; the top-level currency stays CZK because it names the unit of balanceCzk): amounts with the credit each adds, defaultAmount and the custom range - pass one as amount, with currency, to create_topup_link. serviceStopped is null while the service runs; when the balance dropped below zero it is an object (since in epoch milliseconds, resumeAtBalanceHal, resuming): calls, SMS, forwarding and SIP access are stopped until the customer tops up to at least resumeAtBalanceHal, then the service resumes on its own within a few minutes (resuming: true means that is already happening). Tell the customer first when it is set. connection is the monthly spending limit of this connection (limitHal, spentHal, pendingHal, remainingHal; null when it has none): when remainingHal does not cover a paid action it fails with connection_limit_reached, and only a person can raise the limit in the portal. Use it before actions that cost money (a call, an SMS, buying a number) to make sure there is enough credit. Same data as GET /v1/balance (response schema in /openapi.json).
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 |
|---|---|---|---|
No arguments | |||