Skip to main content
Glama

rembg-i

Remove background from a single image file using a choice of specialized models optimized for portraits, anime, clothing, or general subjects.

Instructions

Remove background from a single image file

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
input_pathYesPath to the input image file
output_pathYesPath for the output image file
modelNoModel to use for background removal. Each model is optimized for different use cases.u2net
alpha_mattingNoApply alpha matting for better edge quality
only_maskNoReturn only the mask instead of the cutout
Behavior2/5

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

With no annotations, the description should disclose behavioral traits like file creation, side effects, or performance. It only states the operation without mentioning that it writes to output_path or any other behavior.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single concise sentence, but it is slightly under-informative. It could benefit from additional context without being verbose.

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

Completeness2/5

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

Given the absence of an output schema and annotations, the description is incomplete. It does not explain the output format, any return values, or how the tool interacts with files beyond the operation.

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?

The input schema coverage is 100% with detailed descriptions, especially for the model parameter. The description does not add extra meaning, but the baseline of 3 applies as the schema already provides sufficient semantic context.

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?

The description clearly states the action (remove background) and the resource (single image file). It distinguishes from the sibling `rembg-p` only by name, not explicitly, but the purpose is specific.

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

Usage Guidelines2/5

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

No guidance on when to use this tool versus the sibling `rembg-p` or any other alternatives. No context about prerequisites or ideal use cases.

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/holocode-ai/rembg-mcp'

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