set_stock
Reconcile stock by setting a non-serialized item's on-hand quantity to an absolute value, recording the reason for audit trail.
Instructions
Set a NON-serialized item's on-hand qty to an absolute value via Stock Reconciliation (physical count / write-off). reason is recorded in the audit trail. confirm=true.
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": {
"item_code": "<item_code>",
"new_qty": "<new_qty>"
},
"name": "set_stock"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reason | No | ||
| confirm | No | ||
| new_qty | Yes | ||
| item_code | Yes | ||
| warehouse | No |