Skip to main content
Glama

AI Chili Video Generation Studio & API

plan_video_generation

Dry-run validate generation parameters and return exact total_credits at $0 charge via POST /v1/generations/plan.

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": {
      "api_key": "<api_key>",
      "mode": "<mode>",
      "model_id": "<model_id>",
      "prompt": "<prompt>"
    },
    "name": "plan_video_generation"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeYes
ratioNoAspect ratio (e.g. 16:9, 9:16; omitted on avatar-talk workflow talk).
promptYesVisual prompt or spoken script.
api_keyYesAI Chili Bearer key prefixed with chili_sk_.
model_idYes
workflowNoOptional workflow (general, reference, photo, talk).
ref_rolesNoOptional roles (reference_image, reference_video, first_frame, last_frame).
duration_sNoDuration in seconds (default: 15; omitted on script-driven avatar-talk).
resolutionNoTarget resolution (e.g. 768p, 720p, 720P, 768P, 1080p, 2k, source).
ref_asset_idsNoOptional uploaded asset UUIDs for i2v.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations present, the description carries the full disclosure burden, and it does contribute real value: it declares that the call is free ($0 charge) and names the returned field (total_credits), which effectively says 'no side effects on billing'. It does not say what happens on invalid parameters (errors vs. partial validation), whether uploaded ref_asset_ids are verified, or whether anything is persisted, which are the behavioral facts an agent would need for a dry run of a 10-parameter mutation-adjacent tool.

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?

A single sentence that front-loads the purpose, then the return value, then the cost guarantee, then the endpoint. Nothing is redundant and no sentence needs to be reread.

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

Completeness4/5

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

For a 10-parameter validation tool with no output schema and no annotations, the description supplies the two things that matter most: the guarantee of no charge and the identity of the return field. It is slightly thin on failure modes and on how the dry run treats optional asset references, but it is otherwise sufficient to invoke correctly.

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 80%, so the schema already explains ratio, prompt, api_key, workflow, ref_roles, duration_s, resolution, and ref_asset_ids. The description adds no parameter-level meaning beyond that, so the baseline 3 for high coverage applies; the only unlabeled parameters (mode, model_id) are enum-constrained and self-explanatory.

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?

The description gives a specific verb ('Dry-run validate') and object ('generation parameters') plus the concrete outcome ('return exact total_credits at $0 charge'), so the tool's function is immediately clear. It stops short of naming the nearest sibling, estimate_video_cost, which appears to overlap in cost-preview intent, so the agent must infer the distinction.

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?

'Dry-run' and '$0 charge' imply this is a pre-flight check to run before create_video_generation, but that sequencing is left implicit. No exclusion or comparison against estimate_video_cost or create_video_generation is stated, so choosing between the cost-related siblings still requires guesswork.

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.