Skip to main content
Glama

get_balance

Get the credit balance, spend cap and amount spent for a tai_ API key.

Input Schema

NameRequiredDescriptionDefault
api_keyNotai_ key (optional if sent as Authorization: Bearer header)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

No annotations exist, so the description carries the full burden; it does partially meet this by naming the three values returned and implying a non-destructive read via 'Get.' However, it says nothing about whether the key must be valid, behavior when the key is missing/invalid, or whether the call is billable.

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?

A single sentence that front-loads the verb and enumerates the payload with zero filler. Nothing could be removed without losing information.

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?

For a simple read tool with one optional parameter and no output schema, the description effectively doubles as a return-value hint by naming balance, cap, and spend. Only auth-failure behavior and the relationship to get_usage/get_stats are missing.

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

Parameters3/5

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

One optional parameter at 100% schema description coverage, so the schema already explains the tai_ key and the Bearer-header alternative. The description only echoes that the call is keyed by a tai_ API key, adding no format, precedence, or error semantics beyond the schema.

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 ('Get') and enumerates the exact resources returned: credit balance, spend cap, and amount spent, scoped to a tai_ API key. This differentiates it in substance from get_usage and get_stats, though it never names those siblings to make the boundary explicit.

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

Usage Guidelines3/5

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

Usage is only implied by the returned fields — an agent can infer 'call this to check account financial state.' There is no explicit when-to-use, no exclusion, and no mention of the overlapping get_usage/get_stats tools, leaving the agent to disambiguate on its own.

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