Skip to main content
Glama

Get your account balance

get_balance
Read-onlyIdempotent

Free; reads only. Returns your prepaid account balance in US dollars, so you can check a batch is affordable before running it. Needs an account API key on the connection (Authorization: Bearer tn_live_…). With x402 there is no balance: each call is paid from your own wallet.

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. Added

TDQS

A4.7/5.0
Behavior4/5

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

The annotations already declare readOnlyHint, idempotentHint, destructiveHint=false, and openWorldHint=false. The description adds real context beyond them: the call is free, it requires Authorization: Bearer tn_live_…, and the x402 payment mode has no balance at all. It does not cover rate limits or error behavior, so it falls short of a 5.

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

Conciseness5/5

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

Three short sentences, front-loaded with cost and safety ('Free; reads only.'), then the return value, then the authentication and x402 caveats. No sentence is redundant and none repeat the schema or annotations verbatim.

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?

For a zero-parameter read tool with full annotation coverage, the description covers what is returned, the units, the auth requirement, and the exception case. Nothing necessary to call 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 the baseline score is 4. The description correctly implies no input is needed, and the only input discussed is the connection credential, which is not a schema parameter.

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?

States a specific verb and resource: reads and returns the prepaid account balance in US dollars. It is unmistakably distinct from the siblings (get_call, get_tool, run_tool, search_tools), which deal with tools and calls rather than billing state.

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?

Explicitly names the moment to use it, checking whether a batch is affordable before running it, and names the case where it does not apply because with x402 there is no balance and each call is paid from the user's own wallet. It also states the prerequisite of an account API key on the connection.

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