Record a count
inv_count_stockWhat was counted on the shelf for one item. The difference from the record becomes a count move, valued at the average cost. Record what the person counted, never what you expect. A count needs a reason, said plainly ("three damaged in the move", "yearly count"). When the count matches the record nothing moves, and that is worth saying too. A difference is valued at the average cost of that moment and posts to Inventory Adjustments: the accountant sees it as shrinkage or a gain, never hidden in cost of sales. Effects: count recorded; the difference moves stock through core.
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_id": "<item_id>",
"counted": "<counted>",
"reason": "<reason>"
},
"name": "inv_count_stock"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reason | Yes | Why it was counted, or why it differs. | |
| counted | Yes | How many are on the shelf, as counted. | |
| item_id | Yes | The item counted. An existing item id. | |
| counted_at | No | The day it was counted. Defaults to today. ISO date, YYYY-MM-DD. |