Skip to main content
Glama

Get balance

get_balance
Read-onlyIdempotent

Check 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

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no output schema, the description carries the full burden of explaining return values and does so extensively: balance fields, runway, notice variants, serviceStopped, connection limits, and the connection_limit_reached error are all disclosed. It adds rich behavioral context beyond the annotations, including the consequence of negative balance and the fact that only a person can raise a spending limit.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single sprawling run-on paragraph with deeply nested clauses and parentheses, making it difficult to scan. While most information is relevant, the lack of structure and front-loading of the core return fields is a significant readability problem.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the absence of an output schema and the tool's nontrivial return data, the description is largely complete and explains nearly every field and condition an agent would need. Minor ambiguity remains around currency naming (hellers vs credits, kr) and the reliance on an external /openapi.json reference, but overall it is sufficient.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema has zero parameters, so there is no parameter meaning to add; the baseline for a zero-parameter tool is 4. The description correctly does not invent parameters and instead focuses on output semantics.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The opening clearly states it checks the account's current credit balance, plus runway and notice, which is a specific verb and resource. It explicitly references get_subscription and create_topup_link, distinguishing itself from those siblings, but the extremely dense parenthetical makes the core purpose harder to extract than necessary.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives explicit usage guidance: 'Use it before actions that cost money (a call, an SMS, buying a number) to make sure there is enough credit' and points to get_subscription for full plan detail. It lacks explicit when-not guidance, but the context for when to use is clear and actionable.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.