查询库存
check_stockCheck product inventory by numeric product ID, optionally for a specific SKU, using storefront data that may not reflect real-time availability.
Instructions
按正整数商品 ID 查询库存,并可指定 SKU。结果转述店面接口,不一定等于实时可购数量。质保订阅,不保封号。
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": {
"id": "<id>"
},
"name": "check_stock"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | 商品数字 ID | |
| sku_id | No | 可选,指定一个 SKU |