Skip to main content
Glama

edit_image

Edit or compose 1-4 local reference images from a text prompt for product retouching, background replacement, style transfer, and UI mockups.

Instructions

Edit or compose 1-4 local reference images using a text prompt via /v1/images/edits (multipart upload). Great for product photography retouching, background replacement, style transfer, and UI mockups.

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>",
      "image_paths": "<image_paths>"
    },
    "name": "edit_image"
  }
}

Input Schema

NameRequiredDescriptionDefault
sizeNoOptional output size such as 1024x1024, 1024x1536, 1536x1024, 1024x1792, 1792x1024, auto.
modelNoModel ID (default: gpt-image-2.5). For multi-image reference consistency, gemini-3.1-flash-image or gemini-3-pro-image is recommended.
promptYesEditing instruction describing how to transform or combine the input image(s).
qualityNoOptional quality level: auto, low, medium, or high.
image_pathsYesArray of 1 to 4 local file paths (PNG/JPG/WebP) to edit or reference.
output_pathNoOptional local file path to save the edited image.
response_formatNoPreferred upstream response format (default: b64_json).
include_inline_imageNoWhether to return an inline MCP image content block when binary data is available (default: true).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It usefully discloses the underlying endpoint and multipart-upload mechanism, but says nothing about whether input files are left untouched, where the result goes (inline block vs output_path), or cost/latency for multi-image runs.

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 sentences, both front-loaded: the core operation and mechanism come first, followed by a compact applicability list. No filler or repetition.

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 an 8-parameter tool with no annotations and no output schema, the description is adequate but thin on outcome: it does not explain how the result is delivered (inline image block, saved file, or URL), which matters because response_format, output_path, and include_inline_image all govern that.

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 defaults, enums, size options, and the model recommendation are all already documented in the schema. The description only restates the 1-4 image limit and adds no format or interaction detail beyond the structured fields — the baseline 3 applies.

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?

States a specific verb ('Edit or compose'), the resource ('1-4 local reference images'), the mechanism ('text prompt via /v1/images/edits (multipart upload)'), and the constraint on input count. This implicitly separates it from generate_image, since it requires existing local images, but it never names that sibling explicitly.

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 use-case list (retouching, background replacement, style transfer, UI mockups) gives a sense of when the tool applies, but there is no explicit when-not guidance and no statement like 'use generate_image when you have no source images.' The agent must infer the boundary from the required image_paths parameter.

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

Deploy Server

Other Tools