add_product_variant
Add a new product variant with specific option values and price to an existing product using its Global ID.
Instructions
Adds a new variant (combination of options like color/size) with its price to an existing product.
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>",
"option_values": "<option_values>",
"price": "<price>"
},
"name": "add_product_variant"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sku | No | Optional Stock Keeping Unit (SKU) for this variant. | |
| price | Yes | The price for this new variant. | |
| product_id | Yes | The Global ID (GID) of the product to add the variant to (e.g., 'gid://shopify/Product/12345') | |
| option_values | Yes | Comma-separated list of the option values for this specific variant, **in the exact order** they appear on the product (e.g., 'Red,Small' for options Color then Size). | |
| compare_at_price | No | Optional compare-at price for this variant. |