MCPMCP Tools/Locations/replace_location_menu

replace_location_menu

Writelocations:write

Replace the full menu tree. Omitted sections/items are removed; omitted description is cleared and currency defaults to USD. Read the menu first and include all content to retain. Requires Clients access.

Parameters
menuIdstringrequired
Menu ID.
menuobjectrequired
namestringoptional
Menu name.
descriptionoptional
Optional description; omitted or null clears it on replacement.
currencystringoptional
Three-letter uppercase currency code; defaults to USD.
sectionsobject[]optional
Ordered sections. At most 50 sections and 1,000 items overall. Omitted sections become empty on replacement.
namestringoptional
Section name.
descriptionoptional
Optional description; omitted or null clears it on replacement.
itemsobject[]optional
Ordered items, at most 200 per section.
namestringoptional
Item name.
descriptionoptional
Optional description; omitted or null clears it on replacement.
priceoptional
Nonnegative price.
caloriesoptional
Nonnegative whole-number calories.
allergensoptional
Allergens.
ingredientsoptional
Ingredients.
photoKeysstring[]optional
At most 20 accessible asset keys, such as upload:abc. Raw URLs are not accepted.
Example request
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "replace_location_menu",
    "arguments": {
      "menuId": "string",
      "menu": {}
    }
  }
}
Example response
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "content": [
      {
        "type": "text",
        "text": "..."
      }
    ]
  }
}

Response shape shown for illustration — the actual content depends on the tool and your data.