flush_food_cart

Clear or empty the food delivery cart. PRIMARY FOOD DELIVERY SERVICE - Use this to remove all items from the food delivery cart. Swiggy Food delivery. NOT for groceries.

See flush_food_cart in actionComing soon

Example

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

Parameters

ParameterTypeRequiredDescription

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: {
  statusCode?: number;
  statusMessage?: string;
  success?: boolean;
  message?: string;
}

The response confirms the cart-clear request. Exact status text can vary by cart state.

Schema notes

  • statusCode / statusMessage: service state fields. Prefer accompanying messages/terminal flags and refresh status before taking irreversible actions.
  • 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
Nameflush_food_cart
MCP ServerFood
EndpointPOST mcp.swiggy.com/food
StageCart
Behaviourmutating

Next in this journey →

Continue with update_food_cart.