Skip to main content

get_alternatives

Suggests similar products that could replace an item in the cart. Useful when a product is out of stock or the customer wants options.

Platform Support​

PlatformStatusNotes
iOSYes—
AndroidYes—
Authentication Required

The user must be signed in to use this tool.

Description​

Get alternative product suggestions for a cart entry

Parameters​

NameTypeRequiredDefaultDescription
entry_guidstringYes—Cart entry GUID to find alternatives for
search_termstringNo—Optional search term to narrow alternatives

Response​

FieldTypeDescription
alternativesarrayList of alternative products
codestringProduct code
namestringProduct name
pricestringFormatted price
image_urlstringProduct image URL

Error Codes​

CodeDescription
AUTH_REQUIREDUser must be signed in
INVALID_PARAMSMissing entry_guid

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