set_inventory
Set an inventory item's available quantity to an exact number at a specified location, with an optional reason for the adjustment.
Instructions
Set inventory to an exact quantity
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": {
"inventoryItemId": "<inventoryItemId>",
"locationId": "<locationId>",
"available": "<available>"
},
"name": "set_inventory"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reason | No | Reason for adjustment | |
| available | Yes | Exact quantity to set | |
| locationId | Yes | Location ID | |
| inventoryItemId | Yes | Inventory item ID |