Skip to main content
Glama

Submit an AI Chili Video or Avatar Generation

create_video_generation

Submit a video or talking-avatar generation job: validates the request, charges credits, enqueues it via the API, and supports idempotency keys for safe retries.

Instructions

Validate, charge credits, and enqueue a video or talking-avatar generation job via POST /v1/generations. Supports idempotency_key for safe retries.

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": "create_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_4kNoRequest 4K upscale on output.
ref_asset_idsNoOptional uploaded reference image/video asset UUIDs for i2v.
idempotency_keyNoOptional idempotency key so retries return the original job without double charging.
optimize_promptNoEnable prompt optimization.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.1

TDQS

A3.5/5.0
Behavior4/5

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

Beyond the annotations, the description discloses the two facts that matter most here: credits are charged (a real, cost-bearing side effect that readOnlyHint=false alone doesn't convey) and the call only enqueues an asynchronous job rather than returning finished media. The idempotency note also clarifies retry semantics despite idempotentHint=false. It still does not explain what happens on validation failure before charging, or that the caller must poll get_video_generation for status.

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?

Two tight sentences with the action sequence front-loaded (validate → charge → enqueue) followed by the endpoint and the retry contract. No filler, no restatement of the title, and the most consequential fact (credit charging) appears early.

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 14-parameter, nested-object, mutating, asynchronous tool with no output schema, the description covers the charge and enqueue semantics but leaves out the lifecycle an agent needs: that the returned job must be polled, what a failure looks like, and that modes t2i/i2i produce images rather than video. Adequate as a one-line contract, thin for a tool of this complexity.

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% with 14 documented parameters, so the baseline is 3. The only parameter the description touches is idempotency_key, and its wording ('safe retries', avoiding double charge) largely restates the schema's own 'so retries return the original job without double charging.' It adds no meaning for mode, params merging, ref_roles, or the model/workflow pairing across the 13 other parameters.

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 names specific verbs and resource: 'Validate, charge credits, and enqueue a video or talking-avatar generation job via POST /v1/generations.' An agent knows exactly what happens on invocation. It stops short of differentiating from the close sibling plan_video_generation, and it omits that the mode enum also supports image modes (t2i/i2i), so the stated resource is slightly narrower than the tool actually does.

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?

There is no when-to-use guidance at all: nothing tells the agent when to call this versus plan_video_generation or estimate_video_cost, whether planning/estimation must precede submission, or what preconditions (valid model_id, existing ref assets) are required. The only conditional content, 'Supports idempotency_key for safe retries,' describes a parameter behavior rather than tool selection.

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