update_variant_price
Update a product variant's price and compare-at price. Set a new regular price, modify or remove the compare-at price by passing null or an empty string.
Instructions
This tool updates the price and/or compare-at price of a specific product variant. It can set a new regular price, add/update a compare-at price, or remove a compare-at price by passing null or an empty string.
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": {
"variant_id": "<variant_id>"
},
"name": "update_variant_price"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| new_price | No | The new price for the variant. If omitted, price is unchanged. | |
| variant_id | Yes | The Global ID (GID) of the product variant to update (e.g., 'gid://shopify/ProductVariant/98765') | |
| new_compare_at_price | No | The new compare-at price. Send null or empty string to remove it. If omitted, compare-at price is unchanged. |