find_stock
Check which stores of a Swiss grocery chain have a specific product in stock, optionally filtered by GPS, ZIP, address, or a single store ID.
Instructions
Check which stores of a given chain have a specific product in stock. Optionally filter by proximity to GPS coordinates or query a single store by ID. Not all chains support per-store stock queries; unsupported chains return a clear error. Use for "is this product available near Zurich HB?", "which Coop has item X in stock?".
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": {
"chain": "<chain>",
"productId": "<productId>"
},
"name": "find_stock"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| near | No | Optional location to filter nearby stores. Pass coordinates, a Swiss ZIP, or a free-text address. If omitted, all stores may be queried. | |
| chain | Yes | The chain to query for stock. Only chains with perStoreStock capability are supported. | |
| storeId | No | Query a single specific store by its chain-specific store ID. Takes precedence over `near`. | |
| productId | Yes | Chain-specific product ID to check stock for. Obtain via search_products or get_product. |