Skip to main content

get_order_history

Retrieves a list of the customer's past orders, showing order dates, totals, and item counts. Supports pagination for customers with many orders.

Platform Support​

PlatformStatusNotes
iOSYes—
AndroidYes—
Authentication Required

The user must be signed in to use this tool.

Description​

Get the user's order history

Parameters​

NameTypeRequiredDefaultDescription
limitintegerNo10Maximum number of orders to return
pageintegerNo0Page number for pagination

Response​

FieldTypeDescription
ordersarrayList of past orders
order_codestringUnique order identifier
datestringOrder date
totalstringOrder total
item_countintegerNumber of items in the order
statusstringOrder status

Error Codes​

CodeDescription
AUTH_REQUIREDUser must be signed in

Source Files​

  • iOS: one-app-ios-chat/Chat/Sources/Chat/MCP/EcommerceMCPServer.swift
  • Android: chat-pnp-android/mcp-ecommerce/src/main/java/pnp/app/mcp/ecommerce/tools/EcommerceMCPTools.kt