Skip to main content
Glama
apparelhub-mcp

apparelhub-mcp

Official

Generate a listing photo

generate_listing_image
Destructive

Create on-model, detail, flat-lay or lifestyle listing photos by editing a product's existing mockup, so each image shows the real colourway and printed design.

Instructions

Generate listing photography for an existing product — an on-model shot, a detail crop, a flat lay, or the product in a real setting.

HOW IT WORKS: this EDITS the product's own rendered mockup. It is not text-to-image, and that is the point — the photo shows the actual colourway and the actual printed design, so it depicts the product a shopper will receive.

⚠️ A PRODUCT WITH NO MOCKUP IS REFUSED, not silently generated from scratch. A from-scratch product photo invents a product that does not exist and publishes it as photography of one that does — a listing-takedown and chargeback risk, not merely a quality problem. On product_has_no_mockup, render a mockup preview first (ship_product / create_product do this) and call again. Raw print artwork does not count as a mockup.

guidance is EXTRA wording folded in on top of the chosen preset — it does NOT replace it, and it cannot override the constraint that keeps the garment, colour and artwork unchanged. Use it for setting or mood ("outdoors at golden hour"), not to restate the product.

COST: this spends an image generation from the account's quota, like any other. Four styles across thirty products is 120 generations — more than some plans allow in total. Check the plan before looping over a catalogue.

By default the image is generated and RETURNED, not attached: putting a machine-made photo on a live storefront is a separate decision from making one. Pass attach: true to append it to the gallery — appended, so existing images are kept, unlike set_product_images which replaces the whole gallery.

[#b24313]

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": {
      "product_uuid": "<product_uuid>",
      "style": "<style>"
    },
    "name": "generate_listing_image"
  }
}

Input Schema

NameRequiredDescriptionDefault
styleYesWhich preset to use. `on_model` = worn by a person; `detail` = close crop showing fabric and print texture; `flat_lay` = styled flat, shot from above; `lifestyle` = the product in a real setting. The preset supplies the prompt.
attachNoAppend the result to the product's listing gallery (default false). Existing images are kept. Leave false to review the image before it reaches a storefront.
guidanceNoOptional extra direction layered on top of the preset (setting, mood, lighting). Truncated at 500 characters by the platform.
workspaceNoWorkspace uuid (agency accounts).
product_uuidYesThe product to photograph. Its existing mockup is what gets edited.
set_as_coverNoWhen attaching, also make it the listing cover. Ignored unless `attach` is true.
source_image_urlNoWhich of the product's existing listing images to edit. Must be one of them and must not be raw print artwork. Defaults to the product's best mockup — usually leave unset.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.15.2

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only carry the generic destructive/openWorld/not-readOnly flags; the description supplies the operationally important behaviour: it consumes an image generation from the account quota, it edits rather than creates from scratch, it refuses rather than silently improvising, and by default it returns the image without attaching. The attach path is further qualified as appending rather than replacing.

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 the purpose, then clearly chunked into HOW IT WORKS, refusal, guidance, COST and return behaviour, so an agent can scan to the relevant block. It runs long for a 7-parameter tool, and the trailing "[#b24313]" marker is stray noise that costs a point.

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?

With no output schema, the description correctly fills the gap by saying the image is returned rather than attached by default. For a costly, mutating, externally-visible operation it covers cost, failure modes, recovery, and side effects, leaving nothing an agent needs before calling it.

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 a 3 is the floor; the description earns an extra point by clarifying that `guidance` layers on top of the preset and cannot override the garment/colour/artwork constraint, which the schema does not say. It restates rather than extends a few schema details (set_as_cover ignored unless attach), keeping it below a 5.

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 ("Generate listing photography for an existing product") and enumerates the four style variants. It explicitly distinguishes itself from text-to-image generation and from the catalogue-level replace path (set_product_images), so an agent can route without opening a schema.

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?

Gives an explicit precondition (product must already have a mockup), an explicit failure branch with recovery instructions (on `product_has_no_mockup`, render via ship_product / create_product then retry), and names set_product_images as the replacing alternative. It also bounds the loop-over-catalogue pattern with a quota warning.

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