update_cart

Perform updates to a cart, including adding/removing/updating line items, buyer information, shipping details, discount codes, gift cards and notes in one consolidated call. Shipping options become available after adding items and delivery address. When creating a new cart, only addItems is required.

Tool Parameters

Shopify Store Configuration

Enter the Shopify store domain that has the MCP Storefront server enabled

This helps track which user requests lead to specific tool evaluations.

Import from Conversation

Paste a conversation JSON to automatically extract tool calls and their user prompts.

Identifier for the cart being updated. If not provided, a new cart will be created.

Items to add to the cart. Required when creating a new cart.

Existing cart line items to update quantities for. Use quantity 0 to remove an item.

List of line item IDs to remove explicitly.

Information about the buyer including email, phone, and delivery address.

Information about the delivery addresses to add.

The delivery options to select for the cart.

Discount or promo codes to apply to the cart. Only prompt if customer mentions having a discount code.

Gift card codes to apply to the cart. Only prompt if customer mentions having a gift card.

A note or special instructions for the cart. Optional - can ask if customer wants to add special instructions.

Evaluation History

No evaluations yet. Execute the tool to see results here.