set_basket_quantity
Define the precise number of units for a product in your basket. Adjust quantities, add items, or remove them entirely before completing your order.
Instructions
Set how many units of a product the basket should contain.
The quantity is absolute, not a delta. It is the number of units to end up with, so setting 2 on a line that currently holds 5 removes 3 of them, and setting 0 removes the product entirely. To add to a line that may already exist, read its current Quantity with get_basket and pass the new total.
This changes the user's real basket on nemlig.com. It does not place an order or charge anything -- the user completes checkout themselves.
Args: product_id: Product Id from search_products, e.g. "5070417". quantity: Units the basket should end up with. 0 removes the product.
Returns: The updated basket, with addresses redacted.
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": {
"product_id": "<product_id>"
},
"name": "set_basket_quantity"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| quantity | No | ||
| product_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||