Skip to main content
Glama

AI Video GT

Estimate a generation's cost

estimate_cost
Read-onlyIdempotent

Use to tell the user how many credits a video or image will cost before making it. Returns the exact credits for a model at a given resolution and, for video, clip length. No key needed.

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": {
      "model": "<model>"
    },
    "name": "estimate_cost"
  }
}

Input Schema

NameRequiredDescriptionDefault
modelYesModel id from list_models.
durationNoVideo only: clip length in seconds, one of the model's durations. Defaults to its shortest.
resolutionNoOne of the model's resolutions. Defaults to its lowest.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already cover readOnly/idempotent/non-destructive, so the extra value is 'No key needed' (auth expectations) and the note that it returns exact credits rather than an approximation. That return-value context is valuable given there is no output schema, though format details (raw number vs object) remain unspecified.

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 what is returned, then the access note. No filler, and the primary use case is front-loaded.

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?

For a simple read-only three-parameter tool with no output schema, the description supplies the missing pieces: what the return represents (credits) and that no API key is required. Nothing needed to invoke it correctly is absent.

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 description coverage is 100%, so model, duration and resolution are already documented with defaults and the enum. The description's mention of resolution and clip length largely restates that; it adds no new syntax or constraint information.

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 ('tell the user how many credits ... will cost') plus the scope (video or image, per model/resolution/duration). It is clearly distinguishable from generate_video/generate_image because it prices a generation rather than creating one.

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?

'before making it' gives a clear temporal trigger for use, and the video-only nature of duration is noted. It stops short of naming an alternative tool or stating exclusions, so it lands just below the top band.

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.

Resources