Skip to main content

get_cart

Retrieves the customer's current shopping cart, including all items, quantities, prices, and the total amount.

Platform Support​

PlatformStatusNotes
iOSYes—
AndroidYes—
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​

FieldTypeDescription
itemsarrayList of cart items
guidstringCart entry GUID (used for updates/removal)
product_codestringProduct code
product_namestringProduct display name
quantityintegerQuantity in cart
pricestringLine item price
totalstringCart total
item_countintegerTotal number of items

Error Codes​

CodeDescription
AUTH_REQUIREDUser 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