Skip to main content
Glama

edit_image

Edit existing images with natural-language prompts using OpenAI GPT Image-1, including mask-based inpainting plus size, format, and quality options for refining visuals.

Instructions

Edit existing images using OpenAI GPT Image-1 model

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "prompt": "<prompt>",
      "images": "<images>"
    },
    "name": "edit_image"
  }
}

Input Schema

NameRequiredDescriptionDefault
nNo
maskNo
sizeNo
formatNo
imagesYes
promptYes
qualityNo
backgroundNo
moderationNo
useContextNo
conversationIdNo
maxContextEntriesNo
output_compressionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

C2.4/5.0
Behavior2/5

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

With no annotations, the description carries the full disclosure burden yet says nothing about cost, latency, rate limits, whether the source image is modified or a new one is returned, or what errors occur on invalid input. It only implies a non-read operation via "edit," leaving the mutation profile and return behavior entirely opaque.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single front-loaded sentence with no filler, so it is structurally clean. But the brevity is under-specification rather than efficiency, given the tool's 13-parameter surface.

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

Completeness1/5

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

For a 13-parameter mutation tool with no annotations and no output schema, the description leaves nearly everything an agent needs unexplained: alternatives, input encoding, mask use, context tracking, and return shape. It is far too thin for the tool's complexity.

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

Parameters1/5

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

The schema exposes 13 parameters with reported description coverage of 0%, and the description explains none of them — not the mask/inpainting semantics, not the conversation-context parameters (useContext, conversationId, maxContextEntries), not size/quality/format interactions. This is a substantial gap the description does nothing to close.

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?

"Edit existing images" gives a specific verb and resource, and naming the GPT Image-1 model adds useful identifying context. It does not, however, distinguish this from the sibling generate_image tool, so an agent must still infer which one applies to a given request.

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?

There is no guidance on when to choose this over generate_image, no prerequisites such as base64 encoding of inputs, and no mention of when a mask/inpainting workflow is appropriate. The only hint of usage is the word "existing," which implicitly excludes generation from scratch.

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