Add item
add_itemAdd a dish/item to a menu (optionally inside a category). Returns the new item_id.
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": {
"menu_id": "<menu_id>",
"name": "<name>"
},
"name": "add_item"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Optional caller-chosen id (8-64 chars). Reuse the same id when retrying so a retry can never create a duplicate. | |
| name | Yes | Item name, e.g. "Cacio e pepe" | |
| price | No | Price in the business's currency. Required unless `variations` is given, in which case it is derived from the cheapest variation. | |
| menu_id | Yes | ||
| sort_order | No | ||
| variations | No | Variations of this dish — sizes, volumes, portions, cuts — each with its own ABSOLUTE price (not a surcharge): e.g. [{name:'Small',price:3},{name:'Large',price:4.5}]. Use this instead of creating one item per variation. The item's own `price` becomes the 'from' price (the cheapest variation) automatically, so you may omit `price` when you pass variations. Names must be unique. | |
| category_id | No | ||
| description | No | ||
| dietary_info | No | Allergen and dietary labels shown to diners. `allergens` uses the 14 standard codes (gluten, crustaceans, eggs, fish, peanuts, soybeans, milk, nuts, celery, mustard, sesame, sulphites, lupin, molluscs); `contains` flags alcohol, pork or tobacco; `suitableFor` carries positive claims (vegetarian, vegan, halal, ...); `caloriesKcal` and `portionGrams` are per portion. Optional `declaredAt` (epoch-ms) records that a dish was reviewed, which sharpens check_compliance — a dish with no allergens and no declaredAt is indistinguishable from one nobody has looked at yet. | |
| is_available | No |