Skip to main content
Glama

Remove or replace background

luw_background

Removes a product or object from its background to create a transparent PNG, or places it in a new AI-generated scene when a prompt is provided for marketing shots.

Instructions

Luw.ai Change Background: cut out a product/object from its background (transparent PNG) — or, with a prompt, place it in a new generated scene for marketing shots ("on a marble kitchen counter, morning light"). Omit prompt to just remove the background. Costs 1 credit.

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>"
    },
    "name": "luw_background"
  }
}

Input Schema

NameRequiredDescriptionDefault
imageYesProduct or object photo (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
promptNoNew background to generate. Leave empty to remove the background.
enhance_promptNoLet Luw.ai's prompt enhancer expand a short prompt.

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: -"Luw.ai 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. Changed2 schema fields changedv0.3.18
    • removedInput schema / properties / format
      Removed value: -{
      -  "description": "Output image format.",
      -  "enum": [
      -    "jpg",
      -    "png",
      -    "webp"
      -  ],
      -  "type": "string"
      -}
    • changedInput schema / properties / image / description
      Previous value: -"Product or object photo (https:// URL, local file path, or data: URI)."New value: +"Product or object photo (public https:// link or data: URI; the local npx server also accepts a file path)."
  3. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare non-read-only, open-world, non-idempotent behavior, so the description's added value is the cost disclosure ('Costs 1 credit') and the output form (transparent PNG cutout), both of which the agent cannot infer from annotations. It does not mention failure modes or what happens to the source image.

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?

Two tight sentences with the core action and mode switch front-loaded, followed by the cost note. No filler and the illustrative prompt example earns its space.

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?

For a 4-parameter tool with full schema coverage and no output schema, the description covers both modes, the output format, and the credit cost. Engine choice and input format are delegated to the schema, which is reasonable.

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 the schema already states 'Leave empty to remove the background', so the description's prompt guidance largely repeats structured data. The concrete example scene ('on a marble kitchen counter, morning light') usefully illustrates prompt style, but image and engine 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.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

Names a concrete operation ('cut out a product/object from its background') and its two output modes, transparent PNG cutout vs. generated scene. It is specific about the resource and result but never states which sibling (e.g. luw_edit_image, luw_remove_furniture) to prefer, so sibling differentiation is left implicit.

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?

Explicitly tells the agent how to pick each mode: supply a prompt to place the object in a new scene, omit the prompt to just remove the background. What is missing is guidance against alternatives among the many sibling image tools when the goal is ambiguous.

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