Add parts to a Mouser cart
add_to_cartAdds Mouser parts to a cart, creating a new cart when no cart key is supplied and returning the key; it does not place an order.
Instructions
Adds parts to a Mouser cart. Omit cartKey to start a new cart; the returned cartKey identifies it. Does not place an order.
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": {
"items": "<items>"
},
"name": "add_to_cart"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | ||
| cartKey | No | Mouser cart key. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | ||
| cartKey | No | ||
| currency | No | ||
| itemCount | No | ||
| merchandiseTotal | No |