Skip to main content
Glama

Remove an image's background

remove_background

Cut the subject out of a photo. The background becomes transparent (PNG or WebP), a solid colour if background is a hex colour like #ffffff, or the original scene blurred if it is blur. Set refine for hair, fur and other fine edges, or graphic for a logo or text on a surface. Returns a download URL valid for one hour.

Input Schema

NameRequiredDescriptionDefault
formatNoDefault png. jpeg needs a background.
refineNoSharpen the cut-out's edges against the photo. Default false.
shadowNoAdd a soft drop shadow under the subject (product photos). Default false.
graphicNoThe picture is a logo or text on a surface: also cuts out the gaps inside and between letters. Not for photos. Default false.
image_urlNoPublic http(s) address of the image. Use this or image_base64.
backgroundNo"transparent" (default), "blur", or a colour such as "#ffffff".
image_base64NoThe image file's bytes, base64-encoded. Use for a local file, e.g. one in the repository.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations, the description carries the behavioral burden and does well: it explains what the background becomes in each case (transparent PNG/WebP, solid hex colour, blurred original scene) and discloses the return contract, a download URL valid for one hour. It omits permissions, cost/rate limits, and what happens if neither image input is supplied.

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?

Four short sentences, each doing distinct work: what it does, what the output is, how to pick the edge modes, and what comes back. The primary purpose is front-loaded before any option detail.

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 7-parameter tool with no annotations and no output schema, the description covers purpose, key modes, and the return value, and the schema fills the remaining parameter detail. The one gap is that it never states the image input requirement (exactly one of `image_url` or `image_base64`), which the agent must read from the schema.

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 coverage is 100%, so baseline is 3, but the description earns above it by explaining the semantics of `background` values as behaviors (transparency, solid fill, scene blur) rather than just restating the pattern, and by characterizing `refine` and `graphic` by use case. `format`, `shadow`, and the two input fields add nothing beyond 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?

"Cut the subject out of a photo" gives a specific verb and resource that no sibling (compress_image, convert_image, upscale_image) shares. An agent can immediately tell this is the background-removal tool rather than a generic image transform.

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?

The description states clear conditions for the mode options – `refine` for hair/fur edges, `graphic` for logos or text on a surface ("not for photos") – which is real selection guidance. It does not name alternative tools or say when not to use this tool (e.g. when a plain conversion suffices), so it stops short of full when/when-not coverage.

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