add_to_cart
Add a product to an existing cart by providing cart ID, product ID, and optional quantity. Validates product availability and returns the updated cart.
Instructions
Add a product to an existing cart.
Args: cart_id: The cart identifier (e.g. "crt_..."). product_id: The product identifier (e.g. "prod_001"). quantity: Number of units to add (default 1).
Validates that the product exists and has sufficient inventory. Returns the updated UCP cart, or an error message on failure.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cart_id | Yes | ||
| quantity | No | ||
| product_id | Yes |