Check price and stock
check_price_and_stockPrice and stock for a list of items, the subtotal, and whether the order can be bought online now (published prices, within the payment limits) or needs a quote.
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": {
"items": "<items>"
},
"name": "check_price_and_stock"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | Products and quantities. Quantity is in the product's selling unit (usually cases). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lines | Yes | One entry per requested item | |
| reason | Yes | Why the items can't be bought online, null when they can | |
| can_checkout | Yes | True when start_checkout can sell these items now; otherwise use request_quote | |
| subtotal_usd | Yes | Goods subtotal in USD before shipping and tax, null when any item is priced on request |