Skip to main content
Glama

Generate video (SPENDS CREDITS)

flow_generate_video
Destructive

Generate a video clip using text, a start frame, or up to 3 reference images. Credits are checked against a budget before approval to avoid unexpected charges.

Instructions

Generate a video clip in Flow. THIS SPENDS REAL CREDITS. The cost quoted by Flow is read and checked against expected_max_cost and the run budget BEFORE approval; if it exceeds either, the proposal is rejected and nothing is charged. The generation MODE is set by what you attach: start_frame_media_id gives Frames-to-Video (preserves the approved composition — the normal path), reference_media_ids gives Ingredients-to-Video (recomposes from up to 3 references), and attaching nothing gives Text-to-Video (least control). Compose in free stills first and animate an approved still rather than generating blind. Never call this twice for the same clip while one is in flight — a resubmit is a second charge. Model tier and aspect ratio are per-project settings; set them with flow_settings, not here.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
promptYesMotion prompt. With a start frame, describe ONLY movement, camera and ambient sound — the frame owns the composition
no_waitNoApprove and return immediately, for parallel batches. Collect later with flow_collect
out_fileNoOutput filename; relative paths resolve under FLOW_OUTPUT_DIR
timeout_secondsNo
expected_max_costYesReject the proposal if Flow quotes more than this. Veo 3.1 Fast is 20, Lite is 10
end_frame_media_idNoOptional end frame, for an interpolation target
reference_media_idsNoUp to 3 reference images for Ingredients-to-Video. Recomposes the shot rather than preserving it
start_frame_media_idNoLibrary media id to use as the start frame (Frames-to-Video)
Behavior5/5

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

Adds significant context beyond annotations: real credit spending, cost rejection mechanism, mode switching effect on prompt, warning against duplicate charges, and setting reminders. No contradiction with annotations (destructiveHint=true is consistent).

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?

The description is thorough but not overly verbose; every sentence serves a purpose. It could be slightly more streamlined, but the complexity (multiple modes, cost logic) justifies the length.

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?

Covers creation logic, cost, mode selection, duplicate handling, and directs settings elsewhere. Lacks explicit return value description, but the mention of 'Collect later with flow_collect' implies asynchronous return. No output schema exists, so this is acceptable.

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 coverage is high (88%), but the description enriches understanding by explaining how parameters interact (e.g., start_frame vs reference_media_ids switch modes and change prompt semantics), clarifies expected_max_cost role, and details no_wait usage for parallel batches. Adds meaningful value beyond schema descriptions.

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 clearly states 'Generate a video clip in Flow' and distinguishes three modes (Frames-to-Video, Ingredients-to-Video, Text-to-Video) based on which parameters are attached. It also suggests composing stills first, effectively differentiating from sibling tools like flow_generate_still.

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?

Explicitly tells when to use (generating video with cost checking against expected_max_cost and budget) and when not to (avoid duplicate calls, set model tier and aspect ratio via flow_settings, not here). Recommends an alternative workflow: compose in stills first then animate.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Sergiorushy326/google-flow-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server