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.
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>",
"quantityChange": "<quantityChange>"
},
"name": "adjust_stock"
}
}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. |