Check a model with variations for Amazon
check_amazon_variation_familyThe model's active articles not yet on Amazon become ONE listing with variations — Amazon's "variation family"; call it a model with variations when talking to the user: a parent whose SKU is the model's code (no price, no quantity) and a child listing per article, varying by colour and/or size — the theme is chosen from what the Amazon product type declares. Every listing is first validated by Amazon (VALIDATION_PREVIEW); this tool only checks and creates nothing. Start from gaps: one entry per kind of problem with every SKU it concerns, found before Amazon is asked — size or color (set with update_product), price (none in the run's currency, the marketplace's: upsert_product_prices, set_product_channel_price or apply_bulk_price_change), productType (update_category), brand, images, condition, title; quantity with blocking=false: the article does not track stock, so the listing goes up without one (update_product with trackInventory, then adjust_stock); and barcodeLength with blocking=false: the article's barcode has another number of digits than the rest of the model, so a digit may be lost — confirm it from the label before publishing (update_product with ean). Amazon is asked only when no gap blocks. Also returns parentSku, theme, currency, blocker (tooFewArticles, noAxis, missingAxisValue, duplicateCombination, themeUnsupported, parentSkuTaken, parentTitleTooLong, tooManyArticles — the last is this CRM's limit for one run, not Amazon's: never suggest splitting the model), fieldProblems (what the product type still needs per Amazon's schema, once per field: attribute key, title in the marketplace's language, kind missing or invalid, allowed values with labels, units, the SKUs concerned, and for an attribute made of several values its parts: each part's key attribute.part, title, required, allowed values and unresolved — true when neither a person nor the CRM has an answer for it), parentIssues, children per article (missing, quantity, barcode, Amazon's sentences, status; notChecked = Amazon did not get to it, call again — what passed is kept for an hour while the article's data stays the same, so each call only checks the rest) and skipped articles (already on Amazon, taken off the channel). The CRM fills model_name, list_price, the dimensions and a size attribute (from each article's own size, with its system and class) itself; set any other field, or a part reported as unresolved, with set_amazon_field_values on the model (every article inherits it) — keys and values from get_amazon_fields. Then create it with publish_amazon_variation_family.
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": {
"modelId": "<modelId>"
},
"name": "check_amazon_variation_family"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| modelId | Yes | A product model id (the model a product's modelId points at; get_product shows it). | |
| marketplaceId | No | One Amazon store by its id. Omit for the main store; for a write with several stores open it is required. Each store holds its own family, in its own language. |