MCPFerramentas MCP/Localizações/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.

Parâmetros
menuIdstringobrigatório
Menu ID.
menuobjectobrigatório
namestringopcional
Menu name.
descriptionopcional
Optional description; omitted or null clears it on replacement.
currencystringopcional
Three-letter uppercase currency code; defaults to USD.
sectionsobject[]opcional
Ordered sections. At most 50 sections and 1,000 items overall. Omitted sections become empty on replacement.
namestringopcional
Section name.
descriptionopcional
Optional description; omitted or null clears it on replacement.
itemsobject[]opcional
Ordered items, at most 200 per section.
namestringopcional
Item name.
descriptionopcional
Optional description; omitted or null clears it on replacement.
priceopcional
Nonnegative price.
caloriesopcional
Nonnegative whole-number calories.
allergensopcional
Allergens.
ingredientsopcional
Ingredients.
photoKeysstring[]opcional
At most 20 accessible asset keys, such as upload:abc. Raw URLs are not accepted.
Exemplo de solicitação
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "replace_location_menu",
    "arguments": {
      "menuId": "string",
      "menu": {}
    }
  }
}
Exemplo de resposta
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "content": [
      {
        "type": "text",
        "text": "..."
      }
    ]
  }
}

O formato da resposta é ilustrativo — o conteúdo real depende da ferramenta e dos seus dados.