MCPFerramentas MCP/Localizações/create_location_menu

create_location_menu

Writelocations:write

Create a client-owned menu with sections, items and accessible asset photos. Requires Clients access. Does not assign locations automatically.

Parâmetros
clientIdstringobrigatório
Owning client ID or public ID. Accepts the database ID or public cli- ID. IDs must belong to the authenticated agency and permitted client.
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": "create_location_menu",
    "arguments": {
      "clientId": "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.