get_variant
Retrieve a single product variant by ID to get price, SKU, barcode, inventory quantity, and option values.
Instructions
Get a single product variant by ID. Returns price (VND, float with 4 decimals), SKU, barcode, inventory quantity, and option values.
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": {
"variant_id": "<variant_id>"
},
"name": "get_variant"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| variant_id | Yes | Variant ID (numeric). Required. |