You're viewing a demo portfolio

Join the waitlist
PRSM

add_to_cart

Active

Tool of Synchronity

declared in 0.2.0

Add a product variant (or base product) to an existing cart. Reuse the active cart_id from the chat history if one already exists. Only call create_cart first if no cart exists yet.

Parameters schema

{
  "type": "object",
  "required": [
    "site_id"
  ],
  "properties": {
    "email": {
      "type": "string",
      "description": "Buyer email; arms a back-in-stock alert for any out-of-stock item in items[]."
    },
    "items": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "product_id",
          "quantity"
        ],
        "properties": {
          "addons": {
            "type": "object"
          },
          "quantity": {
            "type": "integer"
          },
          "product_id": {
            "type": "string"
          },
          "variant_id": {
            "type": "string"
          }
        }
      },
      "description": "Add several products in ONE call instead of calling this tool repeatedly. Each entry: { product_id, quantity, variant_id?, addons? }. Out-of-stock items are reported; pass `email` to auto-arm a back-in-stock alert for them."
    },
    "addons": {
      "type": "object",
      "description": "Selected product add-ons as a map of addon_id -> chosen value(s). For select/radio/boolean pass a single value; for checkbox/multi pass an array; for text/number pass the value. Values for choice add-ons MUST come from the product's addons[].options[].value. Collect any addon with required:true before checkout."
    },
    "cart_id": {
      "type": "string",
      "description": "Cart ID to add the product to"
    },
    "site_id": {
      "type": "string",
      "description": "Registered site ID"
    },
    "quantity": {
      "type": "integer",
      "description": "Quantity to add (must be >= 1)"
    },
    "product_id": {
      "type": "string",
      "description": "Product ID to add"
    },
    "variant_id": {
      "type": "string",
      "description": "Optional product variant ID (e.g., for size/color selection)"
    }
  }
}

What this tool wraps· 0 endpoints

min confidence0.700.50

No endpoints wrapped at confidence ≥ 0.50.

Parent server

Synchronity

https://github.com/themewireco/synchronity

2/7 registries
View full server →