Skip to main content
Glama

Get credit balance and costs

get_credits
Read-only

Return the authenticated user's credit balance and the live per-action credit costs (keys image, clip, clip_10s, scene_staged, motion_per_second, motion_wan_per_second, scene_replace_per_second, merge).

Instructions

Return the authenticated user's credit balance and the live per-action credit costs (keys image, clip, clip_10s, scene_staged, motion_per_second, motion_wan_per_second, scene_replace_per_second, merge). Same as clipugc credits. Call it before any generation tool so you can tell the user the cost and stop early when the balance is too low. Costs no credits.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.7/5.0
Behavior4/5

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

Annotations already mark it read-only, and the description adds real value beyond that: it discloses that the call 'costs no credits' and enumerates the returned cost keys, which is meaningful behavioral and return context. It stops short of explaining units/semantics per key, so not a full 5.

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?

Front-loads the resource and return keys, then closes with the one actionable instruction. Every sentence earns its place with zero padding.

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?

With no output schema, the description compensates by listing exactly which cost keys are returned and confirming the call is free, which is everything an agent needs to invoke it and use 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?

The tool takes zero parameters, so the baseline is 4. There is nothing for the description to clarify beyond the schema, and it correctly says nothing extraneous about inputs.

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?

States a specific verb (Return) and resource (credit balance and live per-action credit costs), even enumerating the exact cost keys. This is unambiguous and clearly distinct from the generation siblings in the toolset.

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?

Explicitly instructs 'Call it before any generation tool' and gives the reason conditions ('so you can tell the user the cost', 'stop early when the balance is too low'). It leaves no ambiguity about when to invoke this versus generation tools.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.