Skip to main content
Glama

Remove a photo's background

remove_background
Destructive

Cuts the person out of one of the user's photos, paid from their credits: on a clear (transparent) backdrop unless backdrop names a colour, #rrggbb (the app offers #ffffff, #e9e7e3, #3a3a3c, #000000, #1f2f4d, #bcd7ee, #f2e8d5, #b9c8b0). On a photo that is already a cutout it lays it on another backdrop. Pass the price the user agreed to as max_credits: the photo's prices from get_shoot or list_photos name it. If a call to this tool got no answer, it may already have started: check list_photos before calling it again.

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

Input Schema

NameRequiredDescriptionDefault
againNotrue only when the user, having seen what this same call made, asks for another (a second re-roll of one photo, another take of one shoot). Without it, the same call repeated within 10 minutes answers with what it made and charges nothing: a request already answered is not a new one.
backdropNoclear
photo_idYes
max_creditsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / again
      Added value: +{
      +  "description": "true only when the user, having seen what this same call made, asks for another (a second re-roll of one photo, another take of one shoot). Without it, the same call repeated within 10 minutes answers with what it made and charges nothing: a request already answered is not a new one.",
      +  "type": "boolean"
      +}
  2. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations only say destructive/non-idempotent/write; the description adds the things an agent actually needs: it spends credits, the price must come from a prior read, repeats within 10 minutes return the cached result and cost nothing unless `again` is set, and an unanswered call may already be running. That retry-and-billing disclosure is exactly the non-obvious behavior the annotations cannot carry, and nothing here contradicts them.

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?

Front-loaded with purpose, then backdrop behavior, then billing, then the retry hazard — a sensible order with no filler. The sentences are dense and parenthetical, but every clause carries operational value.

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?

For a credit-spending, destructive tool with no output schema, the definition covers cost, input sourcing, idempotency window and retry safety. The one real gap is what the call returns (a photo identifier or URL) that the agent would need to chain into list_photos or a later edit.

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?

Schema coverage is only 25% (only `again` is documented in the schema), yet the description supplies semantics for `backdrop` (clear vs #rrggbb, plus the app's offered palette beyond the regex) and `max_credits` (a user-agreed price sourced from get_shoot or list_photos). `photo_id` is left to the schema but is self-evident; `again` is already fully explained structurally.

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 and resource ('Cuts the person out of one of the user's photos') and the resulting artifact (transparent backdrop unless a colour is named). The second sentence extends the scope to input photos that are already cutouts, so an agent can distinguish this from a pure segmentation tool.

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?

Gives clear operative context: which photo to target, where to obtain the price to pass as max_credits (get_shoot or list_photos), and how to proceed after a silent failure (check list_photos before retrying). It does not explicitly route away from the closest sibling, replace_background, though the 'already a cutout' clause implicitly draws that line.

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