Skip to main content
Glama

Generate an image

generate_image

Generates an AI image. COSTS CREDITS (call get_pricing: generate_* for Nano Banana 2, generate_pro_* for Nano Banana Pro, generate_gpt_* for GPT Image 2.5). Returns the image inline plus id and credits_remaining. Attach references with reference_asset_ids (up to 14). Pick model for the job: Nano Banana 2 (default) for light, texture, mood and speed; Nano Banana Pro when structure and proportion must hold exactly; GPT 2.5 Flare for text you can actually read (labels, packaging, signs); GPT 2.5 Sunburst for the same with more care over references, slower. GPT tops out at 2K.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modelNogemini-3.1-flash-image = Nano Banana 2 (default), gemini-3-pro-image = Nano Banana Pro, gpt-image-2.5-flare = GPT 2.5 Flare, gpt-image-2.5-sunburst = GPT 2.5 Sunburst.
promptYesMax 16000 chars.
project_idYesRequired (no default on a hosted server).
resolutionNoGPT Image 2.5 renders 1K and 2K only.
aspect_ratioNo
reference_asset_idsNoUp to 14.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Beyond the annotations (readOnlyHint=false, destructiveHint=false), the description discloses important behavior: it costs credits, returns the image inline with id and credits_remaining, and supports references. This adds meaningful context about side effects and performance that annotations alone do not convey.

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?

The description is dense but every sentence earns its place, front-loading the core function and cost warning before model guidance. The semicolon-separated model guidance is compact and readable despite covering multiple variants.

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?

Given six parameters, three enums, no output schema, and the readOnly/destructive annotations being neutral, the description covers cost, return format, model choice, reference limits, and resolution constraints. It could additionally clarify default resolution or project_id semantics, but these are either schema-provided or not essential to invocation.

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 high at 83%, but the description adds value beyond the schema by explaining when to use each model, what the model names mean, the 14-reference limit, and the GPT 2K resolution restriction. This supplements the enum descriptions with practical decision-making context.

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 opens with a specific verb and resource: 'Generates an AI image,' which makes the core function immediately identifiable. It also clarifies scope by listing concrete outputs and referencing siblings like get_pricing, distinguishing this tool from video/sheet generation tools.

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?

The description gives explicit model-selection guidance with conditions for each variant, plus a note to consult get_pricing for credit costs. However, it does not state when to choose generate_image over sibling tools like generate_sheet or generate_video, so the exclusion guidance is incomplete.

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.

Resources