Skip to main content
Glama

Batch storyboard queue

flow_generate_batch

Queues a full storyboard of takes, returns a batch ID immediately, and runs generations in the background with concurrency, retries, and manifest output. Poll queue status to monitor progress.

Instructions

Queues a full storyboard (list of takes) and returns a batch_id immediately. Runs in background with configurable concurrency (1-4 workers, each in its own Flow tab/project), automatic retry with exponential backoff on rate limits / server errors, and writes every result + a batch summary to <output_dir>/<project_name>/manifest.json. Poll flow_get_queue_status. 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": {
      "project_name": "<project_name>",
      "scenes": "<scenes>"
    },
    "name": "flow_generate_batch"
  }
}

Input Schema

NameRequiredDescriptionDefault
scenesYesTakes to generate, e.g. [{ take_number: 1, prompt: '...', aspect_ratio: '16:9' }].
overwriteNoOverwrite existing files with the same name. Default false appends _alt2, _alt3...
output_dirNoAbsolute root folder for projects. Default: /root/Projetos
concurrencyNoSimultaneous generations (capped by FLOW_MCP_MAX_CONCURRENCY=2).
max_retriesNoRetries with exponential backoff on rate limit / server errors (default 3).
project_nameYesProject name (folder name).
default_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.
timeout_secondsNoMax seconds to wait for Flow to render (default 600).
flow_project_urlNoOptional existing Flow project URL to generate inside. Default: most recent project (worker 1) or a new project (extra workers).
default_aspect_ratioNoImage aspect ratio: 16:9, 4:3, 1:1, 3:4 or 9:16. Set in Flow's UI (falls back to a prompt directive if the control is missing).
default_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.
default_outputs_countNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

A4.4/5.0
Behavior4/5

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

Goes well past the annotations (readOnlyHint=false, openWorldHint=true, destructiveHint=false) by disclosing background execution, the 1-4 worker model with each worker in its own Flow tab/project, exponential-backoff retry on rate limits and server errors, and the exact artifact written to <output_dir>/<project_name>/manifest.json. This is exactly the operational context an agent needs before kicking off a long job. It does not address what happens on partial failure or whether the batch can be cancelled mid-flight, keeping it off a 5.

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?

Four sentences, front-loaded with the action and return value, then behavior, then next step, then cost. No filler. The concurrency/retry/artifact details are packed into one long sentence that could be split for scanning, which is the only structural blemish.

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 12-parameter async mutation with no output schema, the description covers the return value (batch_id), the persistent artifact (manifest.json), the polling path, and the credit cost. Remaining gaps are secondary: polling cadence, expected batch duration, and partial-failure semantics are not described, though timeout_seconds and max_retries in the schema partially backfill these.

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 92%, so the baseline is a 3, but the description adds meaning the schema does not: concurrency is realized as separate Flow tabs/projects per worker (implying parallel resource cost), and output_dir/project_name determine a concrete manifest path. Those are non-obvious runtime semantics rather than restatements.

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?

Specific verb plus resource plus return contract: "Queues a full storyboard (list of takes) and returns a batch_id immediately." It clearly distinguishes the batch/queue path from the single-item siblings (flow_generate_video, flow_generate_image) by framing the input as a list of takes and the output as a handle rather than a rendered file.

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 follow-up routing: "Poll flow_get_queue_status," which tells the agent this is fire-and-forget and what to call next. It also warns "Consumes Flow credits," a cost signal relevant to choosing batch vs single calls. It stops short of stating when NOT to use it (e.g. single-take jobs should use a direct generate tool), so it is not a full when/when-not treatment.

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