Skip to main content
Glama

Generate Video

generate_video

Submit a VIDEO render job — modelId must be a video model (kind=video; e.g. veo-3.1, kling-3.0, ws-pika-2.2). For images use generate_image (NOT this tool — image models like flux-1-schnell/recraft-v3 are not video). Returns { jobId, projectId }. jobId == shotId — poll status via get_job until status='succeeded', then retrieve outputUrl. A text prompt alone is enough for a single clip. When the look matters (a product, a character, a brand), call pick_reference_images first, let the user choose a frame, and pass its URL as reference_image_url. Many models render fixed lengths (see clipLengthsSec in list_models): the request is fitted to a supported length (some round up) and charged for the seconds produced. aspectRatio must be one the model supports (aspectRatios in list_models). For AVATAR / LIP-SYNC models (omnihuman, heygen-photo-avatar, muapi-latentsync): pass the source photo as reference_image_url AND the spoken audio track as audio_url (a public mp3/wav URL) — the avatar's lips track THAT audio instead of provider-generated TTS. For muapi-latentsync, reference_image_url is the source VIDEO url. For performance transfer (fal-live-portrait, fal-wan-animate) pass the driving video as reference_video_url. camelCase spellings (referenceImageUrl, audioUrl, referenceVideoUrl, projectId) are accepted too. Per-model knobs (e.g. HeyGen avatarId/voiceId/engine) ride on providerOptions. Pass project_id from create_project to group all shots from a run into one project. Scope required: generate:video.

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

Input Schema

NameRequiredDescriptionDefault
promptYesWhat the clip should show (at least 3 characters).
modelIdYesVideo model id from list_models (kind video). Image, voice and music models are refused, as are models marked unavailable.
audioUrlNoAlias of audio_url, used only when that is not sent.
audio_urlNoPublic mp3/wav URL of the speech track for avatar and lip-sync models; the lips follow this audio. Wins over audioUrl.
projectIdNoAlias of project_id, used only when that is not sent.
project_idNoAdd the shot to this project of yours (from create_project). Omit to create a new one-shot project.
shot_indexNo1-based position of the shot in its project. Omit to place it after the project's existing shots.
aspectRatioNoFrame shape; must be one of the model's aspectRatios in list_models. Default 16:9.
durationSecYesRequested length in whole seconds (1–60). Fixed-length models are fitted to a supported length, sometimes rounding up (clipLengthsSec in list_models); you pay for seconds produced.
imageModelIdNoImage model for the imagePromptHint frame. Default flux-1-schnell. Used only with imagePromptHint.
authPreferenceNoBill on the user's own provider key (byok) or Varosity credits (platform); if that can't be used, the other is tried. Omit for the default: your key first, else credits (the Providers-page toggle applies in the Varosity app only).
imagePromptHintNoPrompt for a start frame that is generated first (with imageModelId) and passed to the video model. Charged as a separate image. Ignored when a reference image URL is sent.
providerOptionsNoExtra per-model settings passed to the provider as-is (e.g. HeyGen avatarId, voiceId, engine). See the model's coaching: list_models with modelId. A JSON object written as a string, for example {"seed": 42}.
referenceImageUrlNoAlias of reference_image_url, used only when that is not sent.
referenceVideoUrlNoAlias of reference_video_url, used only when that is not sent.
reference_image_urlNoPublic URL of the reference/start image (e.g. from pick_reference_images); for muapi-latentsync, the source video. Wins over referenceImageUrl.
reference_video_urlNoPublic URL of the driving video for performance-transfer models (fal-live-portrait, fal-wan-animate). Wins over referenceVideoUrl.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed19 schema fields changed
    • addedInput schema / properties / aspectRatio / description
      Added value: +"Frame shape; must be one of the model's aspectRatios in list_models. Default 16:9."
    • addedInput schema / properties / audioUrl
      Added value: +{
      +  "description": "Alias of audio_url, used only when that is not sent.",
      +  "type": "string"
      +}
    • addedInput schema / properties / audio_url / description
      Added value: +"Public mp3/wav URL of the speech track for avatar and lip-sync models; the lips follow this audio. Wins over audioUrl."
    • addedInput schema / properties / authPreference / description
      Added value: +"Bill on the user's own provider key (byok) or Varosity credits (platform); if that can't be used, the other is tried. Omit for the default: your key first, else credits (the Providers-page toggle applies in the Varosity app only)."
    • addedInput schema / properties / durationSec / description
      Added value: +"Requested length in whole seconds (1–60). Fixed-length models are fitted to a supported length, sometimes rounding up (clipLengthsSec in list_models); you pay for seconds produced."
    • addedInput schema / properties / imageModelId / description
      Added value: +"Image model for the imagePromptHint frame. Default flux-1-schnell. Used only with imagePromptHint."
    • addedInput schema / properties / imagePromptHint / description
      Added value: +"Prompt for a start frame that is generated first (with imageModelId) and passed to the video model. Charged as a separate image. Ignored when a reference image URL is sent."
    • addedInput schema / properties / modelId / description
      Added value: +"Video model id from list_models (kind video). Image, voice and music models are refused, as are models marked unavailable."
    • addedInput schema / properties / projectId
      Added value: +{
      +  "description": "Alias of project_id, used only when that is not sent.",
      +  "type": "string"
      +}
    • addedInput schema / properties / project_id / description
      Added value: +"Add the shot to this project of yours (from create_project). Omit to create a new one-shot project."
    • addedInput schema / properties / prompt / description
      Added value: +"What the clip should show (at least 3 characters)."
    • removedInput schema / properties / providerOptions / additionalProperties
      Removed value: -{}
    • addedInput schema / properties / providerOptions / description
      Added value: +"Extra per-model settings passed to the provider as-is (e.g. HeyGen avatarId, voiceId, engine). See the model's coaching: list_models with modelId. A JSON object written as a string, for example {\"seed\": 42}."
    • changedInput schema / properties / providerOptions / type
      Previous value: -"object"New value: +"string"
    • addedInput schema / properties / referenceImageUrl
      Added value: +{
      +  "description": "Alias of reference_image_url, used only when that is not sent.",
      +  "type": "string"
      +}
    • addedInput schema / properties / referenceVideoUrl
      Added value: +{
      +  "description": "Alias of reference_video_url, used only when that is not sent.",
      +  "type": "string"
      +}
    • addedInput schema / properties / reference_image_url / description
      Added value: +"Public URL of the reference/start image (e.g. from pick_reference_images); for muapi-latentsync, the source video. Wins over referenceImageUrl."
    • addedInput schema / properties / reference_video_url
      Added value: +{
      +  "description": "Public URL of the driving video for performance-transfer models (fal-live-portrait, fal-wan-animate). Wins over referenceVideoUrl.",
      +  "type": "string"
      +}
    • addedInput schema / properties / shot_index / description
      Added value: +"1-based position of the shot in its project. Omit to place it after the project's existing shots."
  2. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations only declare readOnlyHint=false, destructiveHint=false, openWorldHint=true, so the description carries the real behavioral burden and does: it discloses the return shape ({ jobId, projectId }), the jobId==shotId identity, the async get_job polling loop, and the scope requirement ('generate:video'). It also surfaces cost behavior that annotations never cover — 'charged for the seconds produced' plus rounding up on fixed-length models, and imagePromptHint 'Charged as a separate image' — which is materially decision-relevant for a paid render.

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?

