Skip to main content
Glama

edit_image

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)
modelNoThe edit model, as the app's Edits setting offers (same price, 5 credits): p-image (default, the app's editor), gpt-image-2.5 or flux2-klein. Only when the user names onep-image
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 changed
    • addedInput schema / properties / model
      Added value: +{
      +  "default": "p-image",
      +  "description": "The edit model, as the app's Edits setting offers (same price, 5 credits): p-image (default, the app's editor), gpt-image-2.5 or flux2-klein. Only when the user names one",
      +  "enum": [
      +    "p-image",
      +    "gpt-image-2.5",
      +    "flux2-klein"
      +  ],
      +  "type": "string"
      +}
  2. Changed1 schema field changed
    • 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"
  3. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Goes well beyond the annotations by disclosing that the edit is appended as a new frame while the original is retained, that every call costs 5 credits and is refunded on failure, and that slow runs return a job rather than an image. That is exactly the kind of cost, side-effect and async context annotations cannot express. The remaining gap is minor: it does not say what a failed or partial edit leaves behind in the asset.

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, then cost and return value, with no filler sentences. It is dense to the point of being packed with parentheticals and semicolon-chained clauses, which costs a little readability, but virtually every clause carries real decision-relevant information.

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 paid, mutating, potentially asynchronous generation tool with no output schema, the description supplies all three missing pieces: the non-destructive frame-append semantics, the credit cost and refund policy, and the shape of the return value ("the new frame's id and image key") plus how to consume it. Nothing an agent needs in order to call it and handle the result is absent.

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 the schema already documents all seven parameters including the model enum, the images reference list and the remove_bg default, making the baseline 3. The description's only parameter-adjacent contribution is framing the prompt as "a written instruction" and noting that the returned image key feeds referenceFile on later calls; it adds no new syntax or constraints for model, images, frameId or remove_bg.

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?

Names a specific verb and resource ("Change an existing image asset with a written instruction") and immediately grounds it with concrete examples ("recolour it, add a hat, fix a detail"). It also 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?

Gives explicit when-to-use-elsewhere rules: "For a new picture use generate_image; for a pixel version at another size use resize_sprite." It also names the follow-up path ("a slow run returns a job for check_generation"), covering both the alternative-tool decision and the async continuation.

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