Skip to main content
Glama

generate_image

Generate an image. Default model: nano_banana_2 (good quality, ~10 coins, supports reference photo). Use z_image (1 coin) only if the user wants the cheapest possible result. Use nano_banana_pro (18-24) only when the user explicitly asks for face preservation or maximum quality. Default resolution 1K — never use 2K/4K unless the user explicitly asks. If aspect ratio matters and the user did not say, ASK whether they want 9:16 (vertical), 16:9 (horizontal), or 1:1 (square). For multi-character or character-plus-outfit shots, pass extra anchor images in reference_image_urls — Nano Banana 2 / Pro accept up to 7 inputs. Returns job_id; poll check_job until status=done.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modelNo
promptYes
resolutionNo1K cheapest; 4K up to 50% more. Default 1K.
aspect_ratioNo
reference_image_urlNoPrimary reference image. Optional. For multi-ref pass reference_image_urls instead or in addition.
reference_image_urlsNoExtra reference images (Nano Banana 2 / Pro accept up to 7 total including reference_image_url). Use for multi-character, face + outfit, style references. Order matters.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior4/5

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

Annotations already declare non-read-only, non-destructive, non-open-world. The description adds valuable unsurfaced context: approximate coin costs per model, that reference photos are supported, the 7-input cap, and the async workflow (returns job_id, poll check_job). It does not state failure modes or whether images persist, but the added operational context is substantial.

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?

Front-loaded with the default action, then layered decisions (model, resolution, aspect ratio, references, polling). Every sentence carries a decision the agent must make; no filler.

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

Completeness5/5

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

With no output schema, the description supplies the return-value workflow (job_id then poll check_job), the default model/resolution, and the reference-image model constraints — enough for an agent to invoke and follow through correctly on a 6-parameter generation tool.

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%, so the description must compensate, and it does: it gives cost/quality tradeoffs for the model enum values, states the default resolution and why not to raise it, and explains the aspect_ratio enum values in plain terms (9:16 vertical, 16:9 horizontal, 1:1 square). It adds meaning beyond the raw enums, though a few enum values (google_nano_banana_edit, gpt4o_image, gpt_image_2) are never characterized.

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?

Opens with a specific verb+resource ('Generate an image') and immediately differentiates itself from the sibling generate_video by scope. The model-selection preamble makes the tool's role unambiguous without opening the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

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

Explicit when-to-use rules for each model (nano_banana_2 default, z_image only for cheapest, nano_banana_pro only for face preservation/max quality), a resolution rule (never 2K/4K unless asked), a mandated clarifying question for aspect ratio, and guidance on reference_image_urls for multi-character shots.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.