Skip to main content
Glama

video_generate

Generate an 8-second MP4 video with native sound from a text prompt via the Gemini API, setting aspect ratio, resolution, and optional first/last frames or reference images.

Instructions

Generate a short video with native sound from a text prompt, with Gemini Omni Flash through the Gemini API, and save it as an .mp4 in GEMINI_PRO_OUTPUT_DIR. One call makes one clip of about 8 seconds; for longer videos chain video_edit, or use flow_make_video on the user's Flow credits when browser tools are enabled.

COSTS MONEY: billed to the API key's Google Cloud project (about $0.10 per second of 720p video, no free tier). Confirm with the user before calling.

Args: prompt: Subject, action, setting, camera and sound, e.g. "A red tram crosses Baku at sunset, slow dolly shot, street noise". English works best; timecodes like "[0-3s] ... [3-6s] ..." sequence the shot. aspect_ratio: "16:9" (landscape, default) or "9:16" (vertical). resolution: "720p" (default), "360p", or upscaled "1080p" or "4k". first_frame: Local image path the video starts from. last_frame: Local image path the video ends on. reference_images: Up to 3 local images of characters or objects to keep. file_name: Optional .mp4 file name; default is the date plus prompt words. wait_seconds: How long to wait for the render (default 300) before returning an id to fetch later with video_check.

Returns: The saved .mp4 path and an id to change or extend it with video_edit; or, if rendering takes longer than wait_seconds, an id for video_check.

Input Schema

NameRequiredDescriptionDefault
promptYes
file_nameNo
last_frameNo
resolutionNo720p
first_frameNo
aspect_ratioNo16:9
wait_secondsNo
reference_imagesNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.7/5.0
Behavior4/5

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

Annotations already declare a non-readonly, non-idempotent, open-world, non-destructive write, and the description goes well beyond them: real billing (~$0.10/sec of 720p, no free tier), required user confirmation, the 8-second clip limit, the wait_seconds timeout path, and where the file lands. The only missing piece is what happens on failure or whether a timed-out render is still billed.

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 verb, cost warning, and chaining rule before the Args block; the Args/Returns structure is easy to scan and each parameter line adds new information. Minor drag from the model/provider name ('Gemini Omni Flash through the Gemini API'), which doesn't help an agent decide or call.

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 costly, slow, open-world generation tool, the description covers cost, latency/timeout, output location, follow-up tools, and every parameter. An output schema exists, so the brief Returns summary is sufficient rather than redundant.

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?

Schema description coverage is 0%, so the description must carry all eight parameters — and it does, with meaning the schema cannot convey: prompt structure with a worked example and timecode sequencing syntax, first_frame/last_frame as start/end anchors, reference_images capped at 3 for character consistency, and the default file-name rule.

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 short video with native sound from a text prompt') plus the concrete output (an .mp4 in GEMINI_PRO_OUTPUT_DIR). It explicitly separates itself from siblings by naming video_edit for extension and flow_make_video as the credit-based alternative.

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 conditions (one call = ~8s clip; chain video_edit for longer), names a concrete alternative (flow_make_video, gated on browser tools being enabled), and adds a mandatory pre-call step: confirm cost with the user. Exclusions and routing are both present.

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