Skip to main content
Glama

remove_background

Remove a specified background color from an image, making it transparent. Outputs a PNG with alpha channel. Specify color and tolerance for precision.

Instructions

Remove a background color from an image and make it transparent. Outputs a PNG with alpha channel. The image must already exist in /root/Pictures/pixel-surgeon (use save_image to import first).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
filenameYesFilename of the source image in /root/Pictures/pixel-surgeon
colorNoTarget background color as hex (e.g. "#FFFFFF" for white, "#000000" for black, "#FF0000" for red). Default: white.#FFFFFF
thresholdNoHow far from the target color a pixel can be and still count as background (0 = exact match only, 30 = default, higher = more aggressive)
Behavior3/5

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

With no annotations, the description must carry the full burden. It discloses the output format (PNG with alpha) and the prerequisite file location, but lacks detail on behavior when the target color is not present or the effect of the threshold parameter beyond the schema.

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?

The description is extremely concise with two sentences, front-loading the purpose and output format in the first sentence and the usage prerequisite in the second. No unnecessary words.

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 tool with 3 parameters, no output schema, and no annotations, the description covers the core functionality, output, and a key prerequisite. Minor gaps exist (e.g., handling of missing color, edge cases), but it is largely complete for the task.

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 coverage is 100%, so the baseline is 3. The description adds no parameter-specific details beyond what the schema provides; all parameters are already described in the schema with defaults and ranges.

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 clearly states the tool's purpose: remove a background color and make it transparent, outputting a PNG with alpha channel. It distinctly differentiates from sibling tools like edit_image or fix_image, which do not specialize in background removal.

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 explicitly states that the image must already exist in a specific directory and recommends using save_image first, providing clear contextual guidance. However, it does not mention when not to use this tool or alternatives.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/j-east/pixel-surgeon-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server