Skip to main content
Glama

remove_background

Remove the background from an image, leaving the subject on transparency (or on a solid colour with bg_color). Returns { processedImage }. Cost: 1 credit.

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
imageYesImage as a base64 data URI (data:image/png;base64,…) or an HTTPS image URL
bg_colorNoOptional solid background instead of transparency: hex (#ffffff / ffffff) or a colour name

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / bg_color
      Added value: +{
      +  "description": "Optional solid background instead of transparency: hex (#ffffff / ffffff) or a colour name",
      +  "type": "string"
      +}
  2. First observed

TDQS

B3.3/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 burden, and it does supply two pieces of real behavioral value: the return shape ({ processedImage }) and a cost of 1 credit. It says nothing about input limits, supported formats, failure modes, or whether the source image is modified, which leaves a mutation-shaped tool under-disclosed.

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 tight sentences with the primary action first, then the return value and cost. Every clause earns its place and there is no boilerplate.

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?

Return shape and credit cost are covered, which is good given there is no output schema. However, for a credit-consuming image processor with zero annotation coverage, the definition omits size/format limits and error behavior that the agent would need to call it safely.

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 documented in structured form with examples. The description restates bg_color's transparency-vs-solid-colour trade-off, which is useful framing but adds no syntax or constraint beyond the schema.

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?

States a specific verb and resource ("Remove the background from an image") plus the concrete outcome ("subject on transparency"). It never names an adjacent sibling such as object_remover, so the agent gets no explicit differentiation, but the operation itself is unambiguous.

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 when-to-use or when-not-to guidance, and no alternatives are offered despite plausible overlap with object_remover in the sibling set. The agent must infer entirely on its own when this is the right choice versus other image-editing tools.

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