setup_food_ordering
Phase 7 (round 1): set up food ordering / restaurant takeaway on an editor app. Creates the restaurant record, optional menu categories and items, and the ordering page, exactly as the AppBuild editor's restaurant setup does. One restaurant per app: if one already exists it is returned rather than duplicated. Prices are in normal money (9.50), not pence. Payments (Stripe) are NOT configured here — the owner must connect payments in the AppBuild dashboard before real orders can be taken.
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": {
"appId": "<appId>",
"restaurantName": "<restaurantName>"
},
"name": "setup_food_ordering"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| menu | No | Optional starter menu. Each entry is a category with its items. Only add items the owner actually gave you — never invent a menu. | |
| appId | Yes | The editor app id (UUID). | |
| taxRate | No | Tax percentage, e.g. 20 for 20%. Optional. | |
| currency | No | ISO currency code, e.g. GBP, USD, EUR. Defaults to USD — ask the owner rather than guessing. | |
| timezone | No | IANA timezone, e.g. Europe/London. Defaults to UTC. | |
| pageTitle | No | Title of the ordering page. Defaults to "Order"; use the name the person asked for. | |
| description | No | One line about the restaurant. Optional. | |
| allowEmptyMenu | No | Only when the person explicitly wants the ordering page created with no items yet. | |
| restaurantName | Yes | Name of the restaurant/takeaway shown to customers. | |
| fulfillmentTypes | No | Any of: pickup, delivery, dine_in. Defaults to ["pickup"]. | |
| notificationEmail | No | Email that should receive new order alerts. Optional. |