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.

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Output 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_minuteYesRate with a Standard voice.
default_voice_credits_per_video_minuteYesRate with the Studio voice projects use unless another is chosen; use this for estimates.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedOutput schema / properties / credits_per_video_minute / description
      Previous value: -"Base rate for a standard voice."New value: +"Rate with a Standard voice."
    • addedOutput schema / properties / default_voice_credits_per_video_minute
      Added value: +{
      +  "description": "Rate with the Studio voice projects use unless another is chosen; use this for estimates.",
      +  "type": "number"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "balance",
      -  "in_flight",
      -  "available",
      -  "credits_per_video_minute",
      -  "top_up"
      -]New value: +[
      +  "balance",
      +  "in_flight",
      +  "available",
      +  "credits_per_video_minute",
      +  "default_voice_credits_per_video_minute",
      +  "top_up"
      +]
  2. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, openWorldHint=false and destructiveHint=false, so the safety profile is covered structurally. The description adds genuinely new behavioral context beyond those hints: it reports both reserved and available amounts (implying in-flight runs can consume the balance) and it instructs the agent to hand top-up links to the user rather than acting on them.

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?

It is a single front-loaded sentence with no filler, listing the returned values in a sensible order before ending with the actionable top-up hint. It is dense but slightly run-on, packing five distinct outputs into one clause chain.

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?

An output schema exists, so the description is not obliged to document return values, yet it summarizes them usefully and adds the human-in-the-loop top-up guidance that a schema cannot convey. For a zero-parameter read tool with full annotation coverage, nothing essential is missing, though the relationship to top_up could be stated.

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 there is nothing for the description to disambiguate; the baseline of 4 applies. The description spends its words on return content instead, which is appropriate for a parameterless call.

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 resource (the organisation's credit balance) and enumerates exactly what is reported: reserved credits, available credits, the credits-per-minute rate, and top-up links. That is far more precise than the title alone, though it never names the sibling top_up tool, so the boundary between 'fetch links' and 'perform a top-up' is left implicit.

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: 'top-up links to hand to the user when the balance is short' suggests checking the balance before starting runs and deferring the actual top-up to the user. There is no explicit statement of when to call this versus top_up, nor of how often it should be polled.

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.