Skip to main content
Glama

Generate video (text-to-video)

flow_generate_video

Creates a video in Google Flow from a text prompt, with control over aspect ratio, camera motion, resolution and variation count, saving editor-ready file names plus a manifest.json.

Instructions

Generates a video in Google Flow from text, with aspect ratio, camera motion, variation count and editor-ready naming (Scene_01_Take_02.mp4) plus manifest.json. Consumes Flow credits.

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": "flow_generate_video"
  }
}

Input Schema

NameRequiredDescriptionDefault
waitNotrue = wait for the result (up to wait_timeout_seconds). false = return job_id immediately.
modelNoOptional model name as shown in Flow (e.g. 'Veo 3.1 - Fast', 'Veo 3.1 - Quality', 'Nano Banana Pro'). Omit to keep Flow's current default.
promptYesPrompt text (any language; English often gives the best Veo results).
scene_idNoScene id. Numbers are zero-padded: 1 -> Scene_01.
overwriteNoOverwrite existing files with the same name. Default false appends _alt2, _alt3...
output_dirNoAbsolute root folder for projects. Default: /root/Projetos
resolutionNoVideo resolution as offered by Flow, e.g. '720p' or '360p' (cheaper). Omit to keep Flow's current setting.
ask_optionsNoIf true (default when the client supports it), unspecified options (quantity, and for video: format, length) are asked to the user in a dialog showing the credit cost before generating. Set false to skip the dialog and use defaults.
max_retriesNoRetries with exponential backoff on rate limit / server errors (default 3).
take_numberNoTake number: 2 -> Take_02.
aspect_ratioNoVideo format: 9:16 = vertical (TikTok, Reels, Shorts); 16:9 = horizontal (YouTube). Omit to keep Flow's current setting.
project_nameNoProject name. Files go to <output_dir>/<project_name>/Assets_Flow/ and manifest.json to <output_dir>/<project_name>/.Flow_Project
camera_motionNoCamera movement. Applied via Flow's camera control when present, otherwise as a cinematic prompt directive. Aliases: pan=pan_right, tilt=tilt_up, zoom=zoom_in, dolly=dolly_in, orbit=orbit_right.
outputs_countNoHow many variations to generate (1-4). DEFAULT 1: only set this when the user explicitly asks for more. Multiple outputs are saved as _v1.._v4.
timeout_secondsNoMax seconds to wait for Flow to render (default 600).
duration_secondsNoVideo length in seconds. Flow's allowed range depends on the model (e.g. Omni 1.2 Flash: 3-15 s) and is checked live; omit to keep Flow's current length.
flow_project_urlNoOptional existing Flow project URL to generate inside. Default: most recent project (worker 1) or a new project (extra workers).
wait_timeout_secondsNoMax seconds this tool call blocks before returning a job_id to poll.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare openWorldHint=true and destructiveHint=false, so the description's added value is the credit consumption warning, the editor-ready file naming (Scene_01_Take_02.mp4) plus manifest.json, and the overwrite/_alt2 default behavior. These are real behavioral facts beyond the annotations, though polling/job_id semantics are left to the schema.

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?

A single front-loaded sentence that packs purpose, key options, output artifacts and the credit cost with no filler. Slightly dense, but every clause carries information.

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 an 18-parameter generation tool with no output schema, the description covers the essentials an agent needs: what it produces, where files land, credit cost, and overwrite behavior. Remaining details (retries, timeouts, wait semantics) are fully documented in the schema.

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 coverage is 100%, so baseline is 3; the description adds meaning by surfacing aspect ratio, camera motion, variation count and the naming convention that maps scene_id/take_number to filenames. It does not explain wait/timeout interplay, but the schema already does.

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 ("Generates a video in Google Flow from text") and the "from text" qualifier cleanly separates it from the image-to-video sibling. An agent can identify the operation without opening the schema.

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

Usage Guidelines3/5

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

Usage is implied by "from text" and the credit-cost note, but there is no explicit when-to-use/when-not guidance or named alternative (e.g. flow_image_to_video, flow_generate_batch). The agent must infer routing from sibling names alone.

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