addToCart
Add one exact catalogue part to an agent cart. Pass exactly one of part_id or part_number (server enforces). part_number must match exactly — for substitutes call searchPartsByNumber then pass part_id. Prefer checkFitment first. Write tool.
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_token": "<cart_token>"
},
"name": "addToCart"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| brand | No | Optional brand of part_number when several brands share the number, e.g. MAGNETI MARELLI. Prefer part_id from the search. | |
| country | No | ISO 3166-1 alpha-2 country code, uppercase, for example LT. | |
| part_id | No | Internal product id. Pass this or part_number, not both. | |
| quantity | No | How many units to add. | |
| cart_token | Yes | Cart token from createCart. Required on every later cart call. | |
| part_number | No | Manufacturer part number. Pass this or part_id, not both. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | Present when the call failed. The HTTP status stays 200. |