You're viewing a demo portfolio

Join the waitlist
PRSM

set_cart_quantity

Active

Tool of Synchronity

declared in 0.2.0

Set a cart line's quantity (the server cart is the checkout source of truth, so this updates it live). Requires the item_id from the cart contents and the new absolute quantity. A quantity of 0 removes the line. Returns the updated cart card.

Parameters schema

{
  "type": "object",
  "required": [
    "site_id",
    "cart_id",
    "item_id",
    "quantity"
  ],
  "properties": {
    "cart_id": {
      "type": "string",
      "description": "Cart ID"
    },
    "item_id": {
      "type": "string",
      "description": "Line item ID from the cart (cart.items[].item_id)"
    },
    "site_id": {
      "type": "string",
      "description": "Registered site ID"
    },
    "quantity": {
      "type": "integer",
      "description": "New absolute quantity for the line (>= 0; 0 removes the line)"
    }
  }
}

What this tool wraps· 0 endpoints

min confidence0.700.50

No endpoints wrapped at confidence ≥ 0.70.

Parent server

Synchronity

https://github.com/themewireco/synchronity

2/7 registries
View full server →
set_cart_quantity — Synchronity — PRSM MCP