MCPFerramentas MCP/Localizações/assign_location_menu

assign_location_menu

Writelocations:write

Replace all assignments for a menu. Every location must be an active restaurant of the same client; invalid targets fail before changing assignments. An empty list removes all assignments. Requires Clients access.

Parâmetros
menuIdstringobrigatório
Menu ID.
locationIdsstring[]obrigatório
Full desired set of location IDs or public IDs, at most 1,000.
Exemplo de solicitação
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "assign_location_menu",
    "arguments": {
      "menuId": "string",
      "locationIds": [
        "string"
      ]
    }
  }
}
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.