adjust_stock
Update product stock quantities with a positive or negative change, attach a reason, and automatically log the stock movement.
Instructions
Adjust physical stock quantity for a product (+/- change) with an audit reason (e.g. 'purchase', 'damage', 'adjustment', 'return'). Automatically records a stock movement.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Product UUID (required). | |
| note | No | Optional audit note for the stock adjustment. | |
| reason | No | Reason: 'purchase', 'sale', 'adjustment', 'damage', 'return'. | |
| quantityChange | Yes | Quantity change (e.g. +10 to add stock, -3 for damaged goods). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | Result data payload from Chirak API. | |
| success | No | Status of the tool execution. |