Prepare a snack-corner order
resto_order_prepareBuilds an unpaid snack-corner cart from selected main and sides and returns itemized totals, discounts, balance, pickup place, and a 10-minute confirmation ID before booking or payment.
Instructions
Step 1 of 2 (beta). Builds an UNPAID cart for one snack-corner formula and returns the exact summary: items, total, discounts, balance before/after, pickup place, plus a confirmationId (valid 10 minutes). Nothing is booked or paid. Only call this when the user asked to order food and named the items (or clearly agreed to your suggestion). Product names can be partial ("thon mayo", "gaufre choco") or ids from resto_order_offer. Then show the summary to the user and wait for an explicit yes before resto_order_confirm.
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": {
"main": "<main>",
"sides": "<sides>"
},
"name": "resto_order_prepare"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| main | Yes | The main item (sandwich, pasta, ciabatta ...) | |
| sides | Yes | The side items in order, e.g. ["yaourt", "gaufre liegeoise chocolat"] |