Check availability
check_availabilityCheck stock status and on-hand quantity for a product using its unique product ID to verify availability.
Instructions
Check the stock status and on-hand quantity for a single product, given its product id.
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": {
"productId": "<productId>"
},
"name": "check_availability"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| productId | Yes | The product id to check, e.g. "sku-001". |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| name | Yes | ||
| status | Yes | Coarse stock status derived from the on-hand quantity. | |
| quantity | Yes | Units currently on hand. |