Skip to main content
Glama

edit_image

Modify a single image or combine multiple images by following a text instruction. The result is saved as a PNG with an optional preview.

Instructions

Edit or fuse input image(s) with an instruction (Gemini aliases only).

One input image = edit; two or more = fusion. Imagen models are text-to-image only
and are rejected here.

Args:
    image_paths: Absolute paths to the input image(s).
    prompt: The editing / fusion instruction.
    model: nano-banana (default) or nano-banana-pro.
    output_dir: Where to save the full-res PNG. Defaults to env
        GEMINI_IMAGE_OUTPUT_DIR, else the server's CWD.
    return_image: When True, append a downscaled preview of the result.

Returns:
    A text line with the saved absolute path, optionally followed by a downscaled
    preview Image.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modelNonano-banana
promptYes
output_dirNo
image_pathsYes
return_imageNo
Behavior4/5

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

With no annotations, description carries full burden. It discloses that the tool saves the result to a file, returns a path and optional preview. Describes default model and output directory fallback. Missing details about potential side effects or permission requirements, but transparent enough.

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?

Well-structured with bullet points for args. Front-loaded with core purpose and key differentiators. No unnecessary words. Efficient and readable.

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?

For a tool with 5 parameters and no output schema, the description covers inputs, behavior, return format (path + optional image), and default behaviors. Complete for an agent to invoke correctly.

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

Parameters5/5

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

Schema coverage is 0%, so description must compensate fully. It explains each parameter: image_paths (absolute paths), prompt (instruction), model (two named options), output_dir (defaults), return_image (boolean, preview). Adds meaning beyond 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?

Description clearly states 'Edit or fuse input image(s) with an instruction' and distinguishes between one image (edit) and two or more (fusion). It also warns that Imagen models are rejected, differentiating from sibling tool generate_image. Purpose is specific and unambiguous.

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 explicit usage guidance: one image = edit, two or more = fusion. Warns against using Imagen models. Lists parameters with defaults and behavior. Could be more explicit about when not to use (e.g., text-to-image use cases), but adequate.

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/someshwarpatil/gemini-image-mcp'

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