Skip to main content
Glama

flow_generate_image

Prepares AI image generation in Google Flow, selecting prompt, model and ratio; confirms only when requested, then downloads generated images.

Instructions

⚠️ CES IMAGES CONSOMMENT DES CRÉDITS. Par défaut (auto_confirm=false): remplit le prompt, sélectionne le modèle/ratio, prend un screenshot et retourne "ready_for_confirmation". NE clique PAS sur Generate. Quand auto_confirm=true: vérifie d'abord que l'interface est bien en mode IMAGE (pas Vidéo), que le modèle est un modèle image, prend un screenshot de vérification, PUIS clique Generate, attend les images et les télécharge. NAN/BANANA modèles image seulement.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
brandNoBrand context for automatic model selection: premium, standard.
modelNoModel: Nano Banana 2 (default), Nano Banana Pro, Nano Banana 2 Lite.Nano Banana 2
ratioNoAspect ratio: 1:1, 16:9, 9:16, 4:3, 3:4.1:1
promptYesThe text prompt for image generation.
campaignNoCampaign identifier for project matching (e.g., "ete-2026", "nouvelle-collection").
auto_confirmNo⚠️ CRÉDITS. Si false (défaut): prépare seulement, ne consomme rien. Si true: vérifie que le mode Image est actif, PUIS clique Generate (consomme des crédits).
project_nameNoName for the project (will reuse existing project with same campaign, or create new).
reference_imagesNoPaths to reference images (optional).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.5/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and delivers: it discloses credit consumption, the exact default sequence (fill prompt, pick model/ratio, screenshot, return 'ready_for_confirmation', no Generate click), the confirmation sequence, and that images are then downloaded. This is rich, non-obvious behavioral detail an agent cannot infer from the schema.

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?

The credit warning is front-loaded, followed by the two operating modes in sequence, which matches the decision an agent must make. It is dense but nearly every clause earns its place; minor redundancy exists between the description and the auto_confirm schema text.

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 complex 8-parameter mutation tool with no annotations and no output schema, the description covers credit cost, mode gating, model restriction, and the return signal ('ready_for_confirmation'). It could say more about what the download yields or how reference_images influence output, but the essentials for correct invocation are present.

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 100%, so the baseline is 3, but the description adds value by clarifying the model constraint ('NAN/BANANA modèles image seulement') and the credit cost tied specifically to auto_confirm. It reinforces rather than merely repeats schema semantics, though most parameter detail still lives in the schema.

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 names a specific verb+resource (generate image) and explicitly scopes it to image models, warning that the UI must be in IMAGE mode 'pas Vidéo'. This distinguishes it from the sibling flow_generate_video without the agent needing to open 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 clearly specifies when each mode applies: auto_confirm=false prepares and returns 'ready_for_confirmation' without consuming credits, while auto_confirm=true verifies mode/model then clicks Generate and consumes credits. The when-to-use guidance is strong, though it never explicitly names a sibling tool to use for the alternative (video) case.

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