Skip to main content
Glama

generate_video

Create, edit, or extend videos with native audio from text prompts, reference images, or existing clips; background processing handles long jobs.

Instructions

Generate, edit or extend a video with native audio (Gemini Omni Flash). Runs in the background.

prompt: scene, camera, light, mood, dialogue/sound. For edits/extensions describe only the change. aspect_ratio: 9:16 (default when generating) or 16:9. duration_seconds: 3-15 when generating (default 8); 3-10 added seconds when extending. resolution: 360p, 720p (default), 1080p or 4k (both upscaled). reference_images: up to 6 reference/first-frame images (2 + task=image_to_video for first+last frame). video_files: one local video (<=15 s) to edit/extend (not available in EEA/CH/UK). previous_interaction_id: interaction_id of a video made here; edit/extend without re-uploading. Extensions are appended to the end, total <= 30 s. task: only if natural language is ambiguous: text_to_video, image_to_video, reference_to_video, edit, extend, upscale. delivery: inline or uri (auto uri for 1080p/4k). force_new: regenerate even if the identical request ran recently (billed again).

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
taskNo
modelNo
promptYes
deliveryNo
filenameNo
force_newNo
resolutionNo
video_filesNo
aspect_ratioNo
duration_secondsNo
reference_imagesNo
previous_interaction_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv6.0.0

TDQS

A4.4/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 load and does well: it discloses background/async execution, that force_new is billed again, regional restrictions on video_files, duration ceilings (3-15 generating, 3-10 added, total <= 30 s), that 1080p/4k are upscaled, and that delivery auto-switches to uri for high resolutions. It omits how to retrieve the finished background job and whether there are rate or quota limits.

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?

The purpose is front-loaded in the first line and every subsequent line is a parameter with only decision-relevant detail, no filler. The telegraphic parameter: value format is dense but scannable and appropriate for a 12-parameter tool.

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 complex, unannotated, no-output-schema generation tool, the description covers mode selection, resolution/duration limits, input sources, and billing behavior. The notable gap is result retrieval: it says the job runs in the background but does not point to the tool or field that delivers the finished video.

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

Parameters4/5

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

Schema description coverage is 0%, so the description must compensate for 12 undocumented parameters, and it does for ten of them, adding defaults (aspect_ratio 9:16 when generating, duration 8, 720p) and constraints (max 6 reference images, <=15 s local video) the schema does not encode. 'model' and 'filename' are never mentioned, and task's allowed values are listed only in prose rather than tied to the 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?

The description opens with a specific verb set and resource: 'Generate, edit or extend a video with native audio (Gemini Omni Flash)' and immediately notes it 'Runs in the background.' The resource (video) and the three modes cleanly separate it from siblings like generate_image and generate_music without the agent needing to open a schema.

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

Usage Guidelines4/5

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

It gives concrete routing rules: use task 'only if natural language is ambiguous', use video_files or previous_interaction_id for edits/extensions, and 2 reference images plus task=image_to_video for first+last frame. It also warns video_files is unavailable in EEA/CH/UK. It stops short of stating when to prefer this over siblings such as generate_image or a chat-based agent, so it is clear context rather than full alternatives coverage.

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