Skip to main content
Glama

Check Balance

check_balance
Read-onlyIdempotent

How many tokens you have left: your token balance, the tokens spent today, and any daily limit with what remains. Use this whenever someone asks how many tokens or credits they have. Optionally pass an estimatedCost (USD) to also get whether you can afford it.

Input Schema

NameRequiredDescriptionDefault
estimatedCostNoOptional dollar amount to test against your daily limit.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare this as a read-only, idempotent, non-destructive, closed-world operation, so the safety profile is covered. The description adds substantive context beyond that: the exact three data points returned and the fact that passing estimatedCost yields an affordability check, which annotations cannot convey.

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?

Two sentences, front-loaded with what the tool returns, followed by the trigger condition and the optional parameter's effect. Every clause earns its place with no repetition of the tool title.

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 one-parameter, read-only tool with no output schema, the description covers all an agent needs: what is returned, when to call it, and what the optional parameter changes. Nothing material 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?

Schema coverage is 100%, so the baseline is 3, but the description adds meaning the schema does not: the parameter is in USD and its effect is to return whether the caller can afford the estimated cost. That is a genuine semantic addition over the schema's terse 'test against your daily limit.'

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 description states a specific verb and resource ('check your token balance') and enumerates exactly what is returned: remaining tokens, tokens spent today, and daily limit with what remains. It is clearly distinct from siblings like spend_log or list_generations, though it never names an alternative to contrast with.

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 an explicit trigger: 'Use this whenever someone asks how many tokens or credits they have,' which is a clear usage condition. It does not state when-not to use it or point to alternatives such as spend_log for detailed spend history.

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