set-inventory
Overwrites the current stock quantity for an inventory item at a specific location with an exact value. Use it to correct or reconcile location inventory counts.
Instructions
Set inventory to a specific quantity at a location. This replaces the current quantity rather than adjusting it.
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>",
"quantity": "<quantity>"
},
"name": "set-inventory"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reason | No | correction | |
| quantity | Yes | New quantity to set | |
| locationId | Yes | Location ID | |
| inventoryItemId | Yes | Inventory item ID |