Skip to main content
Glama

Cutout Lab

Remove image background

remove_background
Read-only

Remove the background from an image and return the cutout. Provide exactly one of image_url or image_base64. Returns a transparent PNG by default, or the subject on a solid colour when bg_color is set.

Input Schema

NameRequiredDescriptionDefault
cropNoCrop the output to the subject.
sizeNoOutput resolution: preview ≈ 0.25 MP, medium 1.5 MP, hd 4 MP. Use the HTTP API for larger outputs.medium
formatNopng
bg_colorNoOptional background colour, e.g. ffffff or white.
image_urlNoPublic http(s) URL of the source image (max 12 MB).
image_base64NoBase64-encoded source image (max 12 MB decoded).

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?

The annotations already declare readOnlyHint and openWorldHint, so the safety profile is covered. The description adds useful behavioral context beyond that: the default transparent PNG output and the solid-colour subject output when bg_color is set, plus the exactly-one-input constraint.

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?

Three sentences, front-loaded with the core action, followed by the input constraint and output behavior. There is no redundant or filler wording.

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 appropriately explains the return format and the bg_color variant. It leaves minor details such as error behavior and how format interacts with transparency to the schema, which is acceptable for this tool's complexity.

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 high at 83%, so the baseline is 3. The description adds meaningful semantics not enforced by the schema: exactly one of image_url or image_base64 must be provided even though no parameters are required, and bg_color changes the output to a solid background.

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?

The description states a specific verb and resource: remove the background from an image and return the cutout. It is immediately clear what the tool does and what it produces, with no ambiguity against the only sibling, get_quota.

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?

It gives a clear input-sourcing rule: provide exactly one of image_url or image_base64. There are no meaningful alternative tools to compare against, but it does not spell out when-not-to-use cases or failure conditions.

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