add_to_cart
Add a specified quantity of a Mouser part number to an existing shopping cart, updating the quantity if the part is already present.
Instructions
Add an item to an existing shopping cart.
Adds a single part to the cart with the specified quantity. If the part already exists in the cart, the quantity will be updated.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"cart_key": "<cart_key>",
"mouser_part_number": "<mouser_part_number>",
"quantity": "<quantity>"
},
"name": "add_to_cart"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cart_key | Yes | Unique cart identifier (UUID format) | |
| quantity | Yes | Quantity to add (must be positive integer) | |
| mouser_part_number | Yes | Mouser part number to add | |
| customer_part_number | No | Optional customer reference number |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||