Skip to main content
Glama

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

NameRequiredDescriptionDefault
menuNoOptional starter menu. Each entry is a category with its items. Only add items the owner actually gave you — never invent a menu.
appIdYesThe editor app id (UUID).
taxRateNoTax percentage, e.g. 20 for 20%. Optional.
currencyNoISO currency code, e.g. GBP, USD, EUR. Defaults to USD — ask the owner rather than guessing.
timezoneNoIANA timezone, e.g. Europe/London. Defaults to UTC.
pageTitleNoTitle of the ordering page. Defaults to "Order"; use the name the person asked for.
descriptionNoOne line about the restaurant. Optional.
allowEmptyMenuNoOnly when the person explicitly wants the ordering page created with no items yet.
restaurantNameYesName of the restaurant/takeaway shown to customers.
fulfillmentTypesNoAny of: pickup, delivery, dine_in. Defaults to ["pickup"].
notificationEmailNoEmail that should receive new order alerts. Optional.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the burden well: it discloses idempotency ('one restaurant per app: if one already exists it is returned rather than duplicated'), the write side effects, the unit convention (9.50 not pence), and the hard boundary that real orders require out-of-band payment setup. Missing only auth/permission requirements and what the response body contains beyond the existing-restaurant case.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with phase and purpose, then side effects, idempotency, unit convention, and the payments caveat in a short paragraph. Every sentence carries information; only slight redundancy with the schema's own price/currency notes.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For an 11-parameter mutation tool with no annotations and no output schema, the description covers what gets created, idempotency, units, and the payments boundary — enough to call it correctly. Return-shape detail and permission prerequisites are the remaining gaps.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so all 11 parameters are already documented in the schema, including price units, currency defaults, timezone, and the 'never invent a menu' warning. The description reinforces the price-format convention but adds little parameter meaning beyond the schema — baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('set up food ordering / restaurant takeaway on an editor app') plus the concrete artifacts created: restaurant record, optional menu categories/items, and ordering page. The sibling set contains many setup_* tools (setup_bookings, setup_loyalty_card), and 'food ordering / restaurant takeaway' clearly distinguishes this one's domain.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage context is clear: it is 'Phase 7 (round 1)' and it mirrors the AppBuild editor's restaurant setup. It also gives an explicit exclusion — payments/Stripe are NOT configured here and must be connected in the dashboard. It doesn't name a sibling alternative for adjacent capabilities, but the domain is unambiguous.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources