{"protocol":"webmcp/1.0","scope":"customer-portal","specification":"https://webmachinelearning.github.io/webmcp/","server":{"name":"customer-tablekart-webmcp","version":"1.0.0","description":"Client/customer-side Web Model Context Protocol runtime for dining discovery, table reservations, and cart ordering."},"transports":[{"type":"document.modelContext","status":"standard-browser"},{"type":"TabServerTransport","status":"active-bridge"},{"type":"IframeChildTransport","status":"active-bridge"},{"type":"HttpEndpointTransport","status":"active-endpoint"}],"tools":[{"name":"search_restaurants","description":"Search restaurants by dish keywords, city, cuisine, price level, minimum rating, or vegetarian preference.","inputSchema":{"type":"object","properties":{"q":{"type":"string","description":"Search keywords for name, dish, or vibes (e.g. pizza, sushi, terrace)"},"city":{"type":"string","description":"City name (e.g. Mumbai, Delhi, Bengaluru)"},"cuisine":{"type":"string","description":"Cuisine style (e.g. Italian, North Indian, Japanese, Continental)"},"price":{"type":"number","description":"Price tier from 1 (budget) to 4 (fine dining)"},"rating":{"type":"number","description":"Minimum guest rating (e.g. 4.0 or 4.5)"},"veg":{"type":"boolean","description":"Show exclusively 100% vegetarian restaurants"},"open":{"type":"boolean","description":"Show only restaurants that are currently open"}}},"annotations":{"readOnlyHint":true,"idempotentHint":true,"title":"Search Restaurants","category":"discovery"},"sampleInput":{"city":"Mumbai","cuisine":"Italian","rating":4}},{"name":"get_restaurant_details","description":"Get comprehensive overview, address, hours, photos, and policies for a specific restaurant.","inputSchema":{"type":"object","properties":{"slug":{"type":"string","description":"The unique restaurant slug identifier"}},"required":["slug"]},"annotations":{"readOnlyHint":true,"idempotentHint":true,"title":"Restaurant Details","category":"discovery"},"sampleInput":{"slug":"the-bombay-canteen"}},{"name":"get_restaurant_menu","description":"Retrieve the organized menu categories, dishes, prices, descriptions, and dietary tags for a restaurant.","inputSchema":{"type":"object","properties":{"slug":{"type":"string","description":"The unique restaurant slug identifier"},"vegOnly":{"type":"boolean","description":"Filter only vegetarian dishes"}},"required":["slug"]},"annotations":{"readOnlyHint":true,"idempotentHint":true,"title":"Get Menu","category":"dining"},"sampleInput":{"slug":"the-bombay-canteen","vegOnly":false}},{"name":"check_table_availability","description":"Check bookable reservation time slots and remaining seat availability for a date and party.","inputSchema":{"type":"object","properties":{"slug":{"type":"string","description":"The restaurant slug"},"date":{"type":"string","description":"Date in YYYY-MM-DD format (defaults to today)"},"partySize":{"type":"number","description":"Number of guests (defaults to 2)"}},"required":["slug"]},"annotations":{"readOnlyHint":true,"idempotentHint":true,"title":"Check Table Slots","category":"reservation"},"sampleInput":{"slug":"the-bombay-canteen","partySize":2}},{"name":"book_table","description":"Create a confirmed dining reservation for the customer at a restaurant.","inputSchema":{"type":"object","properties":{"restaurantSlug":{"type":"string","description":"The restaurant slug"},"restaurantId":{"type":"string","description":"Restaurant ID"},"date":{"type":"string","description":"Date in YYYY-MM-DD format"},"time":{"type":"string","description":"Reservation time slot (e.g. 19:30)"},"guests":{"type":"number","description":"Number of guests"},"guestName":{"type":"string","description":"Primary contact name for reservation"},"guestPhone":{"type":"string","description":"Primary contact phone number"},"guestEmail":{"type":"string","description":"Primary contact email"},"specialRequests":{"type":"string","description":"Special dietary requests or seating notes"}},"required":["restaurantSlug","date","time","guests","guestName","guestPhone","guestEmail"]},"annotations":{"readOnlyHint":false,"idempotentHint":false,"destructiveHint":false,"title":"Reserve Table","category":"reservation"},"sampleInput":{"restaurantSlug":"the-bombay-canteen","date":"2026-11-04","time":"19:30","guests":2,"guestName":"Alex Mercer","guestPhone":"+919876543210","guestEmail":"alex@example.com","specialRequests":"Quiet corner table please"}},{"name":"view_cart","description":"View the active in-browser dining cart with itemized dishes, prices, restaurant, and totals.","inputSchema":{"type":"object","properties":{}},"annotations":{"readOnlyHint":true,"idempotentHint":true,"title":"View Cart","category":"cart"},"sampleInput":{}},{"name":"add_to_cart","description":"Add a menu item to the user dining cart with specified price and dietary attributes.","inputSchema":{"type":"object","properties":{"restaurantSlug":{"type":"string","description":"Slug of the restaurant"},"restaurantName":{"type":"string","description":"Name of the restaurant"},"restaurantId":{"type":"string","description":"ID of the restaurant"},"menuItemId":{"type":"string","description":"Unique ID of the menu item"},"name":{"type":"string","description":"Item name"},"price":{"type":"number","description":"Price per unit"},"veg":{"type":"boolean","description":"Whether item is vegetarian"}},"required":["restaurantSlug","restaurantName","restaurantId","menuItemId","name","price"]},"annotations":{"readOnlyHint":false,"idempotentHint":false,"title":"Add to Cart","category":"cart"},"sampleInput":{"restaurantSlug":"the-bombay-canteen","restaurantName":"The Bombay Canteen","restaurantId":"sample-id-1","menuItemId":"sample-item-1","name":"Truffle Mushroom Risotto","price":650,"veg":true}},{"name":"update_cart_quantity","description":"Update the quantity of an item in the cart, or remove it by setting quantity to 0.","inputSchema":{"type":"object","properties":{"menuItemId":{"type":"string","description":"Item ID to update"},"quantity":{"type":"number","description":"New quantity (0 removes item)"}},"required":["menuItemId","quantity"]},"annotations":{"readOnlyHint":false,"idempotentHint":true,"title":"Update Cart Quantity","category":"cart"},"sampleInput":{"menuItemId":"sample-item-1","quantity":2}},{"name":"clear_cart","description":"Clear all items currently in the dining cart.","inputSchema":{"type":"object","properties":{}},"annotations":{"readOnlyHint":false,"idempotentHint":true,"destructiveHint":true,"title":"Clear Cart","category":"cart"},"sampleInput":{}},{"name":"get_customer_bookings","description":"Fetch the active customer past and upcoming table reservations.","inputSchema":{"type":"object","properties":{}},"annotations":{"readOnlyHint":true,"idempotentHint":true,"title":"My Bookings","category":"reservation"},"sampleInput":{}},{"name":"get_food_hotspots","description":"Discover popular food hotspots, dining clusters, and neighborhoods with curated restaurant hubs.","inputSchema":{"type":"object","properties":{"city":{"type":"string","description":"Optional city filter"}}},"annotations":{"readOnlyHint":true,"idempotentHint":true,"title":"Dining Hotspots","category":"discovery"},"sampleInput":{"city":"Mumbai"}}],"resources":[{"uri":"webmcp://cart","name":"Current Dining Cart","description":"Real-time JSON state of items, total cost, and selected restaurant in the user cart.","mimeType":"application/json"},{"uri":"webmcp://hotspots","name":"Featured Food Hotspots","description":"List of trending dining neighborhoods and culinary hotspots.","mimeType":"application/json"}],"prompts":[{"name":"plan-dinner","description":"Assist user in finding the ideal dining spot, inspecting menu, and making a table reservation."},{"name":"order-favorite-meal","description":"Quickly find dishes from a favorite restaurant and stage them into the dining bag."}]}