Skip to main content
Glama

estimate_credits

Estimate the credits a generation will cost, from the published per-model rates — BEFORE creating it. This is an estimate, not a charge; the exact amount is returned as credits_charged when you create the video. Use it with check_account to confirm the user can afford the request.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modeYes
modelNoRequired for manual mode — a model id from list_models.
resolutionNoManual mode — one of the model's resolutions.
duration_secondsNo

TDQS

A4.2/5.0
Behavior4/5

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

Discloses that it provides an estimate, not a charge, and that the exact amount is returned upon creation. No annotations exist, so the description carries the full burden; it adequately covers the non-destructive, read-only nature.

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 sentences with no wasted words. The first sentence delivers the core purpose immediately. All sentences add unique value: purpose, clarification, and usage guidance.

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?

For a simple estimation tool with no output schema, the description covers purpose, usage context, behavioral nuance, and a sibling reference. Could mention return shape, but not critical.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 50% (2 of 4 parameters have descriptions). The description reiterates that model and resolution are required for manual mode, adding no new info beyond the schema. Baseline 3 is appropriate.

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 clearly states the tool estimates credits for a generation before creation using published per-model rates. It distinguishes itself from create tools by emphasizing 'BEFORE creating it' and referencing the exact charge returned later.

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

Usage Guidelines4/5

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

Explicitly suggests pairing with check_account to confirm affordability. Implies usage as a pre-check before creation. Does not list specific when-not-to-use scenarios, but context is clear.

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.

TDQS

A4.4/5.0
Disambiguation5/5

Each tool has a clear, distinct purpose. There is no overlap between tools like check_account and check_configuration, or between the two create video modes. All list tools target different entities, and the remaining tools serve unique roles (estimate credits, get video, wait for video, render preview).

Naming Consistency5/5

All tool names follow a consistent verb_noun pattern in snake_case, such as check_account, create_auto_video, list_models. This makes it easy to predict tool names and understand their purpose.

Tool Count5/5

With 13 tools, the number is well-scoped for a video generation API. It covers setup, account management, creation (two modes), credit estimation, retrieval, listing of various resources, and video waiting. No tool feels redundant or missing.

Completeness4/5

The tool surface covers the core workflow well: configuration check, account info, video creation (both auto and manual), credit estimation, retrieval, and listing. However, there are no tools for updating or deleting videos, nor for managing resources beyond listing (e.g., creating avatars or brand kits). These are minor gaps.