Skip to main content
Glama

Generate Image with Gemini

generate_image

Create images from text prompts using Google Gemini models. Provide a description, optional reference images, and settings to generate full-resolution images saved locally or previewed inline.

Instructions

Generate an image using Google Gemini image models (Nano Banana Pro). Returns image with inline preview in Claude Desktop and saves full-resolution to disk. Default model: gemini-3-pro-image-preview.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modelNoGemini image model to use (default: gemini-3-pro-image-preview). Options: gemini-3-pro-image-preview, gemini-2.5-flash-image, nano-banana-pro-preview
imagesNoOptional reference images to guide generation
promptYesDescription of the image to generate
imageSizeNoResolution of the generated image (only for image-specific models)
outputPathNoOptional file path to save the generated image (e.g., ./output/image.png)
use_searchNoEnable Google Search grounding for data-driven image generation. Use for: weather forecasts, current events, stock prices, sports scores, statistics. The model will search the web for real-time data to inform image generation.
aspectRatioNoAspect ratio of the generated image1:1
global_media_resolutionNoGlobal image quality setting for cost optimization (default: HIGH). LOW (280 tokens, 75% savings) - Simple tasks, bulk operations. MEDIUM (560 tokens, 50% savings) - PDFs/documents (OCR saturates at medium). HIGH (1120 tokens) - Best quality, detailed analysis. Can be overridden per-image using mediaResolution in images array.
Behavior4/5

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

No annotations are provided, so the description carries the full burden. It discloses key behaviors: returns inline preview in Claude Desktop, saves full-resolution to disk, and mentions the default model. It also explains the use_search grounding behavior. However, it does not mention potential side effects like file overwriting, cost implications, or rate limits, which would be more transparent.

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 concise: two sentences that state the core function, the model family, the output behavior, and the default model. It is front-loaded with the primary action and avoids unnecessary fluff. Every sentence adds value.

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 the tool's complexity (8 parameters, no output schema, no annotations), the description is fairly complete. It covers the main purpose, default model, output behavior, and search grounding. However, it could mention that the tool can also edit images when provided with reference images (as implied by the images parameter and thoughtSignature), which would help agents understand its dual generation/editing capability.

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 100%, so the schema already documents all parameters. The description adds value by explaining the default model and the use_search use cases (weather, current events, etc.). It also clarifies the global_media_resolution cost trade-offs, which is beyond the schema. However, it doesn't elaborate on the thoughtSignature parameter's role in conversational editing, which is partially covered 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 clearly states the tool's purpose: 'Generate an image using Google Gemini image models (Nano Banana Pro).' It specifies the action (generate), the resource (image), and the technology (Gemini image models). It also distinguishes from siblings like edit_image, generate_svg, and generate_video by focusing on image generation with Gemini.

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 provides clear context on when to use the tool (for generating images with Gemini) and mentions the default model. It also hints at usage for data-driven generation via use_search. However, it does not explicitly state when NOT to use it or mention alternatives like edit_image for editing existing images, which would be a stronger guideline.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/houtini-ai/gemini-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server