update_cart
ActiveTool of Commonlands Optics: M12 Lens and C-Mount Lens Finder + Field-of-View Calculator
Update a Shopify-owned cart through the configured Cart/Storefront MCP endpoint. With UCP endpoints, treat updates as full-state PUT semantics; with the confirmed standard Storefront MCP endpoint, Commonlands maps line_items to Shopify add_items, update_items to quantity changes, and remove_line_ids to explicit removals. Quantity 0 in update_items removes a line.
Parameters schema
{
"type": "object",
"required": [
"id",
"cart"
],
"properties": {
"id": {
"type": "string"
},
"cart": {
"type": "object",
"properties": {
"context": {
"type": "object"
},
"signals": {
"type": "object"
},
"line_items": {
"type": "array",
"items": {
"type": "object",
"required": [
"quantity",
"item"
],
"properties": {
"item": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string"
}
},
"additionalProperties": false
},
"quantity": {
"type": "integer",
"maximum": 999,
"minimum": 1
}
},
"additionalProperties": false
},
"maxItems": 25,
"minItems": 1,
"description": "Variant items to add to the cart."
},
"update_items": {
"type": "array",
"items": {
"type": "object",
"required": [
"id",
"quantity"
],
"properties": {
"id": {
"type": "string",
"description": "Shopify CartLine gid."
},
"quantity": {
"type": "integer",
"maximum": 999,
"minimum": 0
}
},
"additionalProperties": false
},
"maxItems": 25,
"minItems": 1,
"description": "Existing Shopify cart line IDs with desired quantities; quantity 0 removes the line."
},
"remove_line_ids": {
"type": "array",
"items": {
"type": "string"
},
"maxItems": 25,
"minItems": 1,
"description": "Existing Shopify CartLine gids to remove explicitly."
}
},
"additionalProperties": false
},
"meta": {
"type": "object"
}
},
"additionalProperties": false
}No endpoints wrapped at confidence ≥ 0.70.
Parent server
Commonlands Optics: M12 Lens and C-Mount Lens Finder + Field-of-View Calculator
https://github.com/CommonlandsAbbe/commonlands-mcp
1/7 registries