MCPOutils MCP/Emplacements/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.
Paramètres
clientIdstringobligatoire
Owning client ID or public ID. Accepts the database ID or public cli- ID. IDs must belong to the authenticated agency and permitted client.
menuobjectobligatoire
namestringfacultatif
Menu name.
descriptionfacultatif
Optional description; omitted or null clears it on replacement.
currencystringfacultatif
Three-letter uppercase currency code; defaults to USD.
sectionsobject[]facultatif
Ordered sections. At most 50 sections and 1,000 items overall. Omitted sections become empty on replacement.
namestringfacultatif
Section name.
descriptionfacultatif
Optional description; omitted or null clears it on replacement.
itemsobject[]facultatif
Ordered items, at most 200 per section.
namestringfacultatif
Item name.
descriptionfacultatif
Optional description; omitted or null clears it on replacement.
pricefacultatif
Nonnegative price.
caloriesfacultatif
Nonnegative whole-number calories.
allergensfacultatif
Allergens.
ingredientsfacultatif
Ingredients.
photoKeysstring[]facultatif
At most 20 accessible asset keys, such as upload:abc. Raw URLs are not accepted.
Exemple de requête
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "create_location_menu",
"arguments": {
"clientId": "string",
"menu": {}
}
}
}Exemple de réponse
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"content": [
{
"type": "text",
"text": "..."
}
]
}
}La forme de la réponse est indicative — le contenu réel dépend de l'outil et de vos données.