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
| Platform | Status | Notes |
|---|---|---|
| iOS | Yes | — |
| Android | Yes | — |
Authentication Required
The user must be signed in to use this tool.
Description
Get the user's order history
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
limit | integer | No | 10 | Maximum number of orders to return |
page | integer | No | 0 | Page number for pagination |
Response
| Field | Type | Description |
|---|---|---|
orders | array | List of past orders |
order_code | string | Unique order identifier |
date | string | Order date |
total | string | Order total |
item_count | integer | Number of items in the order |
status | string | Order status |
Error Codes
| Code | Description |
|---|---|
AUTH_REQUIRED | User 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