Skip to main content
Glama

Estimate Credits

estimate_cost

Credits a video of the given duration costs (before generating).

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

Input Schema

NameRequiredDescriptionDefault
durationYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

C2.4/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full burden. It implies a non-mutating estimate via 'before generating', but never states that it is read-only, that it does not consume credits, or what the returned figure represents (total credits, per-second rate, currency). For a cost-estimation tool that agents may act on transactionally, that is a meaningful gap.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is a single short sentence with no filler, which is appropriately sized for a one-parameter tool. The trade-off is that the brevity comes with mangled grammar that costs the reader a re-parse rather than saving effort.

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

Completeness2/5

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

For a simple one-param tool this should be easy to complete, yet the two things an agent most needs — the unit of 'duration' and the meaning/shape of the returned credit figure (there is no output schema) — are both absent. The description covers the intent but not enough to call the tool confidently.

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

Parameters2/5

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

Schema description coverage is 0%, so the description must compensate, and it does not. It restates 'duration' without units (seconds vs minutes), and the schema's 4–30 bounds are left unexplained — an agent cannot tell whether 30 means seconds of video or something else.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description conveys the core idea — compute the credit cost of a video for a given duration — and the phrase 'before generating' hints at its role. But the grammar is broken ('Credits a video of the given duration costs') and there is no explicit verb like 'estimate' or 'calculate', so the agent must parse through awkward syntax to confirm the purpose.

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

Usage Guidelines2/5

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

'before generating' implies this is a pre-flight check for generate_video, which is a useful usage signal. However, the relationship to get_credits (the obvious sibling for a credit balance) is never addressed, and there is no explicit statement of when to call this versus checking existing credits.

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.