Skip to main content
Glama

edit_image

Edit an existing image using AI text prompts, optional masks, and configurable size/format settings. Save the output to a filepath or receive a URL.

Instructions

Edit image(s) with the OpenAI Images Edit API. SSE/HTTP transports auto-save files and return image URLs; stdio requires filepath.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nNoNumber of images to generate.
sizeNoImage size. Supported values: auto, 256x256, 512x512, 1024x1024, 1536x1024, 1024x1536, 1792x1024, 1024x1792. Some models only support a subset.
promptYesImage generation prompt.
qualityNoImage generation quality.
filepathYesAbsolute path where the generated image should be saved.
mask_pathNoOptional absolute path to the edit mask image.
overwriteNoAllow replacing existing output files.
backgroundNoGenerated image background behavior.
image_pathYesAbsolute path to the source image to edit.
moderationNoImage moderation strictness.
output_formatNoOutput image format. jpg is normalized to jpeg for the API request.
output_compressionNoCompression level for jpeg or webp outputs, from 0 to 100.
Behavior3/5

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

With no annotations present, the description carries the burden of behavioral disclosure. It usefully discloses transport-dependent behavior: SSE/HTTP auto-save files and return URLs, while stdio requires a filepath. However, it omits external API dependencies, authentication, network failure behavior, and whether output files may be overwritten, which is important for an editing 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 compact, front-loaded with the primary purpose, and contains no filler. The second sentence efficiently packs transport-specific behavior into one clause, making it easy to scan.

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?

For a tool with 12 parameters, no annotations, and no output schema, this description is incomplete. It covers the core purpose and one transport distinction, but it does not address return-value behavior for stdio, authentication, or error handling. Still, it provides essential context and is not misleading.

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

Parameters4/5

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

Schema description coverage is 100%, so the baseline is 3. The description adds meaning by clarifying that filepath is required for stdio and that SSE/HTTP transports auto-save files, which helps the agent understand the filepath parameter's role beyond its schema entry. Other parameters remain schema-documented, which is sufficient.

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 verb and resource: 'Edit image(s)' via the 'OpenAI Images Edit API.' The name and wording imply a distinction from the sibling generate_image, but it never explicitly names that alternative, so it falls just short of a 5.

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

Usage Guidelines3/5

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

The description implies use when editing existing images rather than generating new ones, and the sibling name generate_image hints at the alternative. However, there is no explicit when-to-use vs. when-not-to-use guidance, and it does not mention generate_image or other alternatives.

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/seepine/image-gen-mcp'

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