create_variant
Add a variant to an existing product by specifying an options map and prices, such as Size: 'XL' with a USD price amount. Configure SKU, title, and inventory management to meet store requirements.
Instructions
Add a variant to an existing product. Provide options map + prices. e.g. options:{ Size:'XL' }, prices:[{amount:30,currency_code:'usd'}].
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_id": "<product_id>",
"title": "<title>"
},
"name": "create_variant"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sku | No | ||
| title | Yes | ||
| prices | No | ||
| options | No | Map of option title -> value. | |
| product_id | Yes | ||
| manage_inventory | No |