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
| Platform | Status | Notes |
|---|---|---|
| iOS | Yes | — |
| Android | Yes | — |
Authentication Required
The user must be signed in to use this tool.
Description
Update the quantity of an item in the cart
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
entry_guid | string | Yes | — | Cart entry GUID to update |
quantity | integer | Yes | — | New quantity (must be >= 1) |
Response
| Field | Type | Description |
|---|---|---|
success | boolean | Whether the quantity was updated |
cart_total | string | Updated cart total |
Error Codes
| Code | Description |
|---|---|
AUTH_REQUIRED | User must be signed in |
INVALID_PARAMS | Missing 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