graceful degradation
Slot unavailable at chosen time
Agent re-fetches 7-day availability window, surfaces the 3 closest alternatives with times and party-size fit. Never dead-ends.
safe retry
book_table returns 5xx
Calls get_booking_status before retrying โ non-idempotent endpoint, so check-then-retry prevents double bookings.
staged confirm
Dineout books, food order fails
Each action confirms separately. If food placement fails, booking remains intact. Agent offers: retry delivery, prepare cart for later, or skip.
cart safety
User edits cart in Swiggy app mid-chat
get_food_cart is called right before every place_food_order โ never trusts what was added earlier in the conversation.
auth recovery
401 mid-session on either server
Re-runs OAuth 2.1 PKCE flow once, updates the shared bearer token across both MCP clients, then retries the failed call.
coupon safety
Coupon requires online payment
v1 is COD-only. fetch_food_coupons is filtered at the agent layer โ requiresOnlinePayment coupons are never surfaced to the user.