wc_update_product
Update a WooCommerce product's regular price, sale price, stock quantity, or description. Use it for product data changes; publish status is not changed and write mode is required.
Instructions
Update a WooCommerce product's price, sale price, stock or description. Cannot change publish status. Requires write mode.
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": {
"id": "<id>"
},
"name": "wc_update_product"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| sale_price | No | Empty string clears the sale price | |
| description | No | ||
| regular_price | No | ||
| stock_quantity | No |