Skip to main content
Glama

Show your account balance, credit and earnings

account_balance
Read-only

Shows your gaents account: balance in USD, money received by kind (starter credit, paid top-ups, sales), active API keys, seller earnings if you sell, and how to top up. Use it to check you can afford a paid call, or to see your balance after one. Use job_status instead for one past call's outcome and charge. Use seller_statement instead for every ledger row in a period. Free: reading your account is never charged. Auth: Authorization: Bearer (POST /v1/accounts gives one). Errors (isError, error.code): 401 bad_api_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": "account_balance"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
topupNohow to add credit and its limits
sellerNoseller earnings, or null when you sell nothing
accountYes
money_inNo
balance_usdYes
keys_activeNo
balance_microNo
payments_openNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.8/5.0
Behavior5/5

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

Beyond readOnlyHint, it discloses that reads are never charged, supplies the auth mechanism (Bearer API key, obtainable via POST /v1/accounts), and documents the failure mode (isError with error.code 401 bad_api_key). This is material context an agent needs before calling.

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-loaded with purpose, then usage, then alternatives, then operational facts (cost, auth, errors) — a sensible ordering. The enumeration of money kinds and the inline error/auth details make it dense, but each clause carries real information.

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

Completeness5/5

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

A zero-parameter read tool with an output schema, annotations, and a description that pre-explains the returned categories plus auth and error behavior. Nothing an agent needs to invoke it correctly is missing.

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 nothing the description could clarify beyond the schema; baseline 4 applies. No misleading parameter claims are present.

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

Purpose5/5

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

Specific verb (shows) plus resource (your account) with an explicit enumeration of what is returned: USD balance, money received by kind, active API keys, seller earnings, top-up guidance. An agent can immediately distinguish it from job_status and seller_statement.

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

Usage Guidelines5/5

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

States two concrete situations to use it ('check you can afford a paid call', 'see your balance after one') and explicitly routes to job_status for a single past call's outcome/charge and to seller_statement for full ledger rows in a period. Both when-to-use and when-not-to-use are covered.

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