wc_update_product_variation tool reference for StifLi Flex MCP
Writeupdates a variation using `product_id` and `variation_id`, with ownership validation before saving changes.
Description
updates a variation using `product_id` and `variation_id`, with ownership validation before saving changes.
What it is for
- Changing variation price, attributes, or stock.
- Preventing accidental cross-product variation updates.
Example use case
correcting variation inventory.
Sample prompt
Update variation ID 9901 for product ID 410 and set stock quantity to 12 with sale price 24.99.
Sample response
{
"tool": "wc_update_product_variation",
"status": "ok",
"updated": true
}
What does wc_update_product_variation do?
updates a variation using `product_id` and `variation_id`, with ownership validation before saving changes.
Does wc_update_product_variation modify store data?
Yes. It is a write operation and can create, update, or delete data depending on arguments.
Which capability is commonly required?
It usually runs under controls compatible with edit_products and the active MCP profile.
How should wc_update_product_variation be used safely?
Enable write confirmations, test in staging first, and keep changelog/rollback enabled.
