Skip to main content
Glama

Edit image

edit_image

Change an existing image following an instruction (restyle, add or remove objects, swap background). Consumes the user's FreeLLM credits; confirm with the user before calling. Failed jobs are free. Returns a task_id immediately; call get_task with it every 15-30 seconds until status is success or failed.

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": {
      "image_url": "<image_url>",
      "prompt": "<prompt>"
    },
    "name": "edit_image"
  }
}

Input Schema

NameRequiredDescriptionDefault
promptYesThe edit to make
image_urlYesPublic URL of the image to edit

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior3/5

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

Annotations already flag a non-read-only, non-idempotent, open-world call, and the description adds real value on top: credit cost, required user confirmation, that failed jobs are free, and an immediate task_id with a 15-30s polling cadence. It stops short of stating expected duration, cost magnitude, or what happens on repeated identical calls (non-idempotent), which keeps it from the top band.

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?

Three tight sentences, each front-loaded with the operative fact: what it does, the cost/confirmation constraint, then the async contract. No filler.

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 correctly covers the return contract (task_id immediately) and the polling loop needed to resolve it, which is the main complexity of this async tool. Missing only edge-case behavior such as what a failed task returns or whether polling can be abandoned.

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 coverage is 100%, so the baseline is 3, and the description earns a bump by framing prompt as an instruction (restyle/objects/background) and image_url as the pre-existing image source rather than a generated one.

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?

Specific verb plus resource ("Change an existing image") with three concrete example edits (restyle, add/remove objects, swap background) that make the 'edit vs. create' distinction against create_image unmistakable.

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 a strong gating rule (confirm with the user before calling because credits are consumed) and the follow-up procedure via get_task. It never states the inverse condition (use create_image when no source image exists), so it falls just short of full when/when-not guidance.

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.

Resources