get_cart
Retrieves the customer's current shopping cart, including all items, quantities, prices, and the total amount.
Platform Support
| Platform | Status | Notes |
|---|---|---|
| iOS | Yes | — |
| Android | Yes | — |
Authentication Required
The user must be signed in to use this tool.
Description
Get the current shopping cart contents
Parameters
This tool takes no parameters.
Response
| Field | Type | Description |
|---|---|---|
items | array | List of cart items |
guid | string | Cart entry GUID (used for updates/removal) |
product_code | string | Product code |
product_name | string | Product display name |
quantity | integer | Quantity in cart |
price | string | Line item price |
total | string | Cart total |
item_count | integer | Total number of items |
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