get_variation
Retrieve complete details for a single product variation, including price, stock, weight, and attributes. Use the fields parameter to request only the necessary data.
Instructions
Get full details of a single variation including price, stock, weight, and attributes. 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>",
"id": "<id>"
},
"name": "get_variation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Variation ID | |
| fields | No | Comma-separated fields to return (default: id,sku,price,regular_price,sale_price,status,stock_status,stock_quantity,attributes,image,weight,description,manage_stock) | |
| product_id | Yes | Parent product ID |