Skip to main content
Glama

Remove a background

remove_background

Use to cut out the subject of an image onto a transparent background (product shots, portraits, logos). 2 credits. subject: general, portrait, product or hair (fine hair and fur). Returns a PNG in the library.

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

Input Schema

NameRequiredDescriptionDefault
imageYesAn image url (upload, library or link) or a library asset id.
subjectNogeneral

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Beyond the annotations it discloses the 2-credit cost, the output format and destination ('Returns a PNG in the library'), which the annotations do not carry. It does not address that non-idempotent repeats would create additional library assets and consume more credits, a notable omission given idempotentHint=false.

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?

Three short sentences, front-loaded with the purpose before cost, options, and return value. No filler or redundant restatement of the title.

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

Completeness5/5

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

For a two-parameter tool with no output schema, the description covers purpose, cost, option meanings, and the shape/location of the result. An agent has everything needed to call it and anticipate the outcome.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With only 50% schema coverage, the description fills the key gap by expanding the subject enum, notably clarifying that 'hair' means fine hair and fur. The 'image' parameter is left to the schema, which already documents URL vs. library asset id adequately.

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 gives a precise verb and resource: 'cut out the subject of an image onto a transparent background,' then anchors it with concrete use cases (product shots, portraits, logos). No sibling tool performs background removal, so an agent can select it unambiguously.

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 states when to use it via parenthetical scenarios ('product shots, portraits, logos'), giving clear context. It does not name exclusions or alternatives (e.g., why not upscale_image first), 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.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.