variant_flattener_endpoint_v1_enrich_variant_flattener_post
Generate all possible SKU combinations from a base product and variant options. Flatten multiple variant attributes into a complete product list for use in E-commerce and ERP systems.
Instructions
Generates all possible combinations (Cartesian product) from a base product and lists of variant options. Useful for E-commerce platforms (Shopify, WooCommerce) and ERPs.
Cost: 2 credits per request.
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": {
"base_product": "<base_product>",
"variants": "<variants>"
},
"name": "variant_flattener_endpoint_v1_enrich_variant_flattener_post"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| variants | Yes | Map of variant names to option lists. USE THIS TOOL to generate all possible SKU combinations. | |
| sku_format | No | Format string for SKU generation. | {sku_prefix}-{values} |
| base_product | Yes | Base product data common to all variants. |