Skip to main content
Glama
@cutoutlabs/mcp

@cutoutlabs/mcp

Official

Remove image background

remove_background

Remove the background from a local image file or image URL and save the cut-out result to disk as a transparent or colour-filled file. Returns the saved path.

Instructions

Remove the background from a local image file or an image URL and save the result to disk. Returns the saved file path. Provide exactly one of input_path or image_url. When several objects or a person and a product appear together, the model may keep or drop some of them (for example a hand holding a product); use roi to restrict the subject area. Parts of a subject hidden behind something else cannot be recovered.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "remove_background"
  }
}

Input Schema

NameRequiredDescriptionDefault
roiNoRegion of interest as 'x1 y1 x2 y2' in px or %, e.g. '20% 10% 80% 95%'. Only the subject inside this box is kept.
cropNoCrop the output to the subject.
sizeNopreview ≈ 0.25 MP, medium 1.5 MP, hd 4 MP, full up to 25 MP.full
formatNopng
bg_colorNoBackground colour such as ffffff or white. Omit for transparency.
image_urlNoPublic http(s) URL of the source image.
overwriteNoReplace output_path if it already exists.
input_pathNoPath to a local JPG, PNG or WebP image (max 12 MB).
clean_edgesNoRemove coloured fringes from the old background in hair, fur, and soft edges.
output_pathNoWhere to save the result. Defaults to '<input name>-no-bg.<ext>' next to the input, or the current directory for URLs.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior4/5

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

Annotations only declare openWorldHint=true and destructiveHint=false; the description adds that a file is written to disk and that the path is returned, and candidly discloses model ambiguity (may keep or drop objects such as a hand holding a product) and that occluded subject parts cannot be recovered. Those caveats are genuine value beyond the annotations, though it never mentions failure modes when the URL is unreachable or the file exceeds limits.

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 sentences ordered by importance: what it does, what it returns, how to supply input, then the two reliability caveats. No filler or repetition of schema defaults.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Ten parameters but with near-complete schema descriptions and no output schema, the description supplies the two things the schema cannot: the exactly-one-of input rule and the return value (saved file path). Nothing an agent needs to call it correctly is missing.

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 90%, so the baseline is 3; the description exceeds it by stating the mutual-exclusivity rule between input_path and image_url, which the schema does not encode (required is empty, no oneOf). It also motivates roi in behavioral terms rather than just restating its box format.

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?

States a specific verb+resource ('Remove the background from a local image file or an image URL') plus the side effect ('save the result to disk') and the return value. Unmistakable 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?

Gives a hard input constraint ('Provide exactly one of input_path or image_url') and conditional advice ('use roi to restrict the subject area' for multi-object scenes). It stops short of naming when-not-to-use or an alternative tool, so it falls just below the top band.

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

Deploy Server

Other Tools