Skip to main content
Glama

Mango Inventory

Search items

search_items
Read-only

Search 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

NameRequiredDescriptionDefault
pageNo0-based page index
searchNoItem code (exact match, e.g. BM-002) or name words (word-prefix plus accent-insensitive substring)
statusNoFilter by condition. "available" means not defect/lost/retired — the item may still be borrowed.
pageSizeNoItems per page, max 50 (default 20)
categoryIdNoFilter by category id. Includes the whole subtree by default — see categoryMatch
categoryMatchNoHow 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
currentHolderIdNoFilter by current holder: a person resource id, or the literal "me" for the connected user
currentLocationIdNoFilter by current location: a location resource id. Includes the whole subtree by default — see currentLocationMatch
currentLocationMatchNoHow 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

NameRequiredDescriptionDefault
noteNoWhy an empty result is empty (e.g. no linked person for "me")
itemsNoThe matching items
listUrlNoLink 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
matchedByNo"code" when the query resolved as an exact asset code
truncatedNoThe server scan hit its cap — narrow the search
totalCountNoTotal matches (a lower bound when `truncated` is true)
currencySumsNoPer-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

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / currentHolderId / description
      Previous value: -"Filter by current holder: a person resource id, or the literal \"me\" for the key owner"New value: +"Filter by current holder: a person resource id, or the literal \"me\" for the connected user"
    • changedInput schema / properties / search / description
      Previous value: -"Item code (exact match, e.g. BM-002) or name words (word-prefix plus accent-insensitive substring — use the shortest distinctive stem)"New value: +"Item code (exact match, e.g. BM-002) or name words (word-prefix plus accent-insensitive substring)"
    • changedOutput schema / properties / items / items / properties / webUrl / description
      Previous value: -"Link to this item in the web app — give it to your user so they can look at the record themselves. Absent when the deployment has no public address configured"New value: +"Link to this item in the web app, for a person to open. Absent when the deployment has no public address configured"
  2. First observed

TDQS

A4.8/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations only say this is a safe read, but the description adds substantial behavioral context: exact-code-then-name matching order, the never-shortened query rule with a worked example, empty result meaning, draft visibility restricted to the connected user (admins included), and the fact that photos are absent from rows. These are real traits not derivable from annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the search semantics, then filters, then result-field meanings, then the drafts caveat. Dense but nearly every sentence earns its place; the multi-clause parenthetical about subtree matching is slightly redundant with the schema.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 9-parameter, zero-required tool with an output schema, this fills every gap an agent needs: matching behavior, filter composition, result field semantics (status, trackingMode, primaryCode, webUrl), and a non-obvious access restriction on drafts. Nothing material is left implicit.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description still adds meaning: 'me' as a holder value, the interpretation of subtree vs. exact match in human terms (building returns its rooms' items), and the clarification that 'available' means condition, not availability. That mostly restates or sharpens the schema, so it falls short of a full 5.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Opens with a specific verb and resource ('Search inventory items') and then distinguishes itself from siblings by naming what get_item, show_items, inventory_overview, and list_resources do instead. An agent can route correctly without opening any schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit when-to-use rules: no arguments lists newest items, filters combine with `search`, and it points to inventory_overview / list_resources for the node ids the filters accept. It also redirects to get_item and show_items when photos are needed, which is a concrete alternative-selection rule.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources