List WooCommerce Product Variations
woocommerce_list_product_variationsRetrieve paginated list of variations for a variable product, showing ID, SKU, price, stock, and attribute options.
Instructions
List all variations of a variable product (e.g. a T-shirt with Size/Color variations).
Args:
product_id (number, required): the parent variable product's ID
page / per_page: pagination (default page=1, per_page=20, max 100)
response_format ('markdown'|'json'): default 'markdown'
Returns: paginated list of variations with id, sku, price, stock, and attribute options.
Error Handling:
Returns an empty list if the product exists but isn't of type 'variable' or has no variations.
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_list_product_variations"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Page number to retrieve, 1-based (default: 1) | |
| per_page | No | Number of results per page, 1-100 (default: 20) | |
| product_id | Yes | The parent variable product's numeric ID | |
| response_format | No | Output format: 'markdown' for human-readable text or 'json' for machine-readable structured data | markdown |