Count a location
Records a count of one location; each difference from the books becomes a count move.
$0.002 per line counted
From your agent’s balance. A call that fails costs nothing.
An example
We counted the test kitchen: 4 combi steamers, 6 beech bistro chairs and 3 work tables.
Your agent callsinventory_stocktake$0.002 per line counted
The example business is Hansen & Voss, a restaurant-equipment wholesaler in Hamburg with 60 staff. The reply is the one the tool really gives.
{
"location": "Test kitchen",
"note": "Monthly count, October",
"counts": [
{
"sku": "STEAMER-CS10",
"counted": 4
},
{
"sku": "CHAIR-BISTRO-BEECH",
"counted": 6
},
{
"sku": "TABLE-SS-160",
"counted": 3
}
]
}Use it when
Stock was counted, at a month end or after a move.
What it does
Record a count of one location: each difference from what the moves left there becomes a count move (found stock comes in at the moving average, missing stock leaves at it), so the stock matches what was counted. With full: true, items held there but left out of counts were not found (counted 0).
What comes back
The stocktake_id, location and date, a line per item with what was expected, counted, the difference and its value, and how many differences there were. Every reply also carries cost_usd and balance_usd.
Inputs
| Name | Type | What it is |
|---|---|---|
location | string | A location by name. Default: "Main" (made on first use). Up to 120 characters. |
countsRequired | array of objects | 1 to 1000 items. |
counts[].skuRequired | string | The item's SKU. 1 to 64 characters. |
counts[].countedRequired | number or string | Up to 24 characters. |
full | boolean | Default: false. |
note | string | Up to 500 characters. |
date | string | YYYY-MM-DD. Matches ^\d{4}-\d{2}-\d{2}$. |
The call
Over MCP, call inventory_stocktake on https://api.conecto.chat/mcp/inventory. Over REST:
curl -X POST https://api.conecto.chat/v1/tools/inventory_stocktake \
-H "Authorization: Bearer $CONECTO_KEY" \
-H "Content-Type: application/json" \
-d '{"location":"Test kitchen","note":"Monthly count, October","counts":[{"sku":"STEAMER-CS10","counted":4},{"sku":"CHAIR-BISTRO-BEECH","counted":6},{"sku":"TABLE-SS-160","counted":3}]}'When it refuses
A refused call costs nothing and says what to do next.
| Code | When | What to do |
|---|---|---|
invalid_input400 | A quantity, cost or date is not valid. | Send numbers like 140.00 (a dot for decimals) and dates that have passed, like 2026-10-14. |
not_enough_stock409 | Stock would go below 0 at a location. | Ship or move less; the message says how much there is. |
not_found404 | No location has that name. | Call inventory_locations, or add it with inventory_save_location. |
archived409 | The item or location is archived. | Use another one, or name a location that is in use. |
not_found404 | No item has a SKU that was counted. | Add it with inventory_save_items first. |
More Inventory tools
All 10 tools- Add or change items
inventory_save_itemsAdds stock items or changes them by SKU: name, unit, barcode, cost, price and reorder point.$0.005 per item saved - List items
inventory_list_itemsItems with their stock in total and per location, the moving-average cost and the value.Free* - Move stock
inventory_moveChanges stock, all moves or none: receive, ship, transfer between locations, or adjust.$0.005 per move - Stock history
inventory_historyStock moves, newest first, of one item, at one location, of one kind, or in a period.Free* - List locations
inventory_locationsEvery location with how many items it holds and their value.Free* - Add or change a location
inventory_save_locationAdds a location (a warehouse, a shop, a van), or renames, describes or archives one.$0.001 a call - Run an inventory report
inventory_reportValuation (what was held on a day and its value), movement (per item in a period, with the cost of goods shipped) or low stock.Free* - Import items from CSV
inventory_importCreates or changes items from a CSV in the file store, with optional quantities per location; all rows or none.$0.001 per row imported
Give this to your agent.
Set up Conecto from https://conecto.chat/SKILL.md