Get WooCommerce Product
woocommerce_get_productRetrieve complete product details including pricing, stock, images, categories, and variations by providing a numeric product ID.
Instructions
Retrieve full details for a single product by ID, including description, pricing, stock, images, categories, tags, attributes, and (for variable products) the list of variation IDs.
Args:
product_id (number): The product's numeric ID
response_format ('markdown'|'json'): default 'markdown'
Returns: Full product object.
Error Handling:
Returns "Error: Resource not found (404)" if the product ID doesn't exist.
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": {
"product_id": "<product_id>"
},
"name": "woocommerce_get_product"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| product_id | Yes | The numeric WooCommerce product ID | |
| response_format | No | Output format: 'markdown' for human-readable text or 'json' for machine-readable structured data | markdown |