Skip to main content
Glama

get_credit_usage

The user's spendable credit balance, their latest credit history (charges, refunds, purchases; newest first, across all their movies) and what each of this movie's scene renders was charged, failed and unfinished ones included. Call it whenever the user asks about credits: their balance, what something cost, what they have spent, or whether they were charged or refunded. Answer from it, never from render status: a failed or unfinished render can have been charged, and a refund is a separate row.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "movieId": "<movieId>"
    },
    "name": "get_credit_usage"
  }
}

Input Schema

NameRequiredDescriptionDefault
movieIdYesThe movie id (uuid) this call operates on. Get it from create_movie or list_movies.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

With no annotations, the description carries the whole burden and does it well: it discloses ordering (newest first), scope (across all the user's movies vs. this movie's renders), inclusion of failed and unfinished renders, and the non-obvious fact that refunds are separate rows. The warning that a failed or unfinished render may still have been charged is exactly the kind of trap an agent could otherwise fall into.

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 content is front-loaded: what is returned comes first, then the routing rule, then the correctness caveat. The first sentence is a long parenthetical-heavy run-on, but every clause (newest first, across all movies, failed/unfinished included) adds information an agent needs.

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?

There is no output schema, so the description must convey the return shape, and it does: a balance, a history of typed rows, and a per-render charge breakdown. Combined with the single well-documented parameter, an agent has everything needed to call it and interpret the result.

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% for the single movieId parameter, so the baseline is 3. The description goes slightly beyond by clarifying that movieId scopes only the per-scene render charge breakdown, while the balance and credit history are user-wide — a distinction the schema does not convey.

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 uses specific nouns for a specific resource: 'spendable credit balance', 'latest credit history (charges, refunds, purchases)', and 'what each of this movie's scene renders was charged'. It also explicitly separates itself from render status reporting, so an agent can distinguish it from get_render_status without opening either schema.

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

Usage Guidelines5/5

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

It gives an explicit trigger ('Call it whenever the user asks about credits: their balance, what something cost, what they have spent, or whether they were charged or refunded') plus an explicit rule not to answer from render status. That is both a when-to-use and a when-not-to-use instruction.

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