Inventory

Stock history

inventory_history · Reads only · Markdown

Stock moves, newest first, of one item, at one location, of one kind, or in a period.

Free*

*Free up to 1,000,000 reads a month for the whole account, then $0.50 per 10,000 reads.

An example

Where did the black bistro chairs go this month?

Your agent callsinventory_historyFree*

The example business is Hansen & Voss, a restaurant-equipment wholesaler in Hamburg with 60 staff. The reply is the one the tool really gives.

With these arguments
{
  "sku": "CHAIR-BISTRO-BLACK",
  "from": "2026-10-01",
  "to": "2026-10-31"
}
What comes back
{
  "moves": [
    {
      "move_id": 4106,
      "date": "2026-10-14",
      "kind": "ship",
      "sku": "CHAIR-BISTRO-BLACK",
      "quantity": "-2",
      "from": "Main",
      "to": null,
      "unit_cost": "165",
      "value": "-330.00",
      "quantity_after": "6",
      "reference": "Order 1001",
      "note": null
    },
    {
      "move_id": 4103,
      "date": "2026-10-14",
      "kind": "receive",
      "sku": "CHAIR-BISTRO-BLACK",
      "quantity": "8",
      "from": null,
      "to": "Main",
      "unit_cost": "165",
      "value": "1320.00",
      "quantity_after": "8",
      "reference": "Delivery 40",
      "note": null
    }
  ],
  "total": 2
}

Use it when

Someone asks where stock went, or when it came in.

What it does

Moves newest first: of one item, at one location, of one kind, in a period.

What comes back

moves: newest first, each with its move_id, date, kind, SKU, quantity, from, to, unit cost, value, quantity after, reference and note; and the total. Every reply also carries cost_usd and balance_usd.

Inputs

NameTypeWhat it is
skustringThe item's SKU. 1 to 64 characters.
locationstringA location by name. Default: "Main" (made on first use). Up to 120 characters.
kindstringOne of: receive,ship,transfer,adjust,count.
fromstringYYYY-MM-DD. Matches ^\d{4}-\d{2}-\d{2}$.
tostringYYYY-MM-DD. Matches ^\d{4}-\d{2}-\d{2}$.
limitinteger1 to 500. Default: 100.
offsetintegerAt least 0. Default: 0.

The call

Over MCP, call inventory_history on https://api.conecto.chat/mcp/inventory. Over REST:

Terminal
curl -X POST https://api.conecto.chat/v1/tools/inventory_history \
  -H "Authorization: Bearer $CONECTO_KEY" \
  -H "Content-Type: application/json" \
  -d '{"sku":"CHAIR-BISTRO-BLACK","from":"2026-10-01","to":"2026-10-31"}'

When it refuses

A refused call costs nothing and says what to do next.

CodeWhenWhat to do
not_found404No location has that name.Call inventory_locations, or add it with inventory_save_location.
archived409The item or location is archived.Use another one, or name a location that is in use.
not_found404No item has that SKU.Find it with inventory_list_items.
invalid_input400A date is not a date like 2026-10-01.Fix the date.

Give this to your agent.

Set up Conecto from https://conecto.chat/SKILL.md