Ask which product the shopper means
refine_itemsResolve what the shopper actually means by each item on a list, so it can be planned. 'milk' could be whole, 2%, skim or oat; 'eggs' could be 12 or 18. Call this when build_plan says items need refining, or after adding vague items.
Call it with NO choices first: it returns each unresolved item with the options to offer. Ask the shopper about them, one item at a time and in their own words rather than reading out a menu, then call it again with their answers.
Use the option labels exactly as given. An item the shopper is happy to leave vague can be skipped, but it will not be plannable until it is resolved.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "refine_items"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| listId | No | List to refine. Defaults to the user's active shopping list. | |
| choices | No | The shopper's answers. Omit on the first call to get the questions. |