Skip to main content
Glama

remove_background_url

Remove the background from a public HTTP(S) image URL and save the transparent cutout to a local file path for reuse.

Instructions

Remove the background from a public HTTPS/HTTP image URL via remove.ac (/v1.0/removebg) and save the cutout locally.

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": {
      "imageUrl": "<imageUrl>",
      "outputPath": "<outputPath>"
    },
    "name": "remove_background_url"
  }
}

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.
imageUrlYesPublicly reachable http(s) URL of the source image.
addShadowNoRender a realistic drop or contact shadow under the cutout.
overwriteNoAllow overwriting an existing outputPath. Defaults to false.
bgImageUrlNoOptional public http(s) background image URL to composite behind the cutout.
outputPathYesLocal file path where the cutout output will be written.
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.7/5.0
Behavior3/5

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

With no annotations, the description carries the full disclosure burden. It does well to reveal the external network call to remove.ac and the local file write side effect, but it omits auth/credit requirements, what happens on unreachable URLs, and the overwrite behavior (only inferable from 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?

A single front-loaded sentence with zero waste that names the action, the input source, the service, and the output destination. Nothing extraneous.

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 tool with no output schema and no annotations, the description covers the core mechanics but leaves significant gaps: no mention of credits/cost, credential needs, file-write errors, or the duplicate alias parameters in the schema. Adequate but not sufficient on its own.

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 two referenced parameters (imageUrl, outputPath) are already fully documented in the schema. The description adds no extra meaning about the remaining 12 optional parameters such as bgImageUrl aliasing or shadow presets.

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 (remove background), resource (public HTTPS/HTTP image URL), upstream endpoint (/v1.0/removebg), and outcome (save cutout locally). The emphasis on 'URL' implicitly separates it from remove_background_file, which works on local files.

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

Usage Guidelines3/5

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

Usage is implied by the phrase 'public HTTPS/HTTP image URL', which signals this is the tool for remote sources, but there is no explicit guidance about when to prefer it over remove_background_file or when not to use it. No mention of prerequisites such as API credentials or credit consumption despite a get_account_balance sibling existing.

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