Skip to main content
Glama

generate_image

Generate one or more images through Gemini web app and save them to disk at exact pixel sizes, with cropping, format, upscaling, and reference-image options. No API key required.

Instructions

Generate one or more images with Google Flow and save them to disk. You can ask for an exact pixel size (e.g. 1200x630): it generates at the closest native aspect ratio and crops to the size you asked for. Images cost no credits.

Input Schema

NameRequiredDescriptionDefault
fitNoHow to fit into `size`: "cover" crops to fill, "contain" fits everything and pads the edges.cover
sizeNoExact output size, "WIDTHxHEIGHT" format, e.g. "1200x630". Omit to use the native size.
countNoHow many variants to generate (1 to 4).
aspectNoNative aspect ratio. If omitted and `size` is given, the closest one is chosen.
formatNoOutput format.jpg
promptYesImage description. In any language.
out_dirNoDestination folder. Defaults to FLOW_OUTPUT_DIR.
upscaleNoAsk Flow to upscale the result: "2k" (free, about 2x the native size, ~10 s per image) or "4k" (paid plans). It is the only way to get real detail beyond native; a larger size alone just interpolates.
basenameNoBase filename. Derived from the prompt by default.
backgroundNoPadding color for fit="contain", as a CSS color ("#0f172a", "black"). White by default.
reference_imagesNoLocal paths to images to use as references. Flow starts from them instead of from scratch, so the prompt describes what to change rather than what to create. Useful for versioning a logo, iterating on a previous result, or holding a style across pieces.
reference_library_namesNoFilenames ALREADY in the project library, to attach without uploading them again. Use this when iterating on the same reference: re-uploading the same file only leaves duplicate rows in the library and makes each generation slower.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full burden and does disclose two valuable traits: images cost no credits and exact-size requests are achieved by native-ratio generation plus cropping. It omits important behavior for a write-to-disk tool: authentication requirements, whether existing files are overwritten, generation latency, failure modes, and what the tool returns.

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?

Three short sentences, front-loaded with what the tool does and what it produces, followed by the most decision-relevant caveat (the crop behavior). No filler or repetition of schema content.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a twelve-parameter tool with no output schema and no annotations, the description is thin at the edges: it does not say what is returned (file paths, a confirmation, a count), how out_dir/FLOW_OUTPUT_DIR behaves when missing, or how reference_images interact with prompt length limits. The core workflow is explained adequately, but an agent still has open questions before calling it.

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 description coverage is already 100%, so the baseline is 3, but the description adds genuine cross-parameter meaning the schema does not: the interaction between size and aspect (closest native ratio is chosen automatically, then cropped). That is real interpretive value beyond the per-field descriptions, though it covers only two of twelve parameters.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ("Generate one or more images with Google Flow") plus the side effect ("save them to disk"), which clearly separates it from siblings like generate_video, upscale_image, and download_image. It stops short of naming any sibling explicitly, so differentiation is inferred rather than stated.

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?

It gives useful conditional guidance for the size parameter ("ask for an exact pixel size... generates at the closest native aspect ratio and crops") and a cost note. However, it never says when to prefer this over generate_batch, upscale_image, or download_image, and no prerequisites or exclusions are given.

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