check_inventory
Check whether a selected product variant is currently sellable and available. Use when availability matters or immediately before adding a selected variant to a cart.
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": {
"site_slug": "<site_slug>",
"variant_id": "<variant_id>"
},
"name": "check_inventory"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site_slug | Yes | ||
| variant_id | Yes |