Skip to main content
Glama

Edit Image

edit_image

Edit an existing image by providing a text prompt describing desired changes; optionally add reference images to guide style. Returns the saved file path.

Instructions

Edit an existing image using a text prompt. Optionally provide reference images for style guidance. Returns the file path of the saved result.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modelNoModel ID to use. Options: gemini-3.1-flash-image-preview (default), gemini-2.5-flash-image, gemini-3-pro-image-preview
promptYesInstructions for how to edit the image, e.g. "change the sky to purple" or "remove the background"
imagePathYesAbsolute path to the source image to edit. Supported formats: PNG, JPG, JPEG, GIF, WebP, BMP
referenceImagesNoOptional array of absolute paths to reference images for style or context

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
modelYesModel ID that was used for editing
filePathYesAbsolute path where the edited image was saved
sizeBytesYesSize of the edited image in bytes

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv1.0.0

TDQS

A4/5.0
Behavior3/5

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

The annotations already convey that this is not read-only and not idempotent. The description adds useful behavioral detail by mentioning that the result is saved and its file path returned, but it does not explain whether the original file is overwritten or a new file is created. This is a moderate gap, not a contradiction.

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?

Three tight sentences with no filler. The core action, optional input, and return value are all stated efficiently and in a sensible order.

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 complete schema coverage, an output schema, and clear annotations, the description captures the essential behavior well. It could be slightly stronger by noting how this differs from continue_editing or clarifying save behavior, but overall an agent has enough to call the tool correctly.

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 the schema already documents all four parameters in detail. The description adds a small clarification that referenceImages are for 'style guidance', which is consistent with the schema. It does not add substantial new parameter meaning beyond what the schema already provides.

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: 'Edit an existing image using a text prompt.' This clearly differentiates the tool from the sibling generate_image, which is about creating new images, and it also states the return behavior ('Returns the file path of the saved result').

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 clear context: use this tool when editing an existing image, and optionally supply reference images for style guidance. It does not explicitly name alternatives or state when not to use it, but the 'existing image' framing makes the intended use apparent relative to generate_image.

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

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/DevShiftTeam/nano-banana-mcp'

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