Inventory overview
inventory_overviewThe shape of the whole inventory in one call: the category tree with an item count on every node (each count covers the node's whole subtree), statusCounts per condition (available | in_repair | defect | lost | retired), and assignedToMe, how many items the connected user holds, and the first few of them in assignedItems. It answers "what do we own?", "how many X do we have?" (the count on X's node, no paging through search_items) and "what is broken?". myPersonId is the person RECORD behind the connected login, which is what "me" means in search_items and assign_item. Every number is org-wide and counts published items only; the connected user's own unfinished captures are the separate draftCount. A categoryId from the tree is the search_items filter for the items behind a count.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "inventory_overview"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| listUrl | No | Link to the full item list in the web app | |
| categories | No | The category tree, top level first, with a subtree count on every node | |
| draftCount | No | The connected user's own unreviewed captures (drafts are personal) | |
| myPersonId | No | The person record behind the connected user's login account — what "me" resolves to in search_items and assign_item. null when no person is linked | |
| totalItems | No | Published items in the org | |
| assignedToMe | No | How many items the connected user holds. null when no person is linked | |
| statusCounts | No | Item count per condition, keyed by status: available | in_repair | defect | lost | retired. This answers "what's broken?" | |
| assignedItems | No | The first few items the connected user holds (search_items with currentHolderId "me" lists all) | |
| incompleteCount | No | Items missing a required field |