Skip to main content
Glama

Cut a person out of a video (matte) or an image

remove_background
Destructive

A clip: its matte, white on black mp4 (not transparent; combine with the original). An image: the same picture with a transparent background. Returns the job id. THE CARD: this call already opened the aicut card: do not call show_generation for this job. WAIT: wait_for_generation (this id, media), never timers or background shells. No card? Give the user the url. COST: a clip per second (1 to 30 s, MP4), measured by the server; an image a flat price. SPENDS TOKENS: price with estimate_only: true, state the price in the same message as your ask, wait for a go naming THIS purchase (SPENDING RULES: get_recipe spending-rules). idempotency_key: IDEMPOTENCY (this server's instructions).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "remove_background"
  }
}

Input Schema

NameRequiredDescriptionDefault
modelNoClip only. sam-3 masks what prompt names, clips from 5 s. Only if the user asked; never to save tokens, never carried over.
promptNosam-3 only, required: what to keep, e.g. person.
source_imageNoInstead of source_video: PNG, JPEG or WebP, 256-4096 px a side, up to 5 MB.
source_videoNoA URL from this account's generations or uploads, or a public https URL (imported first); another account's is refused.
estimate_onlyNoPrice only; creates nothing.
idempotency_keyNoRetry key (IDEMPOTENCY).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations declare destructive/openWorld/non-idempotent, and the description adds what those cannot: per-second clip pricing versus flat image pricing, that the server measures cost, that the call spends tokens and requires an explicit go, that the card is opened as a side effect, and that the job is asynchronous. It stops short of saying why this is flagged destructive (i.e. what, if anything, is consumed or lost) and the idempotency story only points at a rule reference rather than explaining the retry contract.

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?

Every clause carries operational content and the scope constraint is stated before the pricing rules, so nothing feels padded. It is, however, a single dense paragraph of all-caps fragments and internal jargon ('THE CARD', 'SPENDING RULES'), and `idempotency_key` is cited twice, which hurts scanability.

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 no-output-schema, asynchronous mutation tool with zero required parameters, the definition covers what an agent most needs to call it correctly: both input modes, the job-id return, the exact wait tool and arguments, and the token-spending gate. Remaining gaps are minor — no failure modes beyond the other-account refusal already in the schema, and no statement of what the destructive hint refers to.

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 already 100%, so the schema carries the parameter meaning and the baseline is 3. The description adds a little beyond it — `model` is clip-only and must never be carried over to save tokens, `estimate_only` creates nothing and must be priced in the same message as the ask — but the other parameters (`source_image`, `source_video`, `prompt`, `idempotency_key`) are left to 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?

The description names the resource and both output modes concretely: a white-on-black matte MP4 for a clip, a transparent-background image for a still. It never uses a clean action verb (the operation is inferred from the name plus the outputs), and the heavy jargon ('THE CARD', 'aicut card') sits ahead of the plain explanation of what is produced, but an agent can still tell what it gets back.

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

Usage Guidelines5/5

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

Explicit when/when-not routing: do not call `show_generation` for this job, use `wait_for_generation` with this id and `media` rather than timers, give the user the `url` if no card, and only pick `sam-3` if the user asked for it. The pricing flow (`estimate_only: true`, state the price in the same message, wait for a go naming this purchase) is spelled out step by step.

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.