Skip to main content
Glama

generate_video

Create text- or image-to-video clips from prompts on a local GPU; returns a job ID immediately for polling with job_status because rendering takes minutes.

Instructions

Generate a video with the engine-native endpoint POST /sdcpp/v1/vid_gen — this is LocModel GUI 视频 → 生成视频 (text/image to video, e.g. Wan2.2-TI2V, Wan2.1, LTX), NOT the lip-sync sub-panel. Returns a job_id immediately (wait_seconds=0) because a clip takes minutes; poll with job_status. Do NOT use it for 对口型视频 -> use lipsync_generate.

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": {
      "prompt": "<prompt>"
    },
    "name": "generate_video"
  }
}

Input Schema

NameRequiredDescriptionDefault
fpsNoDefault from the engine (16 for Wan2.2-TI2V).
seedNo-1 / omit for random.
stepsNoSampling steps (engine default 4).
widthNoDefault 832; multiple of 8, 64..4096.
heightNoDefault 480; multiple of 8, 64..4096.
promptYesText prompt describing the shot.
dry_runNoOnly build and return the payload.
cfg_scaleNomaps to sample_params.guidance.txt_cfg.
end_imageNoLast frame for flf2v recipes.
schedulerNo'discrete' / 'karras' / 'exponential' ... 'default' is rejected by the engine.
flow_shiftNoFlow shift (engine default 12.0).
init_imageNoLocal image path / data URI / base64 (i2v, first frame).
output_dirNoWhere to save the video file.
ref_imagesNoReference images (data URI / path).
vae_tilingNoEnable VAE tiling to save VRAM.
moe_boundaryNoMoE boundary for two-expert models (Wan2.2 A14B).
video_framesNoFrame count; the engine rounds it to the recipe's frame_step (4/8/17).
wait_secondsNo0 (default) = return job_id immediately; >0 = wait that long then report.
custom_sigmasNoNumeric sigma array (numeric only; names/CSV are 400).
output_formatNoDefault webm.
sample_methodNoSampler name, e.g. 'euler'.
vace_strengthNoVACE strength.
control_framesNoVACE control frames.
negative_promptNoNegative prompt.
high_noise_stepsNoTwo-pass sampling; NOT supported by Wan2.2-TI2V (400).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv4.0.0

TDQS

A4.3/5.0
Behavior4/5

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

With no annotations, the description carries the full behavioral burden and does well: it discloses the async job model, the immediate job_id return, clip duration expectations, and several engine-level failure modes (scheduler 'default' rejected, high_noise_steps unsupported by Wan2.2-TI2V → 400, custom_sigmas must be numeric). It does not mention prerequisites that the sibling set implies, such as loading a model first via load_model or checking the engine with engine_discover/engine_doctor, nor where the output video lands.

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?

Front-loaded with the action and endpoint, then the routing exclusion, then the async contract — a sensible priority order with no filler sentences. It is dense and mixes English prose with Chinese GUI labels, which is functional but slightly harder to parse quickly than a cleaner split.

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 25-parameter, no-output-schema, annotation-free generation tool, the description covers the essential workflow (fire, get job_id, poll job_status) plus the most common engine rejections. Remaining gaps — model-loading prerequisites and the fact that all parameter details live in the schema — are minor but real for a tool this complex.

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 25 parameters, defaults, enums and ranges are already documented structurally; the description adds almost no parameter-level meaning beyond restating wait_seconds=0 semantics. Baseline 3 is correct because the schema does the heavy lifting here.

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

Purpose5/5

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

States a specific verb and resource ('Generate a video'), names the concrete backend endpoint POST /sdcpp/v1/vid_gen, and pins the exact GUI panel it corresponds to (视频 → 生成视频), listing example recipes (Wan2.2-TI2V, Wan2.1, LTX). It explicitly excludes the sibling it is most likely to be confused with (lip-sync sub-panel / lipsync_generate), so an agent can distinguish it without opening schemas.

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

Usage Guidelines5/5

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

Gives explicit when-to-use (text/image to video), explicit when-NOT (对口型视频 → use lipsync_generate), and the follow-up workflow (returns job_id immediately because a clip takes minutes; poll with job_status). It even justifies the wait_seconds=0 default, which is the key invocation decision.

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