Skip to main content
Glama

Get credit balance and costs

get_credits
Read-only

Check your credit balance and live per-action costs before generating videos to avoid insufficient-credit failures and stop early when needed.

Instructions

Return the authenticated user's credit balance and the live per-action credit costs (image, clip, clip_10s, scene_staged, motion_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. Dates show when Glama detected each change.

  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 provide readOnlyHint=true, and the description adds important context beyond that: the call itself 'Costs no credits,' the data is for the 'authenticated user,' and the costs are 'live.' This helps the agent set user expectations without overexplaining.

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 short sentences with no filler: the first states the core return value, the second explains when to call it, and the third notes it is free. The most important behavioral facts are front-loaded and every sentence earns its place.

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 parameters, read-only annotations, and no output schema, the description supplies all essential context: what is returned, the cost categories, the recommended call timing, the stop-early policy, and the fact that the call itself is free. Nothing critical is missing for an agent to invoke it correctly.

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 for the description to clarify about arguments. The baseline of 4 applies because no parameter semantics are needed, and the description still explains what the returned information represents.

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 opens with a clear verb and resource: 'Return the authenticated user's credit balance and the live per-action credit costs.' It lists the specific cost categories, making the tool's scope unambiguous and distinct from all sibling generation and retrieval tools.

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?

The description explicitly tells the agent when to call this tool: 'Call it before any generation tool so you can tell the user the cost and stop early when the balance is too low.' It also gives a deterministic rule for cost-aware behavior and notes the CLI equivalent, leaving no ambiguity about its role.

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

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/clipugc/ClipUGC-CLI'

If you have feedback or need assistance with the MCP directory API, please join our Discord server