Skip to main content
Glama

Queue Flow generations

flow_generate

Queues one video or image generation per scene in an open Google Flow project, checks each scene against a credit cap before spending, and returns job IDs for later retrieval.

Instructions

Queue one clip or image per scene in the open Flow project. Runs one at a time with human-like pauses and spends the user's Google AI credits (per video, at 720p: Omni 1.2 Flash 3 a second up to 10 s and 6 a second after, so 30 for 10 s and 60 for 15 s; at 360p a third of that; Veo 3.1 Lite 10; images 0). Each scene is checked against max_credits using Flow's own quote before anything is spent. Returns job ids immediately; use flow_wait for results.

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
projectYesFolder name for the downloaded clips, e.g. 'HotelPromo'.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior5/5

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

Adds substantial behavior beyond the annotations: serial execution with human-like pauses, that it spends the user's Google AI credits with per-model/per-resolution/per-second pricing, that a pre-flight quote against max_credits prevents spend, and that it returns job ids rather than results. None of this is recoverable from readOnlyHint/openWorldHint/idempotentHint alone.

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?

Purpose and follow-up instruction are front-loaded, and the dense pricing parenthetical is genuinely decision-relevant rather than filler. The cost clause is heavy for a single sentence but every element earns its place.

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 write tool with no output schema, it covers the essentials an agent needs: credit cost model, safety cap behavior, immediate job-id return, and the flow_wait handoff. Minor gaps remain around partial failures across scenes and what the returned job ids look like, but the core call contract is complete.

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 only 50%, but the description compensates by explaining cost semantics that tie model, resolution and duration together (3 credits/sec up to 10 s then 6/sec at 720p, a third at 360p, Veo 3.1 Lite 10, images 0) and by clarifying the max_credits skip rule. It does not add meaning for the many nested scene fields, which the schema already documents well.

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 one clip or image per scene in the open Flow project', naming both the unit of work (scene) and the target (open Flow project). It is immediately distinguishable from siblings like flow_wait, flow_assemble or flow_continue.

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 clear routing guidance: 'Returns job ids immediately; use flow_wait for results', which points at the correct follow-up sibling. It also states the credit-safety precondition (per-scene check against max_credits) but does not spell out when to prefer flow_continue/flow_retry instead of re-generating.

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