Search items
search_itemsSearch inventory items. search matches exact item codes and barcode labels first (e.g. "BM-002" printed on an asset tag), then names: word-prefix ("Lap" matches all laptops) plus an accent-insensitive substring pass ("stuhl" finds "Stühle" and "Bürostuhl"). The query is never shortened, so "Stühle" does not find "Bürostuhl": a shorter stem matches more. An empty result [] means no match. Filters, combinable with search and with each other: currentHolderId (a person resource id, or "me" for the connected user), categoryId, currentLocationId, status. categoryId and currentLocationId include the whole subtree by default (a top-level category returns its subcategories' items, a building its rooms' items); categoryMatch / currentLocationMatch "exact" limits the match to that node. Every non-draft item has a category; inventory_overview returns the category tree and list_resources the location and people trees whose node ids these filters take. No arguments lists the newest items. In results, status is the item's CONDITION (available = not defect/lost/retired), so an available item may still be borrowed (currentHolder). A row without trackingMode is one physical item; a "quantity" row is a stock pool whose count is quantity. primaryCode is the code printed on the asset tag, the one way to tell two identical models apart. webUrl / listUrl open the record and the filtered list in the web app. Rows carry no photo: get_item (one item) and show_items (a picker of several) return photos. Drafts (unreviewed captures, isDraft) are personal: results include only the connected user's own drafts, never another user's (admins included), not even by exact code or id.
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": "search_items"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | 0-based page index | |
| search | No | Item code (exact match, e.g. BM-002) or name words (word-prefix plus accent-insensitive substring) | |
| status | No | Filter by condition. "available" means not defect/lost/retired — the item may still be borrowed. | |
| pageSize | No | Items per page, max 50 (default 20) | |
| categoryId | No | Filter by category id. Includes the whole subtree by default — see categoryMatch | |
| categoryMatch | No | How categoryId matches. "subtree" (default) = that category AND all its subcategories, which is almost always what a person means. "exact" = only items filed directly on that category | |
| currentHolderId | No | Filter by current holder: a person resource id, or the literal "me" for the connected user | |
| currentLocationId | No | Filter by current location: a location resource id. Includes the whole subtree by default — see currentLocationMatch | |
| currentLocationMatch | No | How currentLocationId matches. "subtree" (default) = that place AND everything inside it, so a building returns its rooms' items. "exact" = only items sitting on that place itself |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | Why an empty result is empty (e.g. no linked person for "me") | |
| items | No | The matching items | |
| listUrl | No | Link that opens this same result in the web app. Absent when the filter combination has no list-URL form, or when the deployment has no public address | |
| matchedBy | No | "code" when the query resolved as an exact asset code | |
| truncated | No | The server scan hit its cap — narrow the search | |
| totalCount | No | Total matches (a lower bound when `truncated` is true) | |
| currencySums | No | Per-currency-field totals over EVERY matching row, not just this page — the answer to "what is this worth". Absent when the org has no currency field. A lower bound while `truncated` is true |