ERP: Stock adjust
erp_stock_adjustAdd to or write off the stock of ONE catalog item: 'delta' is the change in the item's base unit (positive = arrived / found, negative = written off / damaged / used). 'item' is the item's number (SKU) or its name as in the catalog (or its id); when it matches several items the call is refused with the candidates — ask the person which one, never guess. 'warehouse' only when the company has several. 'reason' goes to the stock history. Proposed write: the person confirms a line naming the item, the warehouse and before → after. For goods from a supplier's invoice use purchase_invoice_receive instead. CONFIRMATION: this tool is PROPOSED, never performed directly. You get status='confirmation_required' with an action_id and a plan_token, and the write happens only after confirm_action.
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": "<item>",
"delta": "<delta>"
},
"name": "erp_stock_adjust"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| item | Yes | ||
| delta | Yes | + added, − taken away (base unit). | |
| reason | No | ||
| warehouse | No |