Skip to main content
Glama

Edit image with a prompt (Magic Prompt AI)

luw_edit_image

Edit any image with a plain-language instruction, such as changing colors or adding objects, and apply reference images for products, materials, or mood boards.

Instructions

Luw.ai Magic Prompt AI: edit any image with a plain-language instruction: "make the sofa green velvet", "add a pendant lamp over the table", "turn it into a night scene". Pass products, materials or a mood board as reference_images to place or apply them. For edits restricted to an exact area, use luw_magic_wand. Costs 1 credit per variation (2 at 4k).

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": "<image>",
      "prompt": "<prompt>"
    },
    "name": "luw_edit_image"
  }
}

Input Schema

NameRequiredDescriptionDefault
imageYesImage to edit (public https:// link or data: URI; the local npx server also accepts a file path).
engineNoLuw.ai model: symphony (Symphony-3, the default: the higher quality) or aria (quicker, for everyday work). If the user picked a model earlier in this conversation, use that one.symphony
formatNoOutput image format.
promptYesThe edit to make.
resolutionNoOutput resolution: 2k (default; free accounts get about 1k) or 4k (2 credits).
variationsNoNumber of alternative designs (1-4, default 1); each is billed as a generation.
enhance_promptNoLet Luw.ai's prompt enhancer expand a short prompt.
reference_imagesNoUp to 6 reference images (furniture, materials, products, mood boards) to draw from.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.3.20
    • addedInput schema / properties / engine / default
      Added value: +"symphony"
    • changedInput schema / properties / engine / description
      Previous value: -"Model: aria (default) or symphony (Symphony-3)."New value: +"Luw.ai model: symphony (Symphony-3, the default: the higher quality) or aria (quicker, for everyday work). If the user picked a model earlier in this conversation, use that one."
  2. Changed6 schema fields changedv0.3.18
    • changedInput schema / properties / engine / description
      Previous value: -"Model: aria (default), symphony (Symphony-3) or nano-banana-2."New value: +"Model: aria (default) or symphony (Symphony-3)."
    • changedInput schema / properties / engine / enum
      Previous value: -[
      -  "aria",
      -  "symphony",
      -  "nano-banana-2"
      -]New value: +[
      +  "aria",
      +  "symphony"
      +]
    • changedInput schema / properties / image / description
      Previous value: -"Image to edit (https:// URL, local file path, or data: URI)."New value: +"Image to edit (public https:// link or data: URI; the local npx server also accepts a file path)."
    • changedInput schema / properties / reference_images / items / description
      Previous value: -"Reference image (https:// URL, local file path, or data: URI)."New value: +"Reference image (public https:// link or data: URI; the local npx server also accepts a file path)."
    • changedInput schema / properties / resolution / description
      Previous value: -"Output resolution (default 2k)."New value: +"Output resolution: 2k (default; free accounts get about 1k) or 4k (2 credits)."
    • removedInput schema / properties / seed
      Removed value: -{
      -  "description": "Fix for reproducible results.",
      -  "maximum": 9007199254740991,
      -  "minimum": 0,
      -  "type": "integer"
      -}
  3. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

Goes beyond the annotations by disclosing cost mechanics — 1 credit per variation, 2 at 4k — which is the most decision-relevant behavior for a paid generation call and complements idempotentHint=false and openWorldHint=true. It does not say whether the source image is modified in place or a new asset is created, nor whether authentication/setup is required, leaving a modest gap.

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 capability and the alternative routing before the cost note, and every sentence carries information. The three inline examples are slightly dense but they earn their space by demonstrating phrasing.

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 paid generation tool with no output schema, the description covers inputs, cost and the key alternative, but says nothing about what is returned or whether a follow-up poll via luw_get_result is needed. An agent still has to guess the result-handling path.

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 already 100%, so most parameter meaning is supplied structurally. The description adds genuine value for the vague "The edit to make" prompt parameter via three example instructions, and frames reference_images as a way to "place or apply" items, but engine, format, resolution and variations semantics are left entirely to the schema.

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 any image with a plain-language instruction") and backs it with three concrete prompt examples that show the level of edit intended. It also explicitly distinguishes itself from luw_magic_wand for area-restricted edits, so an agent can route without opening the sibling 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 an explicit use condition (free-form instruction edits), a named alternative plus the exact condition that selects it ("For edits restricted to an exact area, use luw_magic_wand"), and a usage hint for reference_images (place or apply products/materials/mood boards). Nothing about when to pick this over the named alternative is left to inference.

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