MCPHerramientas MCP/Ubicaciones/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
clientIdstringobligatorio
Owning client ID or public ID. Accepts the database ID or public cli- ID. IDs must belong to the authenticated agency and permitted client.
menuobjectobligatorio
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.
Solicitud de ejemplo
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "create_location_menu",
    "arguments": {
      "clientId": "string",
      "menu": {}
    }
  }
}
Respuesta de ejemplo
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "content": [
      {
        "type": "text",
        "text": "..."
      }
    ]
  }
}

La forma de la respuesta se muestra a modo ilustrativo — el contenido real depende de la herramienta y de tus datos.