Skip to main content
Glama
jau123

MeiGen AI Image Generation MCP

by jau123

remove_background

Eliminate the background from a product, person, or logo photo, producing a transparent PNG cutout ready for compositing or catalog use.

Instructions

Create one transparent PNG cutout for compositing, catalog assets or logos. Required: one actual source photo containing the subject. No prompt or product facts needed. This removes the background; it does not create a new scene. Requires a MeiGen API key configured for this local npm server (MEIGEN_API_TOKEN or saved local configuration), and purchased credits only. Local files and external public HTTPS URLs are uploaded automatically. Use the dedicated skill directly; skip unrequested prompt enhancement, preference loading and delegation. Preserve caller-supplied inputs. Infer omitted optional settings from the request and defaults; when only a requested count is known, choose suitable modules unless the caller selected them. Ask only for missing required material or unresolved scope. An explicit user request or authorized upstream workflow establishes its count, quality and budget: do not reconfirm that scope or add paid images. The caller persists a requestId for each logical step; never ask an end user for technical IDs. Use live list_skills prices and account for in-flight charges when planning within a budget; a batch is not atomic and an estimate is not a server-enforced spending cap. Recovery actions take precedence over generic retry advice: check an interrupted submission, preserve exact retryParameters and do not create a new ID or replace failed modules automatically. Retry a temporary upload at most once after the suggested wait. Return structured status, handles, errors and completed URLs to the caller; it owns progress, previews, downloads and final presentation. If interacting directly with the user, explain the problem and a concrete next step in their language. Describe image details only after actual inspection.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
requestIdYesGenerate a new UUID for a new paid request; reuse the SAME requestId and inputs on retry. Use check_skill after interruptions.
productImageYesRequired source containing the subject to cut out; the subject may be a product, person or logo. The output has a transparent background. An accessible absolute local path (Windows drive/UNC, POSIX, ~/, or file://) or public direct HTTPS image URL without credentials, fragments or custom ports. Relative paths are ambiguous and rejected. Files are fully decoded, metadata removed, transparency preserved; GIF uses the first frame. Never invent attachment paths or URLs.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.0.1

TDQS

A4.5/5.0
Behavior4/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure, and it does so extensively: it discloses upload behavior (local files and public HTTPS URLs uploaded automatically), auth requirements (MeiGen API key, MEIGEN_API_TOKEN or saved config), credit requirements (purchased credits only), retry semantics (at most once after suggested wait, preserve retryParameters), batch non-atomicity, and the fact that estimates are not spending caps. It also discloses that files are decoded, metadata removed, and GIF uses the first frame. The only minor gap is that it doesn't explicitly state the output format beyond 'transparent PNG cutout' and 'completed URLs', but the description is unusually transparent.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is information-dense and front-loaded with the core purpose, but it is quite long and includes a large amount of operational policy (budget planning, recovery actions, caller ownership of progress) that, while valuable, could be trimmed or moved to a more structured location. Every sentence does earn its place in terms of content, but the sheer length makes it harder to parse quickly. It's not bloated with fluff, but it's at the edge of what an agent can absorb efficiently.

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 tool with 2 parameters, no output schema, and no annotations, the description is remarkably complete. It covers input requirements, auth, upload behavior, retry semantics, error handling, caller responsibilities, and interaction guidance. An agent has everything it needs to invoke this tool correctly and handle failures appropriately. The only thing not specified is the exact response shape, but the description says it returns 'structured status, handles, errors and completed URLs', which is sufficient given no output schema exists.

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 100%, so the schema already documents both parameters well. The description adds meaningful context beyond the schema: it clarifies that productImage must be an actual source photo containing the subject, that relative paths are rejected, that files are decoded and metadata removed, and that GIF uses the first frame. It also reinforces the requestId reuse semantics. This goes beyond the baseline 3 by adding operational meaning to the parameters.

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 opens with a specific verb and resource: 'Create one transparent PNG cutout' for compositing, catalog assets, or logos. It explicitly distinguishes itself from scene creation ('it does not create a new scene'), which separates it from siblings like generate_ai_background and generate_marketing_poster. The purpose is unmistakable.

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?

The description gives explicit when-to-use guidance: requires one actual source photo, no prompt or product facts needed, and it explicitly says to use the dedicated skill directly while skipping prompt enhancement, preference loading, and delegation. It also names the alternative path (list_skills for prices, check_skill for interruptions) and clarifies when to ask the user. This is comprehensive routing guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.