Skip to main content
Glama
apparelhub-mcp

apparelhub-mcp

Official

Generate a design image

generate_image
Destructive

Create print-ready design images for custom apparel and merchandise, with automatic background handling for isolated artwork and full-scene or pattern designs.

Instructions

Generate a design image (split primitive of design_apparel). The platform decides the background from the prompt and reports it: isolated artwork (a logo, lettering, a character) comes back with its background already removed, while a full scene, poster or all-over pattern is left exactly as written. Read print_ready, background_state and design_intent on the result, and call process_transparency only when the design needs a transparent background and print_ready.applied is not true. Rate-limit errors are classified (model_rate_limited = one model's provider vs platform_rate_limited = this key's ApparelHub throttle vs request_not_sent = the call never reached ApparelHub), and fallback_trail shows any model substitutions. When the platform has advice on the prompt it is returned as prompt_improvement. It is advice with one exception: when the prompt names or depicts the product ("a hoodie with a wolf on it"), the image model is sent improved_prompt instead of your wording, because naming a product makes image models draw the product. The result then has prompt_improvement.applied true and a prompt_rewritten note; pass prompt_improvement "skip" to keep your wording. If its issues include "brand_brief", the prompt describes a whole brand, collection or storefront rather than one design, and improved_prompt is the single strongest design EXTRACTED from it: either generate that one design, or keep the brief and call again with concepts (4 is a good default) to get a themed set from one generation. With concepts > 1 this still returns ONE image; the other designs from the same generation are saved to the workspace and read with get_design_collection(image_uuid).

[#f7097a]

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": {
      "prompt": "<prompt>"
    },
    "name": "generate_image"
  }
}

Input Schema

NameRequiredDescriptionDefault
sizeNoOutput shape. 1024x1024 = square; 1024x1792 = tall/portrait (phone cases, posters, banners); 1792x1024 = wide/landscape (mugs, laptop sleeves, wide banners). Pick to match the product's print area — full-bleed goods like phone cases want a tall design that fills the whole area, or the mockup pads/crops it. To re-shape an EXISTING design without spending another generation, use fit_aspect instead.
styleNo
promptYes
sourceNoExplicit model name, or omit to auto-pick (Nano Banana; OpenAI for abstract).
auto_keyNoLeave unset for ordinary work. false sends the prompt exactly as written and removes no background: use it for an all-over or full-bleed design, or when you want the raw image. It also turns off the green-background hint unless augment_prompt_for_transparency is set true.
conceptsNoHow many distinct design concepts to ask ONE generation for. Leave unset (1) for ordinary work. Raise it when the prompt is a whole brand or collection brief you want to keep (prompt_improvement reports "brand_brief"): the model is asked for a themed set instead of one image. Capped at 7 (ask for more and you get 7); the model may return fewer. Only sources whose supports_collection is true can do it (Nano Banana today); on any other source, including one the fallback ladder moved to, it is silently reduced to 1 and this tool says so in a warning. Costs ONE image generation either way, because it is one model call; the extra designs cost nothing. Each extra design carries the product name and retail description the model wrote for it.
workspaceNo
no_fallbackNoDisable the model-fallback ladder. By default a rate-limited/transient model transparently retries with a different model (see fallback_trail); set true to fail on the chosen source alone.
prompt_improvementNoLeave unset (advisory) for ordinary work. "skip" keeps your exact wording when the prompt names or depicts the product; a background instruction may still be added and the background is still removed for isolated artwork. Use it when the wording itself was approved by the user.
augment_prompt_for_transparencyNoAdd the solid-green-background hint so the background can be keyed out (default true).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.21.1
    • addedInput schema / properties / auto_key
      Added value: +{
      +  "description": "Leave unset for ordinary work. false sends the prompt exactly as written and removes no background: use it for an all-over or full-bleed design, or when you want the raw image. It also turns off the green-background hint unless augment_prompt_for_transparency is set true.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / prompt_improvement
      Added value: +{
      +  "description": "Leave unset (advisory) for ordinary work. \"skip\" keeps your exact wording when the prompt names or depicts the product; a background instruction may still be added and the background is still removed for isolated artwork. Use it when the wording itself was approved by the user.",
      +  "enum": [
      +    "advisory",
      +    "skip"
      +  ],
      +  "type": "string"
      +}
  2. Changed1 schema field changedv0.16.2
    • addedInput schema / properties / concepts
      Added value: +{
      +  "description": "How many distinct design concepts to ask ONE generation for. Leave unset (1) for ordinary work. Raise it when the prompt is a whole brand or collection brief you want to keep (prompt_improvement reports \"brand_brief\"): the model is asked for a themed set instead of one image. Capped at 7 (ask for more and you get 7); the model may return fewer. Only sources whose supports_collection is true can do it (Nano Banana today); on any other source, including one the fallback ladder moved to, it is silently reduced to 1 and this tool says so in a warning. Costs ONE image generation either way, because it is one model call; the extra designs cost nothing. Each extra design carries the product name and retail description the model wrote for it.",
      +  "maximum": 9007199254740991,
      +  "minimum": 1,
      +  "type": "integer"
      +}
  3. First observedv0.15.2

TDQS

A4.1/5.0
Behavior5/5

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

Goes well beyond the annotations: it discloses that the platform auto-decides background removal, classifies rate-limit errors into three named categories, exposes a model fallback ladder (fallback_trail, no_fallback), and explains that prompts naming the product get silently rewritten and are billed as improved_prompt. That is exactly the kind of hidden behavior destructiveHint=true and openWorldHint=true cannot convey.

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?

Front-loaded with purpose and background behavior, but the middle is a long undifferentiated block covering rate limits, fallback, prompt rewriting, and concepts in one run-on paragraph. There is also a stray artifact token ('[#f7097a]') at the end that serves no purpose.

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 spends words naming the result fields an agent must read (print_ready, background_state, design_intent, prompt_improvement.applied, fallback_trail) and points to get_design_collection for extras. It never states the general generation cost or that a design is persisted to the workspace, which matters for a destructive-hinted tool with 10 parameters.

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?

With 70% schema coverage, the schema already documents concepts, auto_key, prompt_improvement, and no_fallback at length; the description adds the interaction the schema doesn't state — that 'brand_brief' issues make concepts the escape hatch and that concepts > 1 still returns ONE image while siblings land in the workspace. It repeats some schema text, so it is additive but not purely additive.

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?

Opens with a specific verb+resource ('Generate a design image') and frames itself as a split primitive of design_apparel, which lets an agent place it relative to that sibling. It does not explicitly contrast with generate_listing_image or iterate_design, so differentiation is partial rather than complete.

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 several concrete conditional routes: call process_transparency only when a transparent background is needed and print_ready.applied is false; use concepts > 1 when prompt_improvement reports 'brand_brief'; pass prompt_improvement 'skip' when wording was user-approved. Missing is any statement of when to choose this over design_apparel or iterate_design for an existing design.

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