Read a product
wp_wc_get_productRetrieve a single WooCommerce product by ID to check name, SKU, current/regular/sale prices, stock, and status; find IDs with the product list and change one with update.
Instructions
WooCommerce: get one product by id: id, name, sku, price (the current one), regular_price, sale_price, stock, stock_status and status. An unknown id returns a not-found error; wp_wc_list_products lists the products with their ids, and wp_wc_update_product changes one. Needs manage_woocommerce. Requires WooCommerce.
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": "wp_wc_get_product"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Product id. |