Skip to main content
Glama

edit_image

Edit one or more images by providing instructions; uses gpt-image-2 to apply changes to local files or URLs.

Instructions

Edit one or more input images with gpt-image-2.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sizeNoOutput size, for example 1536x1024.1024x1024
modelNoModel name; only gpt-image-2 is supported.
promptYesInstructions for the image edit.
api_keyNoPer-call API key; OPENAI_API_KEY is preferred.
qualityNoauto
base_urlNoOpenAI-compatible base URL ending in /v1.
output_pathNoOptional local path to save the edited image. Relative paths resolve from the MCP working directory. Existing files are not overwritten.
input_imagesYesInput images as absolute local paths or HTTP(S) URLs.
output_formatNopng
Behavior2/5

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

With no annotations provided, the description carries the full burden of disclosing side effects and behaviors. It merely says 'Edit' without mentioning that it modifies images, whether originals are preserved, any API key requirements, or the fact that output_path will not overwrite existing files (as noted in the schema). This lack of transparency is a significant gap for a mutation tool.

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 a single, front-loaded sentence with zero wasted words. It efficiently conveys the core purpose without redundancy.

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

Completeness2/5

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

Given the tool's complexity (9 parameters, mutation operation) and the absence of an output schema, the description is far too brief. It doesn't explain expected return values, prerequisites like api_key or base_url, or how the tool integrates with the sibling generate_image. The description is minimally sufficient only for basic understanding.

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 78%, which is close to the high threshold, so the schema already documents most parameters. The description itself adds no parameter-level detail, falling to the baseline score of 3.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the action (edit) and the resource (one or more input images) with the specific model (gpt-image-2). It implicitly distinguishes from the sibling generate_image by focusing on editing existing images rather than creating new ones, though it doesn't explicitly name the alternative.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description gives no guidance on when to use this tool versus generate_image or any other alternatives. There are no stated prerequisites, exclusions, or contextual cues beyond the core action.

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/chanshawoh/imageforge-mcp'

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