Skip to main content
Glama

Mango Inventory

Search people & locations

search_resources
Read-only

Find the resource id of ONE person or ONE location by name. type is required ("person" or "location"); returns the 10 best matches; name search only (no code or id lookup), and an empty query returns nothing. These ids are what assign_item, adjust_stock, transfer_stock, set_min_stock, create_order (deliverToResourceId), create_item (homeLocationId) and create_location / create_person (parent) take. A "person" here is a PERSON RECORD (someone items can be assigned to), NOT a login account; member userIds come from list_members. Every row carries path, the ancestor names root to parent ("Schulhaus B" → "1. Obergeschoss" for a room, a department chain for a person), and parentId; when several locations share a name, the path tells them apart. An empty result [] means no match. list_resources returns both whole trees without a name.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "type": "<type>",
      "query": "<query>"
    },
    "name": "search_resources"
  }
}

Input Schema

NameRequiredDescriptionDefault
typeYes
queryYesName to search for

Output Schema

NameRequiredDescriptionDefault
resultNoUp to 10 best name matches; empty array means no match

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / properties / result / items / properties / path / description
      Previous value: -"Ancestor NAMES, root→parent (e.g. [\"Schulhaus B\", \"1. Obergeschoss\"]); empty at the top level. When several rows share a name, this is what tells them apart — read it out and let your user pick instead of guessing"New value: +"Ancestor NAMES, root→parent (e.g. [\"Schulhaus B\", \"1. Obergeschoss\"]); empty at the top level. When several rows share a name, this is what tells them apart"
  2. First observed

TDQS

A4.7/5.0
Behavior4/5

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

Beyond the readOnly/non-destructive annotations, it discloses the result cap (10 best matches), that an empty query returns nothing and an empty array means no match, and that every row carries path and parentId with the path disambiguating same-named locations. It stops short of stating any permission or rate-limit behavior, but for a capped read-only lookup that is a minor omission.

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 and dense with no filler sentences; each clause carries operational information. It is a single long paragraph, though, and the two separate empty-result statements (empty query vs empty array) could be merged without losing meaning.

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 two-parameter search whose output schema already documents row shape, the description supplies everything else an agent needs: required args, result cap, empty-result semantics, the path disambiguation rule, the person-vs-account caveat, and the sibling to use for full trees.

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

Parameters5/5

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

With only 50% schema coverage, the description compensates fully: it explains that `type` is required and takes only "person" or "location", that `query` is name-only (no code or id lookup), and it corrects the most likely misreading by defining a person as a person record rather than a login account.

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?

"Find the resource id of ONE person or ONE location by name" states a specific verb (find), a specific resource (person/location ids), and the return's nature. It immediately distinguishes itself from list_resources (whole trees) and from list_members (login accounts), so an agent can route without opening a 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?

It states when to use (name search to obtain an id) and when not to (no code or id lookup), names the concrete downstream consumers (assign_item, transfer_stock, create_order's deliverToResourceId, create_item's homeLocationId, create_location parent) and routes alternative cases to list_resources and list_members.

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