list_variations
List all variations for a variable product, including price, SKU, and stock details. Specify fields to fetch only the needed data.
Instructions
List all variations for a variable product. Each variation has its own price, SKU, and stock. Use fields param to request only needed fields.
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": "list_variations"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Page number | |
| fields | No | Comma-separated fields to return (default: id,sku,price,regular_price,sale_price,status,stock_status,stock_quantity,attributes,image) | |
| per_page | No | Items per page (max 100) | |
| product_id | Yes | Parent product ID |