Skip to main content
Glama

Item name / shortname typeahead

search_items
Read-onlyIdempotent

[Items] Item name / shortname typeahead. Up to 25 live items matching q, best match first: a case-insensitive substring match on the display name OR the shortname, plus trigram similarity on the display name so typos still resolve (asault finds the Assault Rifle) - the same ILIKE + similarity search the site's item pickers use. Each result is {shortname, display_name, category, icon_url}; use the shortname with /items/{shortname}. For filtered, paginated results use /items?search= instead. Cached for 5 minutes per query.

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": {
      "q": "<q>"
    },
    "name": "search_items"
  }
}

Input Schema

NameRequiredDescriptionDefault
qYesPart of an item's display name or shortname (2+ characters).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only declare the read-only/idempotent/closed-world safety profile; the description adds substantial behavior beyond that: 25-result cap, ranking order, case-insensitive substring on display name OR shortname, trigram similarity for typos with a concrete example (`asault`), the exact result shape, and a 5-minute per-query cache. That is exactly the extra context annotations cannot carry.

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 purpose, then matching semantics, then result shape and routing advice — a sensible order. Slightly overstuffed: the 'same ILIKE + similarity search the site's item pickers use' clause is implementation flavor that doesn't change agent behavior.

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?

There is no output schema, yet the description enumerates the returned fields ({shortname, display_name, category, icon_url}), the result cap, ordering, and caching — everything needed to call it and consume the response. Nothing material is left for the agent to guess.

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% and already documents the 2-character minimum, so the baseline would be 3. The description adds real meaning by explaining that `q` matches either display name or shortname and that fuzzy/typo matching applies, which tells the agent it can pass approximate spellings rather than exact names.

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?

States a specific verb and resource ('Item name / shortname typeahead', live items matching `q`) and specifies scope: max 25 results, best match first. It also distinguishes itself from the broader filtered search route ('/items?search='), so an agent knows exactly which capability this is.

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

Usage Guidelines4/5

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

Gives a clear when-to-use hedge: use this for typeahead matching, use '/items?search=' for filtered, paginated results, and use the returned shortname with '/items/{shortname}'. It does not name sibling MCP tools, but the contextual boundary between quick-match and filtered search is explicit.

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