render_restaurants_dineout

Swiggy Dineout: display restaurant cards in a rich UI. Call this AFTER search_restaurants_dineout, once you have decided which restaurants to show and in what order. Pass restaurantIds (from the search results) in display order, plus searches — the list of search(es) you ran ({ query, latitude, longitude, entityType?, filters?, sortKey? }). The server re-fetches and merges those searches to rebuild the full card data, so you never resend it. Repeat the filters and sortKey each search ran with: the re-fetch replays the search, and an unfiltered replay may not contain the ids you picked off a filtered page. If you searched multiple times (e.g. different cuisines or areas), include every search whose results you are showing — ids are resolved across all of them. ORDERING: order the ids by the user's intent — cheapest/budget → cost low to high, best/top-rated → rating high to low, nearest/fastest → distance, otherwise overall relevance. Use your judgment when the ask is implicit. Call it once with your final curated, ordered list — not after every search.

See render_restaurants_dineout in actionComing soon

Usage notes

  • Listed in tools/list only for clients that render MCP UI widgets. Other clients do not see this tool; go from search_restaurants_dineout straight to get_restaurant_details.
  • Each searches entry takes the query, latitude, longitude, entityType, filters and sortKey of the search you ran. Do not pass limit or offset: the replay matches ids against every result of that search, not just the page you were shown.
  • Ids that do not resolve are skipped and the message says how many. If none resolve, the call fails; re-run search_restaurants_dineout and pass ids from its latest results.

Example

const result = await client.callTool({
  name: "render_restaurants_dineout",
  arguments: {
    restaurantIds: ["rest_42", "rest_77"],
    searches: [{ "query": "biryani", "latitude": 12.9716, "longitude": 77.5946 }],
  },
});

Parameters

ParameterTypeRequiredDescription
restaurantIdsstring[]yesRestaurant ids (from search_restaurants_dineout results) in the exact order to display, ranked per the user's intent. May span multiple searches.
searchesobject[]yesThe search(es) you ran to gather these ids. The server re-runs each to rebuild card data. Include one entry per distinct search whose results you are showing.

Session credentials (user identity, access token) are supplied automatically by the authenticated MCP session - you do not pass them in the tool call. See Authenticate.

Response

Read the tool's data from the result's structuredContent; it follows the Output schema below. content holds a human-readable summary for a model to relay, so don't parse it as JSON. If structuredContent is missing or empty, which can happen on Dineout and Scenes, check isError first: on an error, the first content block can be a plain message rather than JSON. Otherwise it is the JSON envelope below; read data from it, along with any fields next to data (some tools return their payload there, such as booking). See Read tool results.

Where a response carries the JSON envelope as text, it has this shape:

{
  "success": true,
  "data": { /* tool-specific payload */ },
  "message": "optional human-readable message"
}

On failure (isError: true on the result, or "success": false with an error object in the envelope):

{
  "success": false,
  "error": { "message": "description of what went wrong" }
}

See Error codes for the full catalogue.

Output schema

data: {
  restaurants: DineoutRestaurant[]; // in restaurantIds order; unresolved ids are skipped
  latitude: number;
  longitude: number;
}
 
type DineoutRestaurant = {
  id: string;
  name: string;
  cuisine: string[];
  locality: string;
  area: string;
  rating: { value: string; count: number };
  costForTwo: string;
  imageUrl?: string;
  distance?: string;
  highlights?: string[];
  offers?: Array<{ offerTitle: string; offerDescription?: string }>;
  bankOffers?: Array<{ offerTitle: string }>;
  vendorHighlights?: Array<{ type: string; text: string }>;
  availableDeals?: Array<{ dealTitle: string; ticketId?: number }>;
}

This schema documents the structured payload returned by render_restaurants_dineout. Optional fields can vary by user state, cart state, and live Swiggy availability.

Schema notes

  • latitude / longitude: the coordinates of the first entry in searches, not of each restaurant. Restaurants carry no coordinates of their own. If you rendered results from searches in different areas, keep each restaurant's originating search coordinates and pass those to get_restaurant_details.
  • ticketId: Dineout slot/deal fields. Copy identifiers from the exact selected slot/deal; do not derive them from display time or restaurant name.
  • rating / costForTwo: display/ranking signals. Do not use them as stable identifiers for follow-up calls.
  • Fields marked optional may be omitted depending on user state, cart/order state, and live Swiggy availability.
  • Use returned identifiers and enum values exactly as provided; do not invent fallback IDs, status values, payment methods, or timestamps.

Details

FieldValue
Namerender_restaurants_dineout
MCP ServerDineout
EndpointPOST mcp.swiggy.com/dineout
StageFind
Behaviourread-only

Next in this journey →

Continue with get_restaurant_details.