Skip to main content
Glama

Generate a video clip

generate_video

For an edit, pass sourceVideo (a project video, optionally #from-to): the actual clip goes to Wan 3 and determines the duration. For a transition pass image and endImage: both frames go to Kling 3 Standard, or Pro at best quality. An unnamed model with video ref inputs routes to Seedance 2.5. Generate a video clip from a prompt with a hosted model and put it on the timeline. The clip takes its place on the timeline at start straight away, and the finished video fills it when the run ends. Quality standard (default, Kling: 5 or 10 s, 16:9 / 9:16 / 1:1, silent) or best (Veo 3.1: 4 / 6 / 8 s, 16:9 / 9:16, optional audio, costs more). model: "wan-3.0" takes any length from 2 to 30 s in one generation, 16:9 / 9:16 / 1:1 at 720p unless resolution says otherwise, with free synchronised audio; it cuts between listed scenes itself and keeps the same people across them, so a story of several scenes that fits in 30 s and starts from nothing is one Wan 3.0 run (name each recurring person once with their look, then the scenes in order) rather than a clip per scene. A 30 s take waits about twelve minutes. model: "gemini-omni-flash" is 3-8 s at 720p (1080p when resolution asks for it), 16:9 / 9:16, always with native audio, and holds a four-scene story in 8 s. model: "gemini-omni-flash-1.2" is the same model at about 1.7 times the credits a second and runs 3-15 s. image turns a project image into the first frame and routes on its own to Hailuo 02 (standard) or Kling 3 Pro (best), which animate a still faithfully; describe only the motion. ref lists stills and videos the model works from rather than starts on (a product, a place, a move to copy): name them @Image1, @Image2… and @Video1… in the prompt in the order given. model: "seedance-2.5" takes up to 9 stills and 3 videos (30 s of video in all; clip.mp4#2-8 sends seconds 2 to 8, and each second sent bills like a generated one at a lower rate); Seedance refuses any ref showing a real-looking person, so it takes no cast; MiniMax H3 and Wan 3.0 take stills only. People who must come back in another video, or in a scene you will redo on its own: write them as @Name in the prompt and describe the action, not the person. The first time a name is used, pass character: ["Name: who they are, hair, wardrobe"]; the job draws a reference sheet, keeps it in the project (the timeline header lists the cast; the sheet stills stay out of media listings) and later shots just say @Name. Cast everyone who recurs, kids included, or they change every shot. Cast shots at standard run 5-15 s on MiniMax H3 straight from the sheet stills; at best, 3-10 s on Kling 3 Pro from a drawn first frame for one person, or 2-30 s on Wan 3.0 from the sheet for two. A shot with more than one @Name goes to best on its own unless quality or model is given. motion only applies to the first-frame recipe. Open a cast shot medium or closer on one action so the face is large enough to keep; a wide, fast, many-body frame comes back with the face deformed. Returns at once with the generation id; generation_status with wait: true waits up to about half a minute at a time and fills the pending clip when the run ends. Costs credits; the error says what to fix.

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

Input Schema

NameRequiredDescriptionDefault
refNoReference stills and videos (media ids or names; a video takes #from-to), @Image1/@Video1 in order
nameNoClip name; default: the prompt, shortened
seedNo
waitNotrue waits for the result in this call (a long run hands back a job); default: return at once
audioNoGenerate sound (best tier only)
imageNoFirst frame: media id or file name
modelNoExact model id; overrides quality
startNoTimeline seconds; default: after the track’s last clip
trackNoTrack name or id; default: first video track or a new "Generated" one
aspectNoDefault: the project’s, or the closest the model renders
motionNoWith a cast member: the action alone for the video model; the prompt then shapes the first frame
promptYesWhat the clip should show; be concrete about subject, motion and camera
projectYesProject id or exact name
qualityNo
endImageNoLast frame of a transition; image supplies the first. Routes to Kling 3
characterNo"Name: description" for each @Name in the prompt the project does not know yet
resolutionNoWhere the model offers a choice; 720p when unset. Each size bills its own rate
sourceVideoNoClip to edit: media id or name, optionally #from-to. Routes to Wan 3 and keeps its length
negativePromptNo
durationSecondsNoClip length; each model offers a fixed set

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / endImage
      Added value: +{
      +  "description": "Last frame of a transition; image supplies the first. Routes to Kling 3",
      +  "type": "string"
      +}
    • addedInput schema / properties / sourceVideo
      Added value: +{
      +  "description": "Clip to edit: media id or name, optionally #from-to. Routes to Wan 3 and keeps its length",
      +  "type": "string"
      +}
  2. First observed

TDQS

A4.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false and openWorldHint=false, so the mutation/no-side-effect profile is largely covered. The description does add real behavioral context beyond that: the clip placeholder lands immediately at `start`, the run fills it later, it returns a generation id at once, credits are charged per resolution/second, a 30 s take takes ~12 min, Seedance rejects refs with real-looking people, and cast sheets are stored in the project but hidden from media listings.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Nearly every sentence carries routing, cost, or constraint information, so little is pure filler. But it is delivered as one dense run-on wall with no grouping by concern (routing, models, casting, motion, returns), and details like '1.7 times the credits a second' compete with the core call instructions instead of being subordinate to them.

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

Completeness5/5

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

For a 20-parameter, multi-recipe tool with no output schema, the definition covers what is missing structurally: it states the immediate return value (generation id), the async completion path, how to wait, what credits do, and what the error reports. An agent has enough to pick a model, supply refs, and handle the result without further guesswork.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 20 parameters at 85% schema coverage, the description still adds substantial meaning: `sourceVideo` routing to Wan 3 and preserving length, `ref` ordering into @Image1/@Video1 slots and #from-to syntax, the 'Name: description' format for `character`, the constraint that `motion` applies only to the first-frame recipe, and per-model duration/resolution/audio tables for `quality` and `model`.

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 does name a specific verb and resource: 'Generate a video clip from a prompt with a hosted model and put it on the timeline', which is clearly distinct from generate_image or generate_music siblings. However, that sentence is buried third, after two sentences of conditional routing ('For an edit, pass sourceVideo…', 'For a transition pass image and endImage…') that only make sense once the reader already knows what the tool does.

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?

Explicit, case-by-case routing is given for every variant: sourceVideo for edits, image+endImage for transitions, image alone for stills, ref for working references, unnamed model with video refs to Seedance 2.5. It also tells the agent when NOT to split work ('a story of several scenes that fits in 30 s … is one Wan 3.0 run … rather than a clip per scene') and names the sibling generation_status for waiting.

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.

Resources