Skip to main content
Glama

Get credits

get_credits
Read-onlyIdempotent

The organisation's credit balance, credits reserved by runs in progress, what is available, the rate (credits per minute of video), and top-up links to hand to the user when the balance is short.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
top_upYes
balanceYesCredits on the account.
availableYesbalance minus in_flight, never below 0.
in_flightYesCredits reserved by runs in progress.
credits_per_video_minuteYesBase rate for a standard voice.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and idempotentHint=true, so the description does not need to repeat safety. It adds value by indicating the tool reports the rate and top-up links, and suggests handing those to the user when balance is low. This is useful behavioral guidance but not extensive. No contradiction with annotations.

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?

The description is a single sentence, free of filler, and front-loaded with the primary purpose. It packs several relevant details (balance, reserved, available, rate, top-up links) without excessive length.

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 tool with an output schema that presumably documents the return structure, the description is complete. It covers what the agent needs to know to call it and what to do with the results (hand top-up links to user). No gaps in calling or interpretation.

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 has zero parameters, so there is nothing to document. The baseline for this case is 4, and the description adds no conflict. It focuses on output content rather than parameters, which is appropriate.

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?

The description clearly states the resource (credits) and enumerates specific aspects (balance, reserved, available, rate, top-up links). It is distinct from sibling top_up, which is for adding credits, and from other tools like get_run or list_projects. The verb is implicit but the noun phrase is precise.

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?

The description implies it is used to check credit-related information, and the mention of 'hand to the user when the balance is short' gives a usage cue. However, it does not explicitly contrast with alternatives like top_up or state when not to use this tool. Why an agent would choose this over other tools is left to inference.

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.