Skip to main content
Glama

Generate image (Nano Banana / Imagen in Flow)

flow_generate_image

Generates still images in Google Flow from prompts, with optional reference images, then downloads full-resolution files using editor-ready names and manifest.json.

Instructions

Generates still images inside Google Flow and downloads them at the full resolution Flow serves, with editor-ready naming and manifest.json. Optional reference images. 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": {
      "prompt": "<prompt>"
    },
    "name": "flow_generate_image"
  }
}

Input Schema

NameRequiredDescriptionDefault
waitNotrue = wait for the result (up to wait_timeout_seconds). false = return job_id immediately.
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.
promptYesPrompt text (any language; English often gives the best Veo results).
scene_idNoScene id. Numbers are zero-padded: 1 -> Scene_01.
overwriteNoOverwrite existing files with the same name. Default false appends _alt2, _alt3...
output_dirNoAbsolute root folder for projects. Default: /root/Projetos
ask_optionsNoIf true (default when the client supports it), unspecified options (quantity, and for video: format, length) are asked to the user in a dialog showing the credit cost before generating. Set false to skip the dialog and use defaults.
max_retriesNoRetries with exponential backoff on rate limit / server errors (default 3).
take_numberNoTake number: 2 -> Take_02.
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).
project_nameNoProject name. Files go to <output_dir>/<project_name>/Assets_Flow/ and manifest.json to <output_dir>/<project_name>/.Flow_Project
outputs_countNoHow many variations to generate (1-4). DEFAULT 1: only set this when the user explicitly asks for more. Multiple outputs are saved as _v1.._v4.
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).
reference_imagesNoAbsolute paths to local images used as ingredients (character / scenery / style references).
wait_timeout_secondsNoMax seconds this tool call blocks before returning a job_id to poll.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations declare a non-read-only, open-world operation, and the description adds real value beyond them: it discloses that credits are consumed, that files are downloaded at full resolution with a manifest.json, and that reference images are optional. It still leaves polling behavior (wait=false returning job_id, then which sibling to poll) and overwrite/alt-file handling implicit, which is why it is not 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?

Three short sentences, front-loaded with the core action and outcome, with no filler. The fragmentary 'Optional reference images.' is terse but still earns its place by flagging the reference path; overall it is well sized for a one-screen definition.

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?

With 16 parameters and no output schema, the description carries a fair load, and it does explain the return artifact (downloaded image files, manifest.json). It is slightly thin on the asynchronous path — how wait/wait_timeout_seconds/ job_id relate to a follow-up polling tool — and on how failures or retries surface, but an agent has enough to call it correctly.

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?

Schema description coverage is 100%, so the schema already explains all 16 parameters in detail, including defaults and file-naming conventions. The description only restates two of them (reference images, prompt-level resolution output) and adds no syntax or interaction guidance beyond the schema, so the baseline 3 applies.

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 (generates) and resource (still images) plus the scope (inside Google Flow) and what it produces (downloaded files with editor-ready naming and manifest.json). The word 'still' plus the title's 'Generate image' makes it distinguishable from the video-oriented siblings flow_generate_video and flow_image_to_video without opening either schema.

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?

Usage is only implied: an agent can infer this is the tool for image generation rather than video, and 'Optional reference images' hints at the reference workflow. There is no explicit when-to-use/when-not guidance, no mention of an alternative for batch work (flow_generate_batch) or for cost checking (flow_estimate_cost) before spending credits.

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