Check an order
check_orderStep 1 of 2 to order: checks a basket of one or more menu items against the bakery's ordering rules. Saves nothing and makes no link. Returns the lane (same day on Toast, or catering on Shopify), the priced lines, the subtotal, any problems, and the dates and times the bakery can serve. Rules it applies: closed Mondays and blocked dates; Toast = only counter-menu items, up to 6 piroshki and pinoyshki (other items not limited), pickup, today while open or scheduled up to 14 days ahead with a time in that day's hours; catering = 3 days' notice for up to 24 full-size or 4 dozen bite-size piroshki and pinoyshki (other items not limited, pickup), a week ahead (by Saturday) for more, any delivery and custom cakes; delivery within 15 miles on orders over $100 or with a cake of $75 or more. The result may list 'Still needed' questions: combo_offer (a combo, in combo hours), sold_out_choice (what to do if a piroshki is sold out, for a later day) and cake_details (what is still undecided about a custom cake).
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": {
"items": "<items>"
},
"name": "check_order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| zip | No | Delivery ZIP code (delivery is within 15 miles). | |
| date | No | The date as YYYY-MM-DD ('today' also works). Work it out from the customer's words using today's date in Seattle (Pacific time). If their words could mean two dates, like 'next Friday' said earlier in the same week, ask them which before calling. Needed for catering and for a Toast pickup on a later day. | |
| time | No | 12-hour time like '1:00 pm'. Needed for catering and for a Toast pickup on a later day. | |
| items | Yes | What to order. Use item names exactly as get_menu or search_menu gave them. | |
| notes | No | Optional note for the bakery. | |
| channel | No | Optional. 'today' = the counter menu on Toast: same day, or a scheduled pickup up to 14 days ahead (up to 6 full-size, pickup only, paid on Toast); 'catering' = ordered 3 or more days ahead, paid on Shopify. Left out, the basket and date decide: catering is preferred from 3 days out when every item is on the catering menu. | |
| utensils | No | Catering: include utensils. Default true. | |
| staff_tip | No | Toast orders: the tip for the bakery staff in whole dollars, shared by the staff who bake, pack and hand over the order. 0 (the default) unless the customer picks one; offer $1, $3 or $5 or any whole amount. | |
| fulfillment | No | Default pickup. Delivery is catering, week-ahead only. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | True when the order is allowed as asked. | |
| view | Yes | ||
| when | No | ||
| lines | Yes | ||
| title | No | ||
| today | No | Today's date in Seattle, like 'Thursday, September 24'. | |
| channel | No | ||
| problems | Yes | ||
| tip_offer | No | Toast orders: the staff tip choices in whole dollars and the suggested one. | |
| lane_label | No | ||
| date_choices | No | Present when the date asked for could mean either of these; ask the customer which. | |
| allowed_dates | No | ||
| allowed_times | No | ||
| earliest_date | No | ||
| subtotal_cents | Yes | Before tax, with the staff tip; the checkout page shows the final total. | |
| staff_tip_cents | No | The tip for the bakery staff, 0 when none. | |
| delivery_allowed | No | ||
| allowed_date_labels | No | allowed_dates with weekdays, like 'Fri Oct 2'. |