update-variant-price
Change a product variant's price, optionally setting a compare-at price, by providing product and variant IDs.
Instructions
Update the price (and optionally compare-at price) of a product variant.
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": {
"productId": "<productId>",
"variantId": "<variantId>",
"price": "<price>"
},
"name": "update-variant-price"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| price | Yes | New price as a decimal string, e.g. '19.99' | |
| productId | Yes | Product ID that owns the variant | |
| variantId | Yes | Variant ID (numeric ID or gid://shopify/ProductVariant/... form) | |
| compareAtPrice | No | Optional compare-at (strikethrough) price as a decimal string |