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
| Platform | Status | Notes |
|---|---|---|
| iOS | Yes | — |
| Android | Yes | — |
Authentication Required
The user must be signed in to use this tool.
Description
Get alternative product suggestions for a cart entry
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
entry_guid | string | Yes | — | Cart entry GUID to find alternatives for |
search_term | string | No | — | Optional search term to narrow alternatives |
Response
| Field | Type | Description |
|---|---|---|
alternatives | array | List of alternative products |
code | string | Product code |
name | string | Product name |
price | string | Formatted price |
image_url | string | Product image URL |
Error Codes
| Code | Description |
|---|---|
AUTH_REQUIRED | User must be signed in |
INVALID_PARAMS | Missing 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