Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
AMAZON_LISTING_KIT_MODEL_DIRNoOverride the model cache directory (defaults to ~/.cache/amazon-listing-kit/models/).
AMAZON_LISTING_KIT_AUTO_DOWNLOADNoSet to 0 to disable automatic model downloads.

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

Check and fix Amazon main images (pure white RGB 255, 85% fill, 2000×2000) and render a programmatic listing set (main, infographic, dimensions, detail, angle, in-box, comparison) without a generative-model API key. Cutout and listing-set tools need the [studio] extra.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}
logging
{}
prompts
{
  "listChanged": true
}
resources
{
  "subscribe": false,
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
check_main_imageA

Check a product photo against Amazon main-image rules.

Measures six things: longest side (1,000 px min, 2,000 recommended), square ratio, file format and 10 MB limit, pure white RGB 255, 255, 255 background, 85% product fill, and whether the product is cropped at the edge. The photo is read from disk only; nothing is uploaded. Other platforms still get the Amazon report plus a short note, because those marketplaces are more relaxed.

fix_main_imageA

Replace the backdrop with pure white, reframe the product, and re-check.

Writes a square JPEG (default 2000×2000) with the product filling about 88% of the frame on RGB 255, 255, 255, then returns a fresh compliance report for the written file. Works on light-grey or off-white backdrops; busy scenes may still need a manual cutout.

inspect_and_cutoutA

Inspect a source photo and write an RGBA cutout using a local ONNX model.

Requires the studio extra: pip install 'amazon-listing-kit[studio]'. model is isnet (default, Apache-2.0, ~180 MB, downloaded on first use), birefnet (MIT, ~220 MB), or fused (both). The inspection flags low resolution, blur, a product cut off at the edge, or a product that is too small in the frame. The cutout is written as a transparent PNG.

render_listing_setA

Render a marketplace listing set from one product cutout. No LLM API key.

Requires the studio extra: pip install 'amazon-listing-kit[studio]'. By default renders Amazon slots MAIN, PT01 (infographic), PT03 (dimensions), PT04 (detail), PT05 (angle), PT07 (in-box) and PT08 (comparison), named {prefix}.{code}.jpg. Lifestyle slots are skipped — they need a generative model. Pass facts with sellingPoints, dimensions, inBox and comparison rows; slots that are missing copy are skipped rather than invented. platform may be amazon, shopify, etsy or ebay.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.9/5.0

Scored across 4 tools

Disambiguation4/5

The four tools map to distinct stages: check (read-only validation), fix (write/repair), cutout (extraction), and render (set generation). The only mild overlap is that fix_main_image also returns a compliance report, which could tempt an agent to use it instead of check_main_image for validation, but the write-vs-read distinction is clear.

Naming Consistency4/5

All names use snake_case and begin with a verb, making them predictable. inspect_and_cutout bundles two actions into one name, a minor inconsistency compared to the single verb_noun pattern of the others, but overall readable.

Tool Count5/5

Four tools is well-scoped for an image-preparation kit; each tool covers a necessary step (check, fix, cutout, render) with no redundant entries. The count sits comfortably in the recommended range.

Completeness4/5

The surface covers the core image lifecycle: validation, repair, cutout extraction, and multi-slot rendering. Gaps include no tool for lifestyle image generation (acknowledged as out of scope) and no batch or multi-image validation, but these are minor for the stated purpose.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues