Skip to main content
Glama

Queue fast concurrent Flow generations

flow_generate

Queue up to 100 image or video generations in Google Flow with concurrent rendering, upload deduplication, and credit caps. Get job IDs instantly and poll with flow_wait.

Instructions

Queue 1-100 image or video generations. Runs up to FLOW_CONCURRENCY (default 3) concurrently in Flow with instant JS/CDP input, SHA-256 upload deduplication, zero artificial sleeps, and live max_credits protection. Returns job IDs immediately; poll with flow_wait.

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": "<project>",
      "scenes": "<scenes>"
    },
    "name": "flow_generate"
  }
}

Input Schema

NameRequiredDescriptionDefault
scenesYes
projectYesOutput folder name under FLOW_OUTPUT_DIR (default ~/fast-flow-out).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations only declare it is a non-read-only, non-idempotent, open-world write; the description adds genuinely new behavior: asynchronous job submission, default concurrency of 3 via FLOW_CONCURRENCY, upload deduplication, and a hard max_credits abort before generation. It does not describe failure/retry semantics at the job level or how queued work can be cancelled (flow_cancel), which keeps it below 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?

Two sentences, front-loaded with the action and count, then the behavioral traits and the polling handoff. Some space is spent on implementation trivia ('instant JS/CDP input', 'zero artificial sleeps') that does not help tool selection, which is the only real waste.

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?

No output schema exists, and the description correctly compensates by stating it returns job IDs immediately and pointing to flow_wait. Combined with the credit-cap and concurrency notes, an agent has enough to invoke it correctly; only job failure/cancellation behavior is left implicit.

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?

With 50% schema description coverage, the nested scene properties are already well documented with defaults, ranges, and model labels. The description adds little parameter-level meaning beyond restating the 1-100 bound that the schema already enforces via minItems/maxItems, so it lands at the baseline.

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 — queue 1-100 image or video generations in Flow — and immediately distinguishes itself from flow_wait by declaring it returns job IDs rather than results. An agent can tell this is the batch creation entry point without opening the 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?

Explicitly gives the follow-up path: 'Returns job IDs immediately; poll with flow_wait.' That is clear when-to-use and which sibling handles the next phase. It does not state exclusions (e.g., when to use flow_assets or flow_new_project instead), so it stops short of full when/when-not guidance.

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