Prepare a Bite2u order
prepare_orderUse this when the user has chosen dishes from a menu returned by get_menu and wants to order. Pass the restaurant slug and the items (dish_id from get_menu, quantity, and size_id / options when the dish has sizes or option groups). It checks every item against the current menu and returns the lines, the subtotal in the restaurant's currency, any problem (for example a required option still to choose) and checkout_url: the restaurant page on bite2u.com with this basket already in it, where the user completes the order and payment. This tool does not place or charge the order.
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": {
"slug": "<slug>",
"items": "<items>"
},
"name": "prepare_order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | Yes | The restaurant slug from search_restaurants / get_menu. | |
| items | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | ||
| lines | Yes | ||
| currency | No | ||
| problems | No | ||
| subtotal | Yes | ||
| restaurant | Yes | ||
| checkout_url | Yes |