Skip to main content
Glama

generate_image

Create images from natural-language prompts using Gemini, then save them to disk and return the file path. Use when asked to generate, draw, or make visuals.

Instructions

Generate an image using Nano Banana (Gemini). Saves the image to disk and returns the file path. Use this tool whenever the user asks to generate, create, draw, or make an image, picture, illustration, photo, artwork, or visual.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modelNoModel to use for this generation. Available: gemini-2.5-flash-image, gemini-2.0-flash-exp-image-generation, gemini-3-pro-image-preview, gemini-3.1-flash-image-preview. Defaults to the current active model.
promptYesDetailed description of the image to generate. Be specific about style, content, colors, composition.
filenameNoOptional filename for the output image (e.g. 'my-character.png'). Defaults to auto-generated name with timestamp.
aspect_ratioNoAspect ratio for the generated image.1:1

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4/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 behavioral burden. It usefully discloses the side effect (saves the image to disk) and the return value (file path), which is the most important trait for an agent. However it omits cost/latency of the external API call, permission requirements, and what happens if 'filename' collides with an existing file.

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?

Two sentences, front-loaded with the verb and side effect before the trigger list. Every phrase earns its place and there is no padding or restatement of the tool name.

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?

Since there is no output schema, the description correctly compensates by stating that a file path is returned. Combined with 100% schema coverage on the four parameters, an agent has enough to invoke it correctly; only secondary details (cost, overwrite behavior) are missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so every parameter (model, prompt, filename, aspect_ratio) is already documented in the schema. The description adds no parameter-level detail beyond what the schema provides, so the baseline 3 is appropriate.

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?

States a specific verb+resource ('Generate an image') and names the underlying model (Nano Banana / Gemini). It also distinguishes itself from the sibling tools (list_models, set_model), which are model-management utilities rather than image producers.

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?

Provides an explicit trigger list ('whenever the user asks to generate, create, draw, or make an image, picture, illustration, photo, artwork, or visual'), which is strong when-to-use guidance. It does not state when NOT to use it or name alternatives, but the sibling tools are unrelated so no ambiguity remains.

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

Deploy Server

Other Tools