Skip to main content
Glama

edit_image

Modify an existing image asset with a written instruction, such as recoloring it or adding a detail. Changes are saved as a new frame while the original stays intact.

Instructions

Change an existing image asset with a written instruction (recolour it, add a hat, fix a detail); the edit is added to that asset as a new frame and the original stays. For a new picture use generate_image; for a pixel version at another size use resize_sprite. 5 credits on every call (each call makes and bills another edit; refunded if it fails); a slow run returns a job for check_generation. Returns the new frame's id and image key, which referenceFile on rotate_sprite, animate_sprite or another edit_image call takes.

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

Input Schema

NameRequiredDescriptionDefault
idYesAsset ID (from list_assets / get_asset or a previous result)
imagesNoOptional extra reference images: image keys from any of your assets (get_asset lists them), or their cdn.voidless.dev URLs. Other links are refused: upload the picture first
promptYesThe change to make, as one instruction, e.g. 'make the cloak dark red' or 'give him a straw hat'. Unmentioned parts are kept
frameIdNoOptional: the frame the new frames hang under in the editor (usually the frame referenceFile came from).
remove_bgNoRemove the background from the result, as the app's editor does. Set false for artwork or a scene that should keep its background
referenceFileNoWork from one image instead of the asset's base: an image key from any of your assets (as get_asset lists it), or its cdn.voidless.dev URL. Empty = the asset's current base image.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.1.1
    • changedInput schema / properties / prompt / description
      Previous value: -"What to change"New value: +"The change to make, as one instruction, e.g. 'make the cloak dark red' or 'give him a straw hat'. Unmentioned parts are kept"
  2. First observedv0.1.0

TDQS

A4.6/5.0
Behavior4/5

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

Beyond the annotations it discloses that the edit lands as a new frame while the original is preserved, that every call costs 5 credits and is refunded on failure, and that a slow run returns a job for check_generation. The only gap is that it doesn't cover failure modes for invalid reference images or upload requirements, which the schema hints at instead. Nothing here contradicts the destructiveHint=false / idempotentHint=false annotations — the billing-per-call note actually reinforces non-idempotency.

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 purpose and alternatives before cost and return details, and no sentence is filler. It is dense and semicolon-chained in places, which costs a little readability, but nothing is wasted.

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

Completeness5/5

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

For a 6-parameter mutation tool with no output schema, the description supplies the return values (frame id and image key), the cost/billing model, the async path, and the non-destructive frame-stacking behavior. An agent has everything needed to invoke it and handle its result.

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; the description earns the extra point by explaining that the returned image key is what feeds referenceFile on rotate_sprite, animate_sprite, or a chained edit_image call, giving cross-tool meaning the schema alone doesn't. It leaves the images/frameId/remove_bg nuance to the schema, which is reasonable.

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?

The description opens with a specific verb and resource ('Change an existing image asset with a written instruction') and enumerates concrete edit types (recolour, add a hat, fix a detail). It explicitly distinguishes itself from generate_image and resize_sprite, so an agent can route correctly without opening any schema.

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

Usage Guidelines5/5

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

It names two alternatives with the exact conditions that select them ('For a new picture use generate_image; for a pixel version at another size use resize_sprite') and explains the async fallback path via check_generation. When-to-use, when-not, and follow-up handling are all covered.

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