Skip to main content

update_cart_quantity

Changes the quantity of a product already in the cart. For example, changing from 1 loaf of bread to 3.

Platform Support​

PlatformStatusNotes
iOSYes—
AndroidYes—
Authentication Required

The user must be signed in to use this tool.

Description​

Update the quantity of an item in the cart

Parameters​

NameTypeRequiredDefaultDescription
entry_guidstringYes—Cart entry GUID to update
quantityintegerYes—New quantity (must be >= 1)

Response​

FieldTypeDescription
successbooleanWhether the quantity was updated
cart_totalstringUpdated cart total

Error Codes​

CodeDescription
AUTH_REQUIREDUser must be signed in
INVALID_PARAMSMissing entry_guid or invalid quantity

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