Skip to main content
Glama

Credit balance

get_credit_balance
Read-only

Credits left on this key, and its plan.

Same tier as get_plan. credits_remaining is what a metered key can still spend. It is null when unlimited is true. resets_at is when the included monthly allowance returns; a grant does not refill then. Included credits are spent before grants.

Talk to the user in plain words: no tool, parameter or field names. Say "the American Spend model", never "panel" or a data source.

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_credit_balance"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnlyHint=true, destructiveHint=false), and the description goes on to add real semantics: credits_remaining is spendable, it is null when unlimited is true, resets_at marks the monthly allowance return, grants do not refill then, and included credits are consumed before grants. These are behavioral facts an agent cannot derive from annotations or an empty schema.

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?

The resource is stated first, then the two return fields are unpacked, then the spending-order rule. The closing paragraph is a plain-language rendering instruction that is useful but is not about the tool itself, so it slightly dilutes focus.

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?

With no output schema and no parameters, the description carries the burden of explaining the return shape, and it does so for credits_remaining, unlimited, and resets_at including their interdependencies. The plan value itself is not explained, which is the one 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 the baseline is 4 and there is nothing the description needs to compensate for on the input side.

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?

"Credits left on this key, and its plan" names the resource (credits, plan) and the scope (this key) precisely, so an agent knows what comes back. It lacks an explicit verb and the reference to get_plan is only a loose nod at differentiation, so it falls 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 Guidelines2/5

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

"Same tier as get_plan" is the only guidance, and it never says what 'tier' means or when to call this instead of get_plan. There are no when-to-use or when-not-to-use conditions anywhere in the description.

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.