Skip to main content
Glama
apparelhub-mcp

apparelhub-mcp

Official

Remove a design background

process_transparency
Destructive

Removes a solid or tinted green background from a generated image, keys it to true RGBA transparency with a tight crop, and uploads a new image for product mockups.

Instructions

Key a solid background out of a generated image to true RGBA transparency (flood-fill + enclosed-region sweep + tight crop) and upload the result. Runs server-side (Python + Pillow). If the generator produced a tinted/muted green instead of pure #00FF00, it auto-recovers by re-keying in green-dominance mode (safe for art with no bright-green/lime elements). Returns a NEW image_uuid plus keying_mode.

[#3cd7e7]

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_uuid": "<image_uuid>"
    },
    "name": "process_transparency"
  }
}

Input Schema

NameRequiredDescriptionDefault
forceNoBypass the pure-green safety check and box-key anyway. Use only when you have visually confirmed the palette has no colors near the green background.
image_urlNoThe image URL, if known (else resolved from the uuid).
workspaceNo
image_uuidYes
background_modeNoHow to detect the background. auto (default): box-key a pure-green screen, else auto-recover in dominance mode for a tinted/muted green. box: strict pure-#00FF00 keying (best for colorful designs with warm/lime elements). dominance: green-dominance keying, robust to tinted green screens (safe when the design has no bright-green/lime elements).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.15.2

TDQS

A4.1/5.0
Behavior4/5

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

Annotations only flag destructiveHint=true and openWorldHint=true; the description goes well beyond them by disclosing server-side execution, the automatic mode fallback and its safety precondition, and the exact return payload ('a NEW image_uuid plus keying_mode'), which reassures the agent the source is not overwritten. It does not cover permissions, size limits, or what happens on keying failure.

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?

The description is front-loaded with purpose, then behavior, then return value, with no filler sentences. However, the trailing '[#3cd7e7]' fragment is stray noise that consumes attention without meaning, and the algorithm parenthetical is dense enough to slow parsing.

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 correctly compensates by naming the returned fields (image_uuid, keying_mode) and explaining the risky branch. A mutation-and-upload tool would ideally also state whether the original asset persists and what an unsuccessful key returns, but for an agent to call it correctly this is close to sufficient.

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?

At 60% schema coverage the schema already explains force, image_url, and background_mode in detail, and the description largely restates the auto/dominance behavior rather than adding new semantics. workspace and its scoping role are never addressed by either. This is baseline-plus territory, not additive.

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 ('key a solid background out of a generated image to true RGBA transparency ... and upload the result') and even names the technique chain (flood-fill, enclosed-region sweep, tight crop). This is clearly distinct from the neighboring delete/archive/upload design tools, and it establishes that the output is a new image rather than an in-place edit.

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 real selection logic: use normal keying for pure #00FF00 screens, and the auto-recovery dominance path only when 'art with no bright-green/lime elements.' It also hints at the failure case (tinted/muted green) that triggers the alternative path. No explicit statement of when NOT to call it or of non-decoration use cases, 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.

Deploy Server

Other Tools