manage_cart
Create, update, or retrieve Shopify carts by performing actions like add, remove, or get items. Manage cart operations programmatically for e-commerce automation.
Instructions
Create, modify, or retrieve a Shopify cart (create, add, remove, get).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"action": "<action>"
},
"name": "manage_cart"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | Cart operation to perform | |
| cart_id | No | Existing cart ID (required for add/remove/get) | |
| quantity | No | Quantity to add or set (default 1) | |
| variant_id | No | Product variant ID (required for add/remove) |