Create cart
create_cartReplace the cart contents with the confirmed items. Without a guest cart key it creates a separate guest cart. Signed-in users have one account cart. Returns the items, subtotal and, for guests, a private cart key.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "create_cart"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | No | ||
| cart_key | No | Guest carts only; omit it when the account is connected. Private tool input. Copy the key from an earlier tool result, the cart_key query parameter of a payment link, or the last segment of a /shop/mcp-checkout/ link already in the chat. Keep it out of shopper replies. | |
| quantity | No | ||
| variant_id | No |