Skip to main content
Glama

Get the balance

get_balance
Read-onlyIdempotent

Get the balance

The prepaid balance and how to top it up from code: over x402 with USDC (when switched on) or with a card link for a person (the create_topup_checkout tool). Takes an agent session or a management key like every v1 operation; a model key gets 403 wrong_key_type. Also served at /v1/balance, which also accepts the account's model keys (kl_live_).

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
Behavior4/5

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

Beyond the readOnly/idempotent annotations, it discloses auth requirements (agent session or management key), a specific failure mode (model key returns 403 wrong_key_type), and an alternate route (/v1/balance) with different key acceptance. It adds little about freshness or the exact shape of the returned balance.

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

Conciseness4/5

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

Front-loads what the tool returns, then qualifies access and alternatives in a compact block. The x402/USDC top-up detail is somewhat tangential for a read tool but still supports routing decisions.

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?

Auth model, error behavior, and alternate endpoint are all covered for a zero-parameter read tool with no output schema. The return value (e.g., amount, currency, credit state) is only described loosely as "the prepaid balance," which is the remaining gap.

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 tool takes zero parameters, so there is no parameter semantics to explain; the baseline of 4 applies. Nothing in the description misleads about inputs.

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?

States a specific verb+resource ("Get the balance") and clarifies the resource is the prepaid balance, which distinguishes it from top-up tooling. It does not explicitly differentiate itself from look-alike siblings such as get_account_budget or get_usage, so it stops short of a 5.

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?

Gives an explicit redirect: to add funds, use create_topup_checkout (card link) or x402/USDC, making clear this tool is read-only retrieval rather than top-up. It does not cover when to prefer this over other read siblings like get_account_budget.

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.

Resources