Skip to main content
Glama

calculate_cost_per_clip

Read-only

Calculate raw single-try and retry-adjusted usable cost per clip for any AI video model using verified rates to compare models and budget for generation retries.

Instructions

Calculate raw single-try (1x) and retry-adjusted usable cost per clip (2.5x typical production, 3x conservative, or custom tries) for any AI video model using verified AIVideoWatch rates.

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": "calculate_cost_per_clip"
  }
}

Input Schema

NameRequiredDescriptionDefault
modelYesModel name or slug, e.g. 'seedance-2-5', 'kling-4-0', 'wan-3-0', 'magi-2'.
triesNoTotal generation attempts per usable keeper clip (default 3.0; 1.0 = raw single try, 2.5 = realistic T2V).
duration_secNoClip duration in seconds (default 10; supports 5, 10, 30, 60, etc.).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=true, so the safety profile is known. The description adds genuine context by sourcing the underlying rates as 'verified AIVideoWatch rates', which tells the agent the numbers are not user-supplied. However, it says nothing about what the calculation returns (a single number, a per-scenario breakdown, currency), so behavioral disclosure is only partial.

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

Conciseness4/5

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

A single front-loaded sentence with the verb first and no filler. The stacked parentheticals are slightly dense, and the retry multiplier list partly duplicates the 'tries' parameter's schema description, but nothing is extraneous.

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?

With three parameters, 100% schema description coverage and no output schema, the definition covers inputs adequately but leaves the return shape unexplained — an agent cannot tell whether it gets one figure or a breakdown across the 1x/2.5x/3x scenarios, nor what happens for an unknown model slug. Adequate but with clear gaps for a calculation tool whose whole value is its output.

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?

Schema coverage is 100%, so the baseline is 3, but the description adds interpretive meaning by mapping the 'tries' multiplier to real-world scenarios ('2.5x typical production, 3x conservative'), which the schema does not do. It also frames the 1x case as 'raw single-try', clarifying what tries=1 means in output terms.

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

Purpose4/5

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

States a specific verb+resource: 'Calculate ... cost per clip ... for any AI video model', and names the retry scenarios (1x raw, 2.5x, 3x, custom). It does not explicitly distinguish itself from siblings like cheapest_video_model or compare_video_models, so the agent must infer that this is per-model unit economics rather than a ranking or comparison.

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

Usage Guidelines3/5

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

Usage is only implied: the framing of raw vs retry-adjusted cost suggests it is the tool for per-model cost modeling, and the 2.5x/3x labels hint at typical vs conservative planning. There is no explicit 'use this when' statement, no exclusion of the sibling comparison/cheapest tools, and no prerequisite or rate-source caveats.

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