Skip to main content
Glama

Dry-Run & Price a Video Generation Plan

plan_video_generation
Read-onlyIdempotent

Validate video generation parameters and return an exact dry-run quote for segment count, duration, and credit cost without charging credits or starting a job.

Instructions

Validate parameters and quote exact segment count, duration, and total credits via POST /v1/generations/plan without charging credits or enqueueing a job.

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

Input Schema

NameRequiredDescriptionDefault
modeYesGeneration mode (e.g. 't2v' or 'i2v').
ratioNoAspect ratio (e.g. '16:9', '9:16', '1:1', '3:4', '4:3', '21:9').
paramsNoOptional raw GenerationParamsIn object (merged with top-level prompt/duration_s/resolution/ratio).
promptNoScene, motion, camera, and audio prompt.
api_keyNoOptional AI Chili API key (chili_sk_...). Defaults to AICHILI_API_KEY env var.
model_idYesModel ID (e.g. 'h3-vdn', 'wan3.0-video', 'seedance-2.5', 'minimax-h3-gmi', 'avatar-talk').
workflowNoOptional model workflow ID (e.g. 'general', 'reference', 'photo', 'talk').
ref_rolesNoOptional roles matching ref_asset_ids (reference_image, reference_video, first_frame, last_frame).
duration_sNoRequested duration in seconds.
resolutionNoOutput resolution matching the selected model's registry entry.
upscale_4kNoInclude 4K upscale in the dry-run quote.
ref_asset_idsNoOptional uploaded reference image/video asset UUIDs for i2v.
optimize_promptNoEnable prompt optimization (default true on server).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.1

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false; the description still adds concrete value by specifying that no credits are charged and no job is enqueued, and by naming the three quoted outputs. It stops short of covering auth failure modes or whether the quote is time-bound or reusable.

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 no filler; the guarantee of no charge/no enqueue comes first and the return values follow. Minor noise from the raw HTTP path 'POST /v1/generations/plan', which is implementation detail rather than task-relevant guidance.

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?

Covers the essentials for a 13-parameter, nested-object dry-run tool with no output schema: it says what is validated, what is returned, and that nothing is committed. Missing only edge-case behavior, such as what happens on invalid parameter combinations or whether the quote can be reused when creating the actual job.

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 all 13 parameters are documented in the schema itself. The description adds no parameter-level detail beyond implying that the passed parameters are validated against the selected model (e.g. resolution must match the registry entry), so baseline 3 applies.

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 compound verb and resource: 'Validate parameters and quote exact segment count, duration, and total credits' via a plan endpoint. The phrase 'without charging credits or enqueueing a job' separates it functionally from create_video_generation, though no sibling is named explicitly.

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?

The dry-run framing plus 'without charging credits or enqueueing a job' strongly implies this is the pre-flight call before a real generation, but the description never says so outright or names an alternative such as estimate_video_cost for rough pricing. Usage is inferable rather than stated.

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