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.

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": {
      "mode": "<mode>"
    },
    "name": "estimate_credits"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeYes
modelNoRequired for manual mode — a model id from list_models.
api_keyNoOptional. Your vv_live_ API key, used only when this connection sends no Authorization header (e.g. the key from get_signup_status or verify_login_code).
resolutionNoManual mode — one of the model's resolutions.
duration_secondsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / api_key
      Added value: +{
      +  "description": "Optional. Your vv_live_ API key, used only when this connection sends no Authorization header (e.g. the key from get_signup_status or verify_login_code).",
      +  "type": "string"
      +}
  2. First observed

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations, the description carries the burden and does well: it discloses that no charge occurs ('This is an estimate, not a charge') and where the authoritative number lives ('credits_charged when you create the video'), which prevents an agent from treating the estimate as a commitment. It does not address auth requirements or any caching/rate considerations beyond the api_key param.

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?

Two tight sentences with the core purpose front-loaded, followed by the estimate-vs-charge caveat and the companion tool. No redundant restatement of the name or title.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 5-parameter tool with no output schema, the description never indicates what the call returns (presumably an estimated credit figure) nor how mode selection changes required inputs. The estimate-vs-charge framing is valuable, but return shape and mode semantics remain gaps.

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 60%, and the description adds essentially no parameter meaning — notably it never explains the auto vs manual mode distinction that governs whether model/resolution are required. The mention of 'published per-model rates' only loosely implies the model parameter.

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 and resource ('Estimate the credits a generation will cost') and scopes it temporally ('BEFORE creating it'). An agent can immediately distinguish this read-only cost preview from create_auto_video / create_manual_video without opening any schema.

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 routes the agent to check_account to confirm affordability, and the 'BEFORE creating it' phrasing establishes the pre-flight ordering. It lacks an explicit when-not (e.g., don't call when the model or duration is unknown), so not a full 5.

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.