Skip to main content
Glama

Image Edit

image-edit

Image Edit — Edit an existing image with a text instruction — gpt-image-1 under the hood. Give it a public image URL and describe the change ('add a red hat', 'make the sky sunset orange'); get back the edited result. Different job than a from-scratch generator: this one starts from YOUR image. Input: {image_url: string, prompt: string}. Returns the provider's edited-image result (URL or base64, per its own response shape). (20 MESH/call, a tool · media)

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": {
      "input": "<input>"
    },
    "name": "image-edit"
  }
}

Input Schema

NameRequiredDescriptionDefault
inputYesPayload for image-edit

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, idempotentHint=false and openWorldHint=true, so the safety profile is largely covered. The description adds genuinely useful context the annotations don't: a per-call cost (20 MESH) and the fact that the return shape varies (URL or base64 depending on the provider). It does not say whether the source image is modified or a new asset is produced, which matters for a non-idempotent operation.

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

Conciseness4/5

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

Front-loaded with the core action and model, then input, then return, then cost — a sensible order. There is minor redundancy in re-stating the input shape and repeating 'edit' phrasing, but no sentence is wasted.

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

Completeness4/5

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

With no output schema, the description usefully fills the gap by describing the return (URL or base64, per the provider's response shape) and adds cost and model details. The remaining ambiguity about whether the original image is mutated is a small gap for a non-destructive, non-idempotent tool.

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% and both nested fields carry their own descriptions and examples, so the description's restatement of {image_url, prompt} and its sample prompts add essentially nothing new. Baseline 3 is appropriate when the schema already does the semantic work.

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?

States a specific verb and resource ('Edit an existing image') plus the underlying model (gpt-image-1), and explicitly contrasts it with a from-scratch generator: 'this one starts from YOUR image.' An agent can tell this apart from the grok-image style generators without opening a schema.

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?

Gives clear when-to-use context ('starts from YOUR image', give it a public URL and describe the change) and implicitly routes image-generation-from-scratch work elsewhere. It stops short of naming a specific sibling tool as the alternative, so the routing is clear but not fully explicit.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.