Skip to main content
Glama

Get credit balance and costs

get_credits
Read-only

The signed-in user's credit balance and the live per-action costs (image, clip, clip_10s, scene_staged, motion_per_second, motion_wan_per_second, scene_replace_per_second, video). Call it before any tool that spends credits and tell the user the price. Costs no credits.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
costsYesCredits each action costs.
balanceYesCredits the user holds now.
account_urlYesThe user's ClipUGC account.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, and the description usefully reinforces the cost profile with 'Costs no credits.' It also discloses that the listed costs are 'live' (dynamic), which annotations don't convey. It stops short of describing refresh timing or caching behavior, so it's strong but not exhaustive.

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 tight sentences: purpose first, then the enumerated cost keys, then the usage imperative. The parenthetical list is dense but each key maps to a real output field, so it earns its space rather than 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?

An output schema exists, so return-value documentation is unnecessary, and the description already covers what the tool does, when to call it, and that it is free. For a simple zero-argument read tool, nothing an agent needs is missing.

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?

Zero parameters, so there is nothing for the description to compensate for; the baseline for a no-arg tool is 4. The description adds no parameter information because none is needed.

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+resource (returns the signed-in user's credit balance plus live per-action costs) and even enumerates the cost keys returned. This is clearly distinct from every sibling, which are spend/create/delete operations.

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?

Gives an explicit when-to-use rule: 'Call it before any tool that spends credits and tell the user the price.' It also implies the when-not (nothing to check for read-only siblings) and mandates the downstream action of surfacing price to the user.

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.