Skip to main content
Glama

remove_background_file

Remove the background from a local image file (.png, .jpg, .jpeg, .webp) and save the transparent cutout; large images stream through the remove.ac GPU API without temporary disk use.

Instructions

Remove the background from a local image file (.png, .jpg, .jpeg, .webp) via the stateless remove.ac Cloud GPU API (/v1.0/removebg). Files above 4 MB (up to 25 MB / 50 MP) automatically stream via zero-disk /v1.0/removebg/ticket.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "inputPath": "<inputPath>"
    },
    "name": "remove_background_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
cropNoTrim empty transparent padding around the foreground subject.
sizeNoOutput resolution tier. Defaults to 'full'.
typeNoOptional foreground category hint.
formatNoOutput file format. Defaults to 'png'.
bgColorNoOptional solid background hex color (e.g. 'FFFFFF') instead of transparency.
addShadowNoRender a realistic drop or contact shadow under the cutout.
inputPathYesPath to the local source image file.
overwriteNoAllow overwriting an existing outputPath. Defaults to false.
bgImageUrlNoOptional public http(s) background image URL to composite behind the cutout.
outputPathNoDestination path for the cutout image. Defaults to '<stem>-nobg.<ext>' alongside inputPath.
shadowTypeNoShadow preset when addShadow is enabled.
bgImagePathNoOptional local background image file path (.png, .jpg, .jpeg, .webp, up to 25 MB / 50 MP) to composite behind the cutout.
bg_image_urlNoAlias for bgImageUrl: public http(s) background image URL.
bg_image_pathNoAlias for bgImagePath: local background image file path (.png, .jpg, .jpeg, .webp, up to 25 MB / 50 MP).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.3.3

TDQS

A3.9/5.0
Behavior3/5

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

With no annotations, the description must carry behavioral disclosure. It usefully states that the API is stateless, cloud GPU based, and automatically streams files over 4 MB up to 25 MB / 50 MP, but it omits authentication needs, overwrite/side-effect semantics, error behavior, and return/output details.

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?

Two sentences, front-loaded with the core action and followed by relevant technical constraints. No filler or repetition; every sentence earns its place.

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

Completeness3/5

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

For a 14-parameter, no-annotation, no-output-schema file operation, the description covers purpose, formats, and large-file handling. It leaves gaps around authentication, overwrite/side effects, and what the tool returns, so it is adequate but not fully complete.

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 description coverage is 100%, so the schema already documents all 14 parameters, including defaults and enums. The description adds only supported input formats and size limits; it does not add meaning for crop, size, type, format, background, or shadow parameters 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?

The description states a specific verb and resource ('Remove the background from a local image file'), lists supported formats, and uses 'local image file' to distinguish it from the URL-based sibling. The API endpoint adds specificity without obscuring the purpose.

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 clear context for when this tool applies: local image files in listed formats, with a stated size ceiling and automatic streaming above 4 MB. It does not explicitly name an alternative or state when not to use it, such as for remote URLs, so it stops short of full routing guidance.

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