Skip to main content
Glama

flow_text_to_video

Turns a detailed text prompt into an MP4 video via your signed-in Google Flow account, using subscription credits and configurable aspect ratio, duration, and resolution.

Instructions

Generate a video from a text prompt using Google Flow. By default (use_browser_credits=True or when no API key is set), uses your logged-in Google Flow email and subscription credits at labs.google/fx/tools/flow.

Args: prompt: Detailed scene, camera motion, lighting, and sound design prompt. aspect_ratio: '16:9' (landscape) or '9:16' (vertical/reels). Default '16:9'. duration: Video length in seconds (3 to 15, default 10). resolution: Output resolution ('360p', '720p', '1080p', '4k'). Default '720p'. output_path: Optional local file path to save the generated MP4. use_browser_credits: If True (default), uses your logged-in Google Flow web session & credits without needing an API key.

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_text_to_video"
  }
}

Input Schema

NameRequiredDescriptionDefault
promptYes
durationNo
resolutionNo720p
output_pathNo
aspect_ratioNo16:9
use_browser_creditsNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

With no annotations at all, the description carries the full burden and does well: it discloses the auth model (logged-in Google Flow web session vs API key), that subscription credits are consumed, and the exact host being driven. It does not cover generation latency, whether output_path overwrites an existing file, or failure modes, which are notable gaps for a long-running paid generation.

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 primary behavior and default mode are front-loaded before the arg breakdown, and the per-parameter lines are terse and useful. There is mild duplication: the browser-credits behavior is stated in the opening paragraph and again as the final arg entry.

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 six-parameter generative tool with an output schema present, the description covers mode selection, prompt expectations, and all output-shaping parameters. Remaining omissions are operational detail (expected wait time, credit cost per video, overwrite semantics) rather than anything that would cause a mis-invocation.

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 supply all parameter meaning, and it does: every one of the six params is documented with accepted values or ranges, defaults, and intent (e.g. duration 3-15 default 10, resolution set, aspect ratio with the reels use case noted). This is exactly what a zero-coverage schema requires.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a specific verb and resource: 'Generate a video from a text prompt using Google Flow.' Combined with the text-prompt framing, an agent can reasonably distinguish it from frame-based or reference-based siblings. It stops short of naming those siblings explicitly, so the differentiation is inferential rather than stated.

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?

The dual-path credit logic ('use_browser_credits=True or when no API key is set') gives real context on the operating mode, and output_path signals a save-to-disk variant. However, there is no explicit when-to-use guidance versus flow_frames_to_video or flow_reference_to_video, which are the closest alternatives for someone reaching for this tool.

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