Skip to main content
Glama

Get credit balance

get_credits_balance
Read-onlyIdempotent

Return the current credit balance. With estimate_model or estimate_type, also estimates one generation (same as estimate_generation). Credits are checked automatically when a generation is submitted.

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

Input Schema

NameRequiredDescriptionDefault
skills_usedNoOptional workflow analytics: names of the skills (or skill/reference paths) followed for this call. Stored with generation jobs only. Never include private data, local paths or media URLs.
estimate_typeNoOperation to estimate, as in estimate_generation (image, video, speech, html_video…). video_edit needs estimate_model; 3d_model is not available on this server and says so.
estimate_modelNoModel ID to estimate.
estimate_paramsNoArguments of the generation to estimate.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, open-world), so the bar is lower. The description still adds real context beyond them: that the call doubles as an estimator when estimate params are supplied, and that credit checks happen automatically at generation submission, which tells the agent this is informational rather than a gate.

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 the primary function, followed by the conditional mode and a relevant operational note. No repetition of the title and no filler.

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, the description carries the burden of return-value expectations, and it only implies them: the bare call returns a balance, the parameterized call returns an estimate, but the shape of either is unstated. Everything needed to invoke the tool correctly is present, so the gap is minor rather than disqualifying.

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 would be 3. The description earns above baseline by disclosing the behavioral coupling the schema cannot express: supplying estimate_model or estimate_type switches the call into estimation mode equivalent to estimate_generation. It says nothing about estimate_params or skills_used, but those are fully documented in 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?

The description names a specific verb and resource ('Return the current credit balance') and adds a second mode keyed to estimate_model/estimate_type, explicitly tying that mode to the sibling estimate_generation. An agent can tell what the tool does without opening the schema, though the dual-mode nature makes it slightly less crisp than a single-purpose tool.

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 clear conditional guidance: call bare for the balance, pass estimate_model or estimate_type to also estimate a generation, and notes that credits are validated automatically on submission (so no pre-check is strictly required). It stops short of explicit when-not guidance or stating which of this tool vs estimate_generation to prefer when both would work.

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.