Skip to main content
Glama

Generate Video with Google Flow

flow_generate_video

Starts a Google Flow video generation job with an optional input image and returns a job ID promptly without blocking; poll job status until the video is done.

Instructions

Start a Google Flow video generation job (defaults to Veo, 5-15s) with an optional input image and return a jobId promptly without blocking. Use when the user asks to generate a new video, then poll flow_job_status until done.

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
countNoNumber of video variations to generate (1-4).
modelNoGoogle Flow video model. Defaults to 'veo' (selects the best Veo / Flow video model available).veo
promptYesDetailed video prompt describing subject, motion, setting, lighting, camera movement, and mood.
outputsNoDeprecated alias for count.
upscaleNoOptional explicit Flow upscale override.none
durationNoRequested video duration in seconds (5-15s). Omit to use the model default.
fileNameNoOptional safe filename stem; job ID prefix and video extension are appended automatically.
accountIdNoOptional user-defined local account ID (e.g. 'default' or 'work'). Omit to use the active default account.
outputDirNoAbsolute directory path where output files are saved (e.g. project .tmp). Omit to save inside the plugin data directory.
inputImageNoOptional absolute path to an input/starting image to animate into video.
resolutionNoTarget video resolution: 720p (native), 1080p, or 4k (triggers Flow upscale when supported).720p
aspectRatioNoOutput aspect ratio: 16:9 (landscape), 9:16 (portrait), 1:1 (square), 4:3, 3:4, or ui-default.16:9
flowProjectNoOptional Google Flow project name to reuse or open.
referenceFilesNoOptional list of absolute paths to existing local images/videos used as reference frames or ingredients.
durationSecondsNoDeprecated alias for duration.
outputDirectoryNoDeprecated alias for outputDir.

Output Schema

NameRequiredDescriptionDefault
errorNoHuman-readable failure summary when failed.
filesYesSaved output files with absolute paths and metadata.
jobIdYesUnique job UUID to poll with flow_job_status.
modelNoRequested model ID.
statusYesNormalized job status.
progressYesEstimated completion percentage (0-100).
accountIdYesLocal account ID used for the job.
errorCodeNoMachine-readable error code when failed.
mediaTypeYesGenerated media type.
aspectRatioNoRequested aspect ratio.
detailStatusYesDetailed internal pipeline state.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, idempotentHint=false, and openWorldHint=true, so the mutation and external-dependency profile is known. The description adds genuinely useful behavior beyond that: the call is asynchronous, returns a jobId promptly, and must be followed by polling. It omits cost/quota implications and account/auth prerequisites, which matter for a 16-param open-world generation job.

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?

Two tight sentences, front-loaded with the action and its async nature, with the polling instruction placed at the end where the agent needs it. No filler or restated title.

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?

An output schema exists, so return values need no explanation, and the async/polling workflow is fully described. For a 16-parameter generation tool, the description could have flagged the account and output-directory knobs, but the schema covers them completely, so nothing critical is missing.

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 regardless. The description echoes the Veo default, the 5-15s duration, and the optional input image, all of which the schema already documents in more detail, so it adds little interpretive value for the remaining params like accountId, referenceFiles, or upscale.

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 ('Start a Google Flow video generation job') with concrete scope details (Veo default, 5-15s, optional input image) and the return contract (jobId, non-blocking). An agent can immediately tell this is the video-creation entry point rather than the image, upscale, or status siblings.

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?

Explicitly says 'Use when the user asks to generate a new video, then poll flow_job_status until done,' which names the follow-up alternative and the condition selecting it. It lacks explicit when-not guidance (e.g., use flow_upscale_video for existing footage), but the trigger condition is unambiguous.

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