reorder_items
Adds items from a past order back into the cart. Can reorder all items or specific ones. Great for customers who buy the same groceries regularly.
Platform Support
| Platform | Status | Notes |
|---|---|---|
| iOS | Yes | — |
| Android | Yes | — |
Authentication Required
The user must be signed in to use this tool.
Description
Reorder items from a previous order
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
order_code | string | Yes | — | Order code to reorder from |
all_items | boolean | No | true | Whether to reorder all items from the order |
Response
| Field | Type | Description |
|---|---|---|
success | boolean | Whether items were added to cart |
items_added | integer | Number of items successfully added |
items_failed | integer | Number of items that could not be added (e.g. out of stock) |
Error Codes
| Code | Description |
|---|---|
AUTH_REQUIRED | User must be signed in |
INVALID_PARAMS | Missing order_code |
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