Skip to main content
Glama

Background Removal

td_background_removal

Remove the background from an image and replace it with solid white to isolate subjects for product shots, pattern motifs, or design layering. Saves results to disk.

Instructions

Background Removal: remove the background and replace it with solid white. Precision or Ultra model (Unlimited on Unlimited plans). Best for: isolating a subject or motif from its background: extracting photographed motifs to build a new pattern, clean product shots, or prepping a design for layering. Result files are saved to disk and their paths returned.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dpiNoOutput resolution in ppi (72-500). Omit to keep the image's own resolution.
waitNoWait for the job and save the outputs (default true). false returns the task_id right after submit.
imageYesSource image: a local file path or an http(s) URL. PNG, JPEG or WebP, up to 80 MB and 5000 px per side.
modelNoModel: precision (Precision, Recommended): Our most precise AI model for background removal, with the cleanest edges. standard (Ultra): Our alternative AI model for background removal; compare results with Precision. unlimited (Unlimited): Our first AI model for background removal; included in Unlimited plans (only offered on an Unlimited plan). Required: pass the mode the user named. If the user did not name one, omit it and the tool returns the modes to show them; never choose for the user.
output_dirNoFolder to save results in. Default: the folder of the input image (or the current directory for URL inputs). Files are never overwritten.
estimate_onlyNoOnly return the credit estimate; nothing is uploaded or charged.
review_settingsNoOmit it and the tool first asks whether to use the recommended settings or adjust them (unless the call already sets some). true: ask each setting one by one. false: run with the given or recommended settings without asking; pass it only after the user chose that.
timeout_secondsNoHow long to wait for the job before returning its task_id (default 240).
unlimited_bundleNoRequest the Unlimited bundle for this run (only has effect on Unlimited plans; the server decides).
maintain_image_sizeNoMaintain image size (Precision only): keep the input resolution; output size (1K/2K/4K) follows the input; the cost does not change. Default false.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.2

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, openWorldHint=true, and idempotentHint=false, so the safety profile is covered. The description adds genuinely useful context beyond that: results are written to disk and their paths returned, and the Unlimited model is plan-gated. It does not mention upload behavior or credit cost (both only surfaced via schema params).

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?

Purpose is front-loaded in the first clause, followed by model availability, use cases, and output behavior. It is compact for a ten-parameter tool, though the colon-chained sentences are dense and the model/plan note sits awkwardly between purpose and use cases.

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?

With no output schema, the description correctly states what comes back (file paths on disk) and covers model plan constraints. It omits the upload/credit-charging mechanics, but those are represented by dedicated schema parameters (estimate_only, unlimited_bundle), so an agent has enough to call the tool correctly.

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 all ten parameters are already documented in the schema, which sets the baseline at 3. The description restates the model choice and plan gating but adds no syntax or format detail beyond what the schema provides.

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 ('remove the background and replace it with solid white'), which is more precise than the bare name. The 'Best for' clause distinguishes it from removal siblings like td_watermark_removal and td_fabric_texture_removal by use case, though it never names an alternative tool explicitly.

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

Usage Guidelines3/5

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

The 'Best for' list gives concrete scenarios (isolating motifs, product shots, prepping for layering), which implies when to reach for this tool. However, there is no when-not guidance and no pointer to the sibling removal tools an agent should consider instead, so routing 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.