Skip to main content
Glama

AI Chili Video Generation Studio & API

estimate_video_cost

Calculate exact PAYG credits (including avatar-talk talk vs photo +10 base-clip credits), lowest-cost non-expiring credit pack combination, and optional OnlyChili 80% creator net revenue.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "estimate_video_cost"
  }
}

Input Schema

NameRequiredDescriptionDefault
secondsNoTotal video seconds to generate (default: 90).
model_idNoModel family for local estimation (default: h3-vdn).
workflowNoFor avatar-talk: photo adds +10 base-clip credits.
resolutionNoTarget H3-VDN resolution (default: 768p).
ppv_unlocksNoOptional monthly PPV episode unlocks.
subscribersNoOptional monthly OnlyChili channel subscribers.
script_unitsNoOptional script units for avatar-talk (0.2 cr per 5 units).
ppv_price_usdNoOptional PPV unlock price in USD.
sub_price_usdNoOptional monthly membership price in USD.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations provided, the description carries the full burden, and it does disclose real domain behavior: the +10 base-clip credit surcharge for the avatar-talk 'photo' workflow, that pack selection is optimized for lowest cost among non-expiring packs, and an 80% creator net-revenue calculation. It omits whether the calculation is purely local (no side effects, no billing) or server-side, and says nothing about rounding, currency, or what the response contains despite there being no output schema.

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?

It is a single front-loaded sentence with the verb and the three computed results up front, and no filler. It loses a point for the garbled 'avatar-talk talk vs photo' phrasing and dense parenthetical jargon that slows parsing more than the length warrants.

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 9-parameter, zero-required, zero-annotation tool with no output schema, the description should at least characterize the return (a credit number, a breakdown, a recommended pack). It covers the pricing rules well but leaves the caller unsure what comes back and whether omitted optional params simply drop those calculations.

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 the schema already explains seconds, model_id, workflow, resolution, and the PPV/subscription inputs; the baseline of 3 applies. The description does add the meaning of the revenue mode (80% creator net) that the schema only labels as 'optional monthly subscribers/PPV unlocks', but it doesn't connect those inputs to the outputs it computes.

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?

Specific verb plus specific computed resources, but no explicit contrast with the plan_video_generation sibling.

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?

Usage is only implied: an agent can guess this is a pre-generation cost check. There is no explicit 'use this before create_video_generation', no statement that it should be used instead of get_credit_balance for pricing, and no note about when estimation is unnecessary or what inputs are required versus optional.

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.