Skip to main content
Glama

Generate video or images (spends credits)

flow_generate

Generates Google Flow videos or images from text, start/end frames, or reference images, and quotes the credit cost, with a dry run to check spend before generating.

Instructions

Generate video or images in Google Flow, spending the signed-in account's Flow credits (images are usually 0). Text-to-video, text-to-image, image-to-video from a start frame (optionally to an end frame), or guided by ingredient images. Returns a job_id, the credit cost Flow quoted, and the outputs. Use dry_run to get the cost without generating. Omitted settings keep whatever Flow has selected. An option Flow does not offer is an error; nothing is substituted.

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

Input Schema

NameRequiredDescriptionDefault
modeNovideo
waitNoWait for the result. With false, returns the job_id at once; poll flow_job
countNoHow many outputs; cost scales with this
modelNoModel name as shown in Flow, e.g. "Veo 3.1 - Lite"; see flow_list_models
promptYes
dry_runNoApply settings and report the credit cost, but do not generate or upload
downloadNoSave the finished outputs to disk as soon as they are ready
end_frameNoVideo: last frame, same forms as start_frame; needs start_frame
output_dirNoFolder for download=true; defaults to ~/.flow-mcp/downloads
resolutionNoVideo, on models that offer it, e.g. "720p"
ingredientsNoReference images (subject, product, style): absolute local paths or titles of project media. Not combinable with start_frame
max_creditsNoRefuse if Flow quotes more than this. Defaults to FLOW_MCP_MAX_CREDITS (100)
start_frameNoVideo: first frame. Absolute path of a local image (uploaded for you) or the title of an image in the project
aspect_ratioNoe.g. "16:9" or "9:16"
thinking_levelNoImage, on models that offer it: "Low", "Medium", "High"
timeout_secondsNoHow long to wait before returning status "generating"
download_variantNooriginal
duration_secondsNoVideo clip length, on models with a Length slider; cost scales with it

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.7/5.0
Behavior5/5

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

Annotations only declare readOnly=false, openWorld=true and destructive=false; the description adds the material facts an agent needs before committing: this spends real account credits, images are usually free, the quoted cost is returned, unoffered options error out with no silent substitution, and omitted settings inherit Flow's current state. That is substantial context beyond the structured fields for an irreversible, credit-consuming operation.

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?

Front-loads action, service, and the credit consequence in the first clause, then layers modes, return shape, and failure semantics in short declarative sentences. Every sentence carries distinct information; nothing is padded.

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 an 18-parameter, credit-spending generation tool with no output schema, the description supplies the missing return contract (job_id, quoted cost, outputs) and the cost/refusal model. Combined with the well-annotated schema, an agent has everything needed to invoke it correctly, including the dry_run safety path.

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 already 83%, so the baseline is 3. The description adds cross-parameter meaning the schema does not: the frame/ingredient relationships map to distinct generation modes, images are typically zero-credit, and unspecified options inherit Flow's selection rather than defaulting to nothing.

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?

Names a specific verb and resource ("Generate video or images in Google Flow") and immediately enumerates the supported modes: text-to-video, text-to-image, image-to-video from a start frame with optional end frame, and ingredient-guided generation. An agent can tell this apart from flow_job/flow_status (polling) or flow_credits without opening any schema.

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?

Gives explicit cost-avoidance guidance ("Use dry_run to get the cost without generating") and states the default-fill rule ("Omitted settings keep whatever Flow has selected"). It does not name sibling alternatives such as polling flow_job after wait=false, though the schema does; guidance is clear but not fully route-level.

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