The core action and the generate_image exclusion are correctly front-loaded, and much of the content is workflow-critical. However, it is a single dense paragraph of roughly 300 words with nested parentheticals, and several sentences duplicate schema text almost verbatim (aspectRatio support, durationSec fitting/rounding) rather than pointing to it, which adds length without new information.

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 17-parameter, high-stakes paid render tool with no output schema, the description supplies the missing pieces an agent needs: the return shape, the polling path to outputUrl, the required scope, the model-family branching for reference/audio/video inputs, and where per-model knobs go. Nothing essential to a correct invocation appears to be absent.

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 the baseline is 3, and much of the description's parameter talk (aspectRatio must be in the model's aspectRatios, durationSec fitting via clipLengthsSec, camelCase aliases, providerOptions as a JSON string) restates what the schema already documents. It does add some genuine cross-parameter meaning — which model families map to reference_image_url vs audio_url vs reference_video_url, and that reference_image_url means a source video for muapi-latentsync — but that same mapping also appears in the schema, so the incremental value is modest over a fully documented schema.

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 ('Submit a VIDEO render job') and immediately bounds the model set ('modelId must be a video model, kind=video, e.g. veo-3.1, kling-3.0'). It also names the sibling it is not ('For images use generate_image (NOT this tool)'), so an agent can distinguish it from generate_image without opening either schema.

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 routing conditions across several cases: a text prompt alone suffices for a single clip, pick_reference_images is prescribed 'when the look matters,' avatar/lip-sync models need both reference_image_url and audio_url, and performance transfer needs reference_video_url. It also names the follow-up step ('poll status via get_job until status=\'succeeded\'') and the prerequisite tool (create_project) for grouping.

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.