Skip to main content
Glama

edit_image

Modify specific parts of an image using a text prompt, preserving the rest, with Google Gemini.

Instructions

Edit an existing image based on a text prompt using Google Gemini. Useful for modifying specific parts of an image while preserving others.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
promptYesInstructions for how to edit the image (e.g., 'Change the sky to sunset colors' or 'Add a cat in the foreground')
imagePathYesPath to the image file to edit
outputPathNoOptional custom file path for saving the edited image
aspectRatioNoOptional aspect ratio for the output image. If not provided, Gemini will auto-select. Options: 1:1, 2:3, 3:2, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9, 21:9
Behavior3/5

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

With no annotations, the description must disclose behaviors. It mentions using Gemini and that it preserves other parts, but does not clarify if edits are destructive, file format support, or whether outputPath is needed to avoid overwriting.

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 concise sentences: first defines purpose, second provides a usage hint. No wasted words.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Lacks details on output behavior (e.g., where the edited image is saved, file format), prerequisites (image must exist), and error handling. For a file-modifying tool, this is insufficient without annotations.

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 coverage is 100%, so descriptions already explain parameters. The tool description does not add extra meaning beyond the schema, meeting the baseline for high coverage.

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?

Clearly states the tool edits an existing image using a text prompt with Google Gemini. It specifies the resource (existing image) and the action (edit), distinguishing it from siblings generate_image and iterate_image.

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 a clear use case: modifying specific parts while preserving others. Implicitly distinguishes from generate_image (creation) and iterate_image (likely iteration), but does not explicitly state when to avoid using it.

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/mernorthzide/mrn-gemini-imagen-mcp'

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