Show other products for an item
show_alternativesShow the other products available for ONE item at ONE store, from a plan you already built. Use when a pick from build_plan is not what the shopper wanted, or when they ask what else is available for something.
Pass the jobId from build_plan and the item. Only offer this for items whose pick reported otherOptions above 0; the rest have nothing else to show.
This reads the shelf the plan was built from, so it reflects that store at that moment rather than a fresh search. A plan older than about 15 minutes has expired and needs rebuilding.
Showing alternatives does NOT change the shopper's list. If they pick one, tell them to switch it in LastList, which is where a chosen product is recorded.
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": {
"jobId": "<jobId>",
"item": "<item>"
},
"name": "show_alternatives"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| item | Yes | Which item to show alternatives for, as it appears on the list (e.g. 'milk'). | |
| jobId | Yes | The jobId from the build_plan call that produced the pick. | |
| storeId | No | Store to look at. Defaults to the plan's recommended store. |