Skip to main content
Glama

Remove or replace background

luw_background

Remove backgrounds from product or object photos to get transparent PNGs, or add a prompt to place it in a new AI-generated scene.

Instructions

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.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
imageYesProduct or object photo (https:// URL, local file path, or data: URI).
engineNoLuw.ai model: aria (default) or symphony (Symphony-3).
formatNoOutput image format.
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. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare non-readonly, non-destructive, open-world, non-idempotent behavior, so the safety profile is covered. The description adds genuinely useful context beyond that: the output is a transparent PNG and each call costs 1 credit, which an agent cannot get from the structured fields.

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, front-loading the core operation and then the prompt variant, with the cost note earning its place. 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?

For a 5-parameter image tool with no output schema, the description covers both operating modes, the output artifact, and the cost. It omits default behavior details (e.g., default engine/format) but those live in the schema, so the coverage is adequate.

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 description coverage is 100%, so the baseline is 3. The description goes slightly beyond the schema by reinforcing the prompt/no-prompt branch semantics and giving a concrete example prompt ('on a marble kitchen counter, morning light'), which helps the agent craft the parameter correctly.

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?

States a specific verb and resource: cutting an object out of its background to a transparent PNG, or replacing the background with a generated scene. This is clearly distinguishable from render/design siblings in substance, but no sibling is named, so the differentiation is implicit rather than explicit.

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 clear conditional guidance: with a prompt it generates a new scene, omit the prompt to just remove the background. That covers the two usage modes well, but there are no exclusions or named alternatives (e.g., luw_edit_image) for cases where a different tool is a better fit.

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