Skip to main content
Glama

Remove an image's background, returning the subject on transparency

remove_background

Remove an image's background, returning the subject on transparency. 1 credit per image, flat. Pass a public URL, a URL from create_upload, or (small images only, under about 2.25 MB) a base64 data URI. Charges credits from the connected Upsampler account; a failed job is refunded automatically. Result URLs expire after 3 hours (get_job reissues fresh ones) and jobs are deleted after 7 days.

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>"
    },
    "name": "remove_background"
  }
}

Input Schema

NameRequiredDescriptionDefault
waitNoWait up to about 50 seconds for the result before returning (default true). If the job is still running, call get_job with the returned id.
imageUrlYesURL of the image to process, or the image encoded as a base64 data URI. Must be a publicly accessible URL (http/https), a URL from POST /uploads, or a base64 data URI. Supported formats are png, jpeg, jpg, and webp. A base64 image must be under 2.25 MB, since it travels inside the capped request body; upload anything larger. Keep the file at a URL of your own unchanged until the job completes; a file that changes after submission fails the job with a refund.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Beyond the annotations, the description discloses pricing (1 credit flat), billing source (connected Upsampler account), failure handling (automatic refund), and a full data-retention profile (result URLs expire in 3 hours and can be reissued via get_job, jobs deleted after 7 days). It also warns that a source file mutating mid-job causes a failed job, which is exactly the kind of non-obvious behavior an agent cannot infer from readOnlyHint/openWorldHint.

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

Conciseness4/5

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

Four sentences, front-loaded with the purpose before costs and caveats, with no filler. Minor redundancy: the 2.25 MB base64 threshold and the URL-source list are repeated from the schema rather than cross-referenced.

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?

With no output schema, the description carries the return-value burden and does so adequately: it states the result is the subject on transparency and that result URLs expire after 3 hours and are reissued via get_job. It does not name the response fields or confirm the output image format, which is the only remaining gap for a job-based tool.

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 both parameters are already fully documented in the schema, including the ~2.25 MB base64 limit and the wait default. The description restates the size threshold and input sources but adds no new syntax or format detail, so the baseline of 3 applies.

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 opening sentence names a specific verb and resource (remove an image's background) and states the exact output form (subject on transparency). The follow-up names the accepted input channels and points at the sibling tools involved (create_upload for larger files, get_job for polling), so it is distinguishable from upload/upscale/colorize siblings without opening a schema.

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 spells out concrete input routing: a public URL, a URL from create_upload, or a base64 data URI only for small images. It also gives the fallback path when the job outlives the wait window (call get_job with the returned id). It stops short of stating when to prefer this tool over siblings like upscale_image or colorize_image, so not a 5.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources