Decrease an item's quantity
decrement_item_quantityDecreases the quantity of a specific item in a LighterPack packing list, preventing negative values by flooring at zero.
Instructions
Decreases quantity, floored at 0 (never negative).
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": {
"categoryId": "<categoryId>",
"itemId": "<itemId>"
},
"name": "decrement_item_quantity"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| by | No | ||
| itemId | Yes | ||
| categoryId | Yes |