Adjust_inventory
Update inventory by adjusting the current on-hand quantity with a specified amount, ensuring total stock stays below 100,000 units.
Instructions
API for updating inventory by adjusting the inventory amount from the current inventory on hand.
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": {
"id": "<id>",
"amount": "<amount>"
},
"name": "Adjust_inventory"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Inventory ID | |
| amount | Yes | Amount must greater than or equal to 0 and less than 100,000 (0 <= amount + availableNumber < 100,000) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| availableNumber | No | Quantity that is available and display on the storefront (Exclude ‘Reserved’ and ‘Ready to ship’ status) | |
| onHandAmount | No | Quantity in stock (Include ‘Reserved’ and ‘Ready to ship’ status) | |
| readyToShipAmount | No | Quantity that customers complete payment and wait to ship | |
| reservedAmount | No | Quantity that customers do not complete payment |