Create restaurant
create_restaurantCreate a new Lokand restaurant on a customer's behalf — ONE call can produce a complete LIVE website when you pass menu (and optionally hours/theme). Returns working OAuth tokens (Bearer, for follow-up edit ops), the live site_url, and a claim_url. NEXT STEPS after this call: refine with add_item/update_item/set_theme if needed, then give the customer the claim_url so they take ownership (free signup); poll claim_status to keep access after they claim. Requires a client registered once via POST /api/auth/oauth2/register (see https://lokand.com/auth.md).
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": {
"client_id": "<client_id>",
"client_secret": "<client_secret>",
"name": "<name>"
},
"name": "create_restaurant"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| menu | No | The full menu, inline — pass this to go live in one call instead of separate create_menu/add_category/add_item calls | |
| name | Yes | Restaurant name | |
| slug | No | Optional site slug (<slug>.lokand.co); generated from the name when omitted. If taken, a suffixed variant is used automatically. | |
| hours | No | Opening hours keyed mon..sun, each {"open":"10:30","close":"22:00"} or {"closed":true} | |
| place | No | Where the business is and what kind of place it is: lat/lng; address {streetAddress, addressLocality (district), addressRegion (city or province), postalCode, addressCountry (ISO 3166-1 alpha-2)}; timezone (IANA, e.g. "Europe/Istanbul"); category (e.g. restaurant, cafe, bakery, bar, meyhane, fast_food, dessert_shop); up to 6 cuisines (e.g. turkish, kebab, seafood, sushi, vegan). Merged into what is stored: keys you pass replace, keys you leave out stay. | |
| theme | No | ||
| publish | No | Put the site live immediately (default true). Pass false to keep it a draft. | |
| maps_url | No | A Google Maps, Apple Maps, Yandex or OpenStreetMap link (short share links work), or a "lat, lng" pair. Sets the coordinates. | |
| client_id | Yes | Registered OAuth client id | |
| description | No | ||
| contact_info | No | Contact info: phone, email, address, instagram | |
| client_secret | Yes | The client's secret | |
| currency_code | No | ISO currency for menu prices, e.g. "USD" | |
| customer_email | No | Customer's email: binds the claim to it and sends them the claim link |