Skip to main content
Glama

Tanatasa Beauty

set_cart_item

DestructiveIdempotent

Add, change or remove one item in an existing cart. quantity is the total wanted (not an increment); 0 removes it. Send the cart's current version; the result has the new one and a fresh quote. If the version is stale, the error includes current_cart; if stock is short, it includes available_quantity and alternatives. Up to 20 variants and 99 of each.

Input Schema

NameRequiredDescriptionDefault
cart_idYescart_id from create_cart.
versionYesThe cart's current version, from the last cart result. Each edit increments it.
quantityYesThe total quantity wanted (not an increment); 0 removes the item.
variant_idYesvariant_id from search_products or get_product.
guest_tokenNoPrivate guest session token from create_cart. Retain for cart, checkout and purchase-status calls; no account login needed.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -{
      -  "anyOf": [
      -    {
      -      "$schema": "http://json-schema.org/draft-07/schema#",
      -      "additionalProperties": true,
      -      "properties": {
      -        "cart_id": {
      -          "type": "string"
      -        },
      -        "guest_token": {
      -          "type": "string"
      -        },
      -        "lines": {
      -          "items": {
      -            "additionalProperties": true,
      -            "properties": {
      -              "quantity": {
      -                "type": "integer"
      -              },
      -              "variant_id": {
      -                "type": "integer"
      -              }
      -            },
      -            "required": [
      -              "variant_id",
      -              "quantity"
      -            ],
      -            "type": "object"
      -          },
      -          "type": "array"
      -        },
      -        "next_action": {
      -          "type": "string"
      -        },
      -        "quote": {
      -          "anyOf": [
      -            {
      -              "additionalProperties": true,
      -              "properties": {
      -                "buyer_summary": {
      -                  "type": "string"
      -                },
      -                "cart_id": {
      -                  "type": "string"
      -                },
      -                "checkout_id": {
      -                  "type": [
      -                    "string",
      -                    "null"
      -                  ]
      -                },
      -                "coupon_code": {
      -                  "type": [
      -                    "string",
      -                    "null"
      -                  ]
      -                },
      -                "currency": {
      -                  "const": "SGD",
      -                  "type": "string"
      -                },
      -                "delivery_estimate": {
      -                  "additionalProperties": true,
      -                  "properties": {
      -                    "estimated_delivery_date": {
      -                      "description": "Estimated Singapore delivery date, YYYY-MM-DD; not a guarantee.",
      -                      "type": "string"
      -                    },
      -                    "working_days": {
      -                      "additionalProperties": true,
      -                      "properties": {
      -                        "max": {
      -                          "type": "integer"
      -                        },
      -                        "min": {
      -                          "type": "integer"
      -                        }
      -                      },
      -                      "required": [
      -                        "min",
      -                        "max"
      -                      ],
      -                      "type": "object"
      -                    }
      -                  },
      -                  "required": [
      -                    "working_days",
      -                    "estimated_delivery_date"
      -                  ],
      -                  "type": "object"
      -                },
      -                "discount": {
      -                  "description": "Integer SGD cents; 1690 means S$16.90.",
      -                  "minimum": 0,
      -                  "type": "integer"
      -                },
      -                "discounts": {
      -                  "items": {
      -                    "additionalProperties": true,
      -                    "properties": {
      -                      "amount": {
      -                        "description": "Integer SGD cents; 1690 means S$16.90.",
      -                        "minimum": 0,
      -                        "type": "integer"
      -                      },
      -                      "code": {
      -                        "type": "string"
      -                      },
      -                      "description": {
      -                        "type": "string"
      -                      }
      -                    },
      -                    "required": [
      -                      "code",
      -                      "amount",
      -                      "description"
      -                    ],
      -                    "type": "object"
      -                  },
      -                  "type": "array"
      -                },
      -                "free_delivery": {
      -                  "const": true,
      -                  "type": "boolean"
      -                },
      -                "lines": {
      -                  "items": {
      -                    "additionalProperties": true,
      -                    "properties": {
      -                      "available": {
      -                        "type": "boolean"
      -                      },
      -                      "brand": {
      -                        "type": [
      -                          "string",
      -                          "null"
      -                        ]
      -                      },
      -                      "compare_at_price": {
      -                        "anyOf": [
      -                          {
      -                            "description": "Integer SGD cents; 1690 means S$16.90.",
      -                            "minimum": 0,
      -                            "type": "integer"
      -                          },
      -                          {
      -                            "type": "null"
      -                          }
      -                        ],
      -                        "description": "Integer SGD cents; 1690 means S$16.90."
      -                      },
      -                      "condition": {
      -                        "type": "string"
      -                      },
      -                      "condition_label": {
      -                        "type": "string"
      -                      },
      -                      "currency": {
      -                        "const": "SGD",
      -                        "type": "string"
      -                      },
      -                      "delivery_working_days": {
      -                        "type": "integer"
      -                      },
      -                      "expiry": {
      -                        "type": [
      -                          "string",
      -                          "null"
      -                        ]
      -                      },
      -                      "fulfilment": {
      -                        "additionalProperties": true,
      -                        "properties": {
      -                          "code": {
      -                            "type": "string"
      -                          },
      -                          "label": {
      -                            "type": "string"
      -                          }
      -                        },
      -                        "required": [
      -                          "code",
      -                          "label"
      -                        ],
      -                        "type": "object"
      -                      },
      -                      "gtin": {
      -                        "type": [
      -                          "string",
      -                          "null"
      -                        ]
      -                      },
      -                      "image": {
      -                        "anyOf": [
      -                          {
      -                            "additionalProperties": true,
      -                            "properties": {
      -                              "alt": {
      -                                "type": [
      -                                  "string",
      -                                  "null"
      -                                ]
      -                              },
      -                              "height": {
      -                                "anyOf": [
      -                                  {
      -                                    "exclusiveMinimum": 0,
      -                                    "type": "integer"
      -                                  },
      -                                  {
      -                                    "type": "null"
      -                                  }
      -                                ]
      -                              },
      -                              "mime_type": {
      -                                "description": "MIME type inferred from the stored image URL extension; null when unknown.",
      -                                "type": [
      -                                  "string",
      -                                  "null"
      -                                ]
      -                              },
      -                              "url": {
      -                                "format": "uri",
      -                                "type": "string"
      -                              },
      -                              "width": {
      -                                "anyOf": [
      -                                  {
      -                                    "exclusiveMinimum": 0,
      -                                    "type": "integer"
      -                                  },
      -                                  {
      -                                    "type": "null"
      -                                  }
      -                                ]
      -                              }
      -                            },
      -                            "required": [
      -                              "url",
      -                              "alt",
      -                              "width",
      -                              "height",
      -                              "mime_type"
      -                            ],
      -                            "type": "object"
      -                          },
      -                          {
      -                            "type": "null"
      -                          }
      -                        ]
      -                      },
      -                      "image_url": {
      -                        "anyOf": [
      -                          {
      -                            "format": "uri",
      -                            "type": "string"
      -                          },
      -                          {
      -                            "type": "null"
      -                          }
      -                        ]
      -                      },
      -                      "line_total": {
      -                        "description": "Integer SGD cents; 1690 means S$16.90.",
      -                        "minimum": 0,
      -                        "type": "integer"
      -                      },
      -                      "max_quantity": {
      -                        "type": "integer"
      -                      },
      -                      "name": {
      -                        "type": "string"
      -                      },
      -                      "option_name": {
      -                        "type": "string"
      -                      },
      -                      "product_id": {
      -                        "type": "integer"
      -                      },
      -                      "product_name": {
      -                        "type": "string"
      -                      },
      -                      "quantity": {
      -                        "type": "integer"
      -                      },
      -                      "sku": {
      -                        "type": "string"
      -                      },
      -                      "slug": {
      -                        "type": "string"
      -                      },
      -                      "stock_source": {
      -                        "type": "string"
      -                      },
      -                      "tanatasa_pick": {
      -                        "type": "boolean"
      -                      },
      -                      "unit_price": {
      -                        "description": "Integer SGD cents; 1690 means S$16.90.",
      -                        "minimum": 0,
      -                        "type": "integer"
      -                      },
      -                      "unit_pricing": {
      -                        "anyOf": [
      -                          {
      -                            "additionalProperties": true,
      -                            "properties": {
      -                              "basis": {
      -                                "enum": [
      -                                  "ml",
      -                                  "g"
      -                                ],
      -                                "type": "string"
      -                              },
      -                              "per_100": {
      -                                "description": "Integer SGD cents; 1690 means S$16.90.",
      -                                "minimum": 0,
      -                                "type": "integer"
      -                              },
      -                              "per_1000": {
      -                                "description": "Integer SGD cents; 1690 means S$16.90.",
      -                                "minimum": 0,
      -                                "type": "integer"
      -                              },
      -                              "per_1000_label": {
      -                                "type": "string"
      -                              },
      -                              "per_100_label": {
      -                                "type": "string"
      -                              },
      -                              "total_quantity": {
      -                                "type": "number"
      -                              }
      -                            },
      -                            "required": [
      -                              "basis",
      -                              "total_quantity",
      -                              "per_100",
      -                              "per_1000",
      -                              "per_100_label",
      -                              "per_1000_label"
      -                            ],
      -                            "type": "object"
      -                          },
      -                          {
      -                            "type": "null"
      -                          }
      -                        ]
      -                      },
      -                      "url": {
      -                        "format": "uri",
      -                        "type": "string"
      -                      },
      -                      "variant_id": {
      -                        "type": "integer"
      -                      }
      -                    },
      -                    "required": [
      -                      "variant_id",
      -                      "product_id",
      -                      "slug",
      -                      "sku",
      -                      "name",
      -                      "option_name",
      -                      "product_name",
      -                      "brand",
      -                      "currency",
      -                      "unit_price",
      -                      "compare_at_price",
      -                      "available",
      -                      "max_quantity",
      -                      "url",
      -                      "image_url",
      -                      "image",
      -                      "gtin",
      -                      "condition",
      -                      "condition_label",
      -                      "expiry",
      -                      "stock_source",
      -                      "fulfilment",
      -                      "tanatasa_pick",
      -                      "unit_pricing",
      -                      "quantity",
      -                      "line_total",
      -                      "delivery_working_days"
      -                    ],
      -                    "type": "object"
      -                  },
      -                  "type": "array"
      -                },
      -                "money_unit": {
      -                  "const": "cents",
      -                  "type": "string"
      -                },
      -                "next_action": {
      -                  "type": "string"
      -                },
      -                "quoted_at": {
      -                  "format": "date-time",
      -                  "type": "string"
      -                },
      -                "return_policy": {
      -                  "additionalProperties": true,
      -                  "properties": {
      -                    "condition": {
      -                      "type": "string"
      -                    },
      -                    "policy_url": {
      -                      "format": "uri",
      -                      "type": "string"
      -                    },
      -                    "summary": {
      -                      "type": "string"
      -                    },
      -                    "window_days": {
      -                      "type": "integer"
      -                    }
      -                  },
      -                  "required": [
      -                    "window_days",
      -                    "condition",
      -                    "summary",
      -                    "policy_url"
      -                  ],
      -                  "type": "object"
      -                },
      -                "shipping": {
      -                  "description": "Integer SGD cents; 1690 means S$16.90.",
      -                  "minimum": 0,
      -                  "type": "integer"
      -                },
      -                "stock_reserved": {
      -                  "const": false,
      -                  "type": "boolean"
      -                },
      -                "subtotal": {
      -                  "description": "Integer SGD cents; 1690 means S$16.90.",
      -                  "minimum": 0,
      -                  "type": "integer"
      -                },
      -                "total": {
      -                  "description": "Integer SGD cents; 1690 means S$16.90.",
      -                  "minimum": 0,
      -                  "type": "integer"
      -                },
      -                "version": {
      -                  "type": "integer"
      -                }
      -              },
      -              "required": [
      -                "currency",
      -                "money_unit",
      -                "cart_id",
      -                "version",
      -                "lines",
      -                "coupon_code",
      -                "discounts",
      -                "subtotal",
      -                "discount",
      -                "shipping",
      -                "free_delivery",
      -                "total",
      -                "checkout_id",
      -                "stock_reserved",
      -                "quoted_at",
      -                "delivery_estimate",
      -                "return_policy",
      -                "buyer_summary",
      -                "next_action"
      -              ],
      -              "type": "object"
      -            },
      -            {
      -              "type": "null"
      -            }
      -          ]
      -        },
      -        "version": {
      -          "type": "integer"
      -        }
      -      },
      -      "required": [
      -        "cart_id",
      -        "version",
      -        "lines",
      -        "quote",
      -        "next_action"
      -      ],
      -      "type": "object"
      -    },
      -    {
      -      "additionalProperties": true,
      -      "properties": {
      -        "error": {
      -          "additionalProperties": true,
      -          "properties": {
      -            "code": {
      -              "type": "string"
      -            },
      -            "message": {
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "code",
      -            "message"
      -          ],
      -          "type": "object"
      -        }
      -      },
      -      "required": [
      -        "error"
      -      ],
      -      "type": "object"
      -    }
      -  ],
      -  "type": "object"
      -}New value: +null
  2. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "anyOf": [
      +    {
      +      "$schema": "http://json-schema.org/draft-07/schema#",
      +      "additionalProperties": true,
      +      "properties": {
      +        "cart_id": {
      +          "type": "string"
      +        },
      +        "guest_token": {
      +          "type": "string"
      +        },
      +        "lines": {
      +          "items": {
      +            "additionalProperties": true,
      +            "properties": {
      +              "quantity": {
      +                "type": "integer"
      +              },
      +              "variant_id": {
      +                "type": "integer"
      +              }
      +            },
      +            "required": [
      +              "variant_id",
      +              "quantity"
      +            ],
      +            "type": "object"
      +          },
      +          "type": "array"
      +        },
      +        "next_action": {
      +          "type": "string"
      +        },
      +        "quote": {
      +          "anyOf": [
      +            {
      +              "additionalProperties": true,
      +              "properties": {
      +                "buyer_summary": {
      +                  "type": "string"
      +                },
      +                "cart_id": {
      +                  "type": "string"
      +                },
      +                "checkout_id": {
      +                  "type": [
      +                    "string",
      +                    "null"
      +                  ]
      +                },
      +                "coupon_code": {
      +                  "type": [
      +                    "string",
      +                    "null"
      +                  ]
      +                },
      +                "currency": {
      +                  "const": "SGD",
      +                  "type": "string"
      +                },
      +                "delivery_estimate": {
      +                  "additionalProperties": true,
      +                  "properties": {
      +                    "estimated_delivery_date": {
      +                      "description": "Estimated Singapore delivery date, YYYY-MM-DD; not a guarantee.",
      +                      "type": "string"
      +                    },
      +                    "working_days": {
      +                      "additionalProperties": true,
      +                      "properties": {
      +                        "max": {
      +                          "type": "integer"
      +                        },
      +                        "min": {
      +                          "type": "integer"
      +                        }
      +                      },
      +                      "required": [
      +                        "min",
      +                        "max"
      +                      ],
      +                      "type": "object"
      +                    }
      +                  },
      +                  "required": [
      +                    "working_days",
      +                    "estimated_delivery_date"
      +                  ],
      +                  "type": "object"
      +                },
      +                "discount": {
      +                  "description": "Integer SGD cents; 1690 means S$16.90.",
      +                  "minimum": 0,
      +                  "type": "integer"
      +                },
      +                "discounts": {
      +                  "items": {
      +                    "additionalProperties": true,
      +                    "properties": {
      +                      "amount": {
      +                        "description": "Integer SGD cents; 1690 means S$16.90.",
      +                        "minimum": 0,
      +                        "type": "integer"
      +                      },
      +                      "code": {
      +                        "type": "string"
      +                      },
      +                      "description": {
      +                        "type": "string"
      +                      }
      +                    },
      +                    "required": [
      +                      "code",
      +                      "amount",
      +                      "description"
      +                    ],
      +                    "type": "object"
      +                  },
      +                  "type": "array"
      +                },
      +                "free_delivery": {
      +                  "const": true,
      +                  "type": "boolean"
      +                },
      +                "lines": {
      +                  "items": {
      +                    "additionalProperties": true,
      +                    "properties": {
      +                      "available": {
      +                        "type": "boolean"
      +                      },
      +                      "brand": {
      +                        "type": [
      +                          "string",
      +                          "null"
      +                        ]
      +                      },
      +                      "compare_at_price": {
      +                        "anyOf": [
      +                          {
      +                            "description": "Integer SGD cents; 1690 means S$16.90.",
      +                            "minimum": 0,
      +                            "type": "integer"
      +                          },
      +                          {
      +                            "type": "null"
      +                          }
      +                        ],
      +                        "description": "Integer SGD cents; 1690 means S$16.90."
      +                      },
      +                      "condition": {
      +                        "type": "string"
      +                      },
      +                      "condition_label": {
      +                        "type": "string"
      +                      },
      +                      "currency": {
      +                        "const": "SGD",
      +                        "type": "string"
      +                      },
      +                      "delivery_working_days": {
      +                        "type": "integer"
      +                      },
      +                      "expiry": {
      +                        "type": [
      +                          "string",
      +                          "null"
      +                        ]
      +                      },
      +                      "fulfilment": {
      +                        "additionalProperties": true,
      +                        "properties": {
      +                          "code": {
      +                            "type": "string"
      +                          },
      +                          "label": {
      +                            "type": "string"
      +                          }
      +                        },
      +                        "required": [
      +                          "code",
      +                          "label"
      +                        ],
      +                        "type": "object"
      +                      },
      +                      "gtin": {
      +                        "type": [
      +                          "string",
      +                          "null"
      +                        ]
      +                      },
      +                      "image": {
      +                        "anyOf": [
      +                          {
      +                            "additionalProperties": true,
      +                            "properties": {
      +                              "alt": {
      +                                "type": [
      +                                  "string",
      +                                  "null"
      +                                ]
      +                              },
      +                              "height": {
      +                                "anyOf": [
      +                                  {
      +                                    "exclusiveMinimum": 0,
      +                                    "type": "integer"
      +                                  },
      +                                  {
      +                                    "type": "null"
      +                                  }
      +                                ]
      +                              },
      +                              "mime_type": {
      +                                "description": "MIME type inferred from the stored image URL extension; null when unknown.",
      +                                "type": [
      +                                  "string",
      +                                  "null"
      +                                ]
      +                              },
      +                              "url": {
      +                                "format": "uri",
      +                                "type": "string"
      +                              },
      +                              "width": {
      +                                "anyOf": [
      +                                  {
      +                                    "exclusiveMinimum": 0,
      +                                    "type": "integer"
      +                                  },
      +                                  {
      +                                    "type": "null"
      +                                  }
      +                                ]
      +                              }
      +                            },
      +                            "required": [
      +                              "url",
      +                              "alt",
      +                              "width",
      +                              "height",
      +                              "mime_type"
      +                            ],
      +                            "type": "object"
      +                          },
      +                          {
      +                            "type": "null"
      +                          }
      +                        ]
      +                      },
      +                      "image_url": {
      +                        "anyOf": [
      +                          {
      +                            "format": "uri",
      +                            "type": "string"
      +                          },
      +                          {
      +                            "type": "null"
      +                          }
      +                        ]
      +                      },
      +                      "line_total": {
      +                        "description": "Integer SGD cents; 1690 means S$16.90.",
      +                        "minimum": 0,
      +                        "type": "integer"
      +                      },
      +                      "max_quantity": {
      +                        "type": "integer"
      +                      },
      +                      "name": {
      +                        "type": "string"
      +                      },
      +                      "option_name": {
      +                        "type": "string"
      +                      },
      +                      "product_id": {
      +                        "type": "integer"
      +                      },
      +                      "product_name": {
      +                        "type": "string"
      +                      },
      +                      "quantity": {
      +                        "type": "integer"
      +                      },
      +                      "sku": {
      +                        "type": "string"
      +                      },
      +                      "slug": {
      +                        "type": "string"
      +                      },
      +                      "stock_source": {
      +                        "type": "string"
      +                      },
      +                      "tanatasa_pick": {
      +                        "type": "boolean"
      +                      },
      +                      "unit_price": {
      +                        "description": "Integer SGD cents; 1690 means S$16.90.",
      +                        "minimum": 0,
      +                        "type": "integer"
      +                      },
      +                      "unit_pricing": {
      +                        "anyOf": [
      +                          {
      +                            "additionalProperties": true,
      +                            "properties": {
      +                              "basis": {
      +                                "enum": [
      +                                  "ml",
      +                                  "g"
      +                                ],
      +                                "type": "string"
      +                              },
      +                              "per_100": {
      +                                "description": "Integer SGD cents; 1690 means S$16.90.",
      +                                "minimum": 0,
      +                                "type": "integer"
      +                              },
      +                              "per_1000": {
      +                                "description": "Integer SGD cents; 1690 means S$16.90.",
      +                                "minimum": 0,
      +                                "type": "integer"
      +                              },
      +                              "per_1000_label": {
      +                                "type": "string"
      +                              },
      +                              "per_100_label": {
      +                                "type": "string"
      +                              },
      +                              "total_quantity": {
      +                                "type": "number"
      +                              }
      +                            },
      +                            "required": [
      +                              "basis",
      +                              "total_quantity",
      +                              "per_100",
      +                              "per_1000",
      +                              "per_100_label",
      +                              "per_1000_label"
      +                            ],
      +                            "type": "object"
      +                          },
      +                          {
      +                            "type": "null"
      +                          }
      +                        ]
      +                      },
      +                      "url": {
      +                        "format": "uri",
      +                        "type": "string"
      +                      },
      +                      "variant_id": {
      +                        "type": "integer"
      +                      }
      +                    },
      +                    "required": [
      +                      "variant_id",
      +                      "product_id",
      +                      "slug",
      +                      "sku",
      +                      "name",
      +                      "option_name",
      +                      "product_name",
      +                      "brand",
      +                      "currency",
      +                      "unit_price",
      +                      "compare_at_price",
      +                      "available",
      +                      "max_quantity",
      +                      "url",
      +                      "image_url",
      +                      "image",
      +                      "gtin",
      +                      "condition",
      +                      "condition_label",
      +                      "expiry",
      +                      "stock_source",
      +                      "fulfilment",
      +                      "tanatasa_pick",
      +                      "unit_pricing",
      +                      "quantity",
      +                      "line_total",
      +                      "delivery_working_days"
      +                    ],
      +                    "type": "object"
      +                  },
      +                  "type": "array"
      +                },
      +                "money_unit": {
      +                  "const": "cents",
      +                  "type": "string"
      +                },
      +                "next_action": {
      +                  "type": "string"
      +                },
      +                "quoted_at": {
      +                  "format": "date-time",
      +                  "type": "string"
      +                },
      +                "return_policy": {
      +                  "additionalProperties": true,
      +                  "properties": {
      +                    "condition": {
      +                      "type": "string"
      +                    },
      +                    "policy_url": {
      +                      "format": "uri",
      +                      "type": "string"
      +                    },
      +                    "summary": {
      +                      "type": "string"
      +                    },
      +                    "window_days": {
      +                      "type": "integer"
      +                    }
      +                  },
      +                  "required": [
      +                    "window_days",
      +                    "condition",
      +                    "summary",
      +                    "policy_url"
      +                  ],
      +                  "type": "object"
      +                },
      +                "shipping": {
      +                  "description": "Integer SGD cents; 1690 means S$16.90.",
      +                  "minimum": 0,
      +                  "type": "integer"
      +                },
      +                "stock_reserved": {
      +                  "const": false,
      +                  "type": "boolean"
      +                },
      +                "subtotal": {
      +                  "description": "Integer SGD cents; 1690 means S$16.90.",
      +                  "minimum": 0,
      +                  "type": "integer"
      +                },
      +                "total": {
      +                  "description": "Integer SGD cents; 1690 means S$16.90.",
      +                  "minimum": 0,
      +                  "type": "integer"
      +                },
      +                "version": {
      +                  "type": "integer"
      +                }
      +              },
      +              "required": [
      +                "currency",
      +                "money_unit",
      +                "cart_id",
      +                "version",
      +                "lines",
      +                "coupon_code",
      +                "discounts",
      +                "subtotal",
      +                "discount",
      +                "shipping",
      +                "free_delivery",
      +                "total",
      +                "checkout_id",
      +                "stock_reserved",
      +                "quoted_at",
      +                "delivery_estimate",
      +                "return_policy",
      +                "buyer_summary",
      +                "next_action"
      +              ],
      +              "type": "object"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ]
      +        },
      +        "version": {
      +          "type": "integer"
      +        }
      +      },
      +      "required": [
      +        "cart_id",
      +        "version",
      +        "lines",
      +        "quote",
      +        "next_action"
      +      ],
      +      "type": "object"
      +    },
      +    {
      +      "additionalProperties": true,
      +      "properties": {
      +        "error": {
      +          "additionalProperties": true,
      +          "properties": {
      +            "code": {
      +              "type": "string"
      +            },
      +            "message": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "code",
      +            "message"
      +          ],
      +          "type": "object"
      +        }
      +      },
      +      "required": [
      +        "error"
      +      ],
      +      "type": "object"
      +    }
      +  ],
      +  "type": "object"
      +}
  3. Changed4 schema fields changed
    • addedInput schema / properties / cart_id / description
      Added value: +"cart_id from create_cart."
    • addedInput schema / properties / quantity / description
      Added value: +"The total quantity wanted (not an increment); 0 removes the item."
    • addedInput schema / properties / variant_id / description
      Added value: +"variant_id from search_products or get_product."
    • addedInput schema / properties / version / description
      Added value: +"The cart's current version, from the last cart result. Each edit increments it."
  4. Changed1 schema field changed
    • addedInput schema / properties / guest_token
      Added value: +{
      +  "description": "Private guest session token from create_cart. Retain for cart, checkout and purchase-status calls; no account login needed.",
      +  "pattern": "^[a-f0-9]{64}$",
      +  "type": "string"
      +}
  5. Changed1 schema field changed
    • removedInput schema / properties / guest_token
      Removed value: -{
      -  "description": "Private guest session token from create_cart. Retain for cart, checkout and purchase-status calls; no account login needed.",
      -  "pattern": "^[a-f0-9]{64}$",
      -  "type": "string"
      -}
  6. First observed

TDQS

A4.1/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Goes well beyond the annotations: it settles the set-vs-increment semantics (supporting idempotentHint), states exactly what a successful call returns (new version + fresh quote), and documents two distinct error payloads with their recovery fields (current_cart; available_quantity and alternatives). The 20-variant / 99-per-item limits are an extra operational constraint not fully expressed in the annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Five short sentences, zero filler, front-loaded with the core action and then ordered by what an agent hits next: semantics, prerequisite, return, failure modes, limits. Nothing repeats the annotations verbatim.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

No output schema exists, and the description compensates by describing the return payload and both error shapes. Combined with the schema's parameter docs, an agent has everything needed to call it and to handle the two likely failures.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the schema already documents all five parameters, including the total-not-increment quantity rule and where cart_id/variant_id come from. The description largely restates the quantity and version semantics; its only genuinely additive parameter insight is the stale-version error contract.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The definition names a specific resource (one item in an existing cart) and covers all three modes -- add, change, remove -- in a single verb set. 'Existing cart' implicitly distinguishes it from create_cart, but no sibling is named explicitly.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied rather than stated: it must be an existing cart and you must supply the current version, and the return of a 'fresh quote' hints that a separate quote_cart call is unnecessary. There is no explicit when-to-use / when-not / use-alternative routing an agent can pattern-match on.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources