Skip to main content

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​

PlatformStatusNotes
iOSYes—
AndroidYes—
Authentication Required

The user must be signed in to use this tool.

Description​

Reorder items from a previous order

Parameters​

NameTypeRequiredDefaultDescription
order_codestringYes—Order code to reorder from
all_itemsbooleanNotrueWhether to reorder all items from the order

Response​

FieldTypeDescription
successbooleanWhether items were added to cart
items_addedintegerNumber of items successfully added
items_failedintegerNumber of items that could not be added (e.g. out of stock)

Error Codes​

CodeDescription
AUTH_REQUIREDUser must be signed in
INVALID_PARAMSMissing 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