Skip to main content
Glama

Generate Image with Google Flow

flow_generate_image

Generate new images or illustrations from text prompts with Google Flow and save them to a chosen output directory or plugin data folder; poll job status if queued or running.

Instructions

Generate new images or illustrations from a text prompt using Google Flow (defaults to Nano Banana) and save them to outputDir or the plugin data folder. Use when the user asks to create new images; poll flow_job_status if status is queued or running.

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
countNoNumber of image variations to generate (1-4).
modelNoGoogle Flow image model. Defaults to 'nano-banana' (selects the latest Nano Banana model available).nano-banana
promptYesDetailed image prompt describing subject, action, setting, lighting, camera angle, and style.
outputsNoDeprecated alias for count.
fileNameNoOptional safe filename stem; job ID prefix and image extension are appended automatically.
accountIdNoOptional user-defined local account ID (e.g. 'default' or 'work'). Omit to use the active default account.
outputDirNoAbsolute directory path where output files are saved (e.g. project .tmp). Omit to save inside the plugin data directory.
aspectRatioNoOutput aspect ratio: 16:9 (landscape), 9:16 (portrait), 1:1 (square), 4:3, 3:4, or ui-default.16:9
flowProjectNoOptional Google Flow project name to reuse or open.
referenceFilesNoOptional list of absolute paths to existing local images/videos used as reference frames or ingredients.
outputDirectoryNoDeprecated alias for outputDir.

Output Schema

NameRequiredDescriptionDefault
errorNoHuman-readable failure summary when failed.
filesYesSaved output files with absolute paths and metadata.
jobIdYesUnique job UUID to poll with flow_job_status.
modelNoRequested model ID.
statusYesNormalized job status.
progressYesEstimated completion percentage (0-100).
accountIdYesLocal account ID used for the job.
errorCodeNoMachine-readable error code when failed.
mediaTypeYesGenerated media type.
aspectRatioNoRequested aspect ratio.
detailStatusYesDetailed internal pipeline state.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare openWorldHint=true and readOnlyHint=false, so the safety profile is covered; the description adds genuinely new behavior by disclosing that output is written to disk (outputDir or plugin data folder) and that the call is asynchronous and may need status polling. It omits cost/quota implications and any account-authentication prerequisite implied by the flow_account_login siblings.

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?

Two sentences with no filler, front-loading the action and output destination before the usage and polling guidance. Every clause carries information an agent needs at call time.

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 an output schema present, return values need not be described, and the description covers the two non-obvious facts: file output location and async job polling. It leaves model tradeoffs and the account-scoping behavior (accountId) entirely to the schema, which is acceptable but slightly thin for an 11-parameter generative tool.

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% across all 11 parameters, so the schema already documents prompt, model, count, aspectRatio, and the deprecated aliases. The description reinforces only the default model and default save location, adding little meaning beyond the structured fields; 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?

The description gives a specific verb and resource ('Generate new images or illustrations from a text prompt using Google Flow'), names the default model, and states where results land. An agent can distinguish this from flow_generate_video purely on the image-vs-video resource 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 Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It states an explicit trigger ('Use when the user asks to create new images') and a follow-up rule ('poll flow_job_status if status is queued or running'), which is the key routing decision for an async tool. It stops short of exclusions, such as not being the right choice for upscaling or reference-only workflows, which is why it is not a 5.

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