report_error

Generate an error report to share with the Swiggy MCP team. Use this when the user encounters an error and wants to report it. Returns a pre-filled mailto: link and a human-readable summary. The user can click the link to open their email client with the report ready to send. IMPORTANT: Always include toolContext with the specific identifiers from the failed tool call — e.g., orderId, restaurantId, addressId, spinId, menu_item_id, couponCode, query, cartId, slotId, paymentMethod. Include whichever IDs were part of the failed request so the team can trace the exact issue.

See report_error in actionComing soon

Example

const result = await client.callTool({
  name: "report_error",
  arguments: {
    tool: "...",
    errorMessage: "...",
  },
});

Parameters

ParameterTypeRequiredDescription
toolstringyesName of the tool that errored (e.g., "checkout", "search_products", "place_food_order")
domainstringnoMCP server name where the error occurred (e.g., "im", "food", "dineout"). Auto-detected if not provided.
errorMessagestringyesThe error message the user saw
flowDescriptionstringnoBrief description of what the user was doing (e.g., "searched for milk → added to cart → checkout failed")
toolContextobjectnoKey-value pairs of identifiers from the failed tool call. Include ALL relevant IDs such as: orderId, restaurantId, addressId, spinId, menu_item_id, couponCode, query, cartId, slotId, paymentMethod, guestCount, itemId — whichever were part of the request that failed.
userNotesstringnoAny additional notes or context the user wants to share

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

All Swiggy MCP tools return:

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

On failure:

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

See Error codes for the full catalogue.

Output schema

data: {
  mailto: string;
  summary: {
    subject: string;
    body: string;
  };
}

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

Schema notes

  • mailto / summary / subject / body: support-report fields. Show the summary so the user understands what will be sent.
  • 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
Namereport_error
MCP ServerInstamart
EndpointPOST mcp.swiggy.com/im
StageSupport
Behaviourmutating