Skip to main content
Glama

search_users

Search the user database by username, including partial matches, to retrieve account details such as email and role. Use it for user lookups and identity verification.

Instructions

Searches the user database for matching usernames. Returns user information including email and role.

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": {
      "username": "<username>"
    },
    "name": "search_users"
  }
}

Input Schema

NameRequiredDescriptionDefault
usernameYesUsername to search for (supports partial matches)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.3/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full burden. It discloses the return fields (email, role) and the fuzzy-match behavior, but says nothing about whether multiple users can be returned, result limits or pagination, permission requirements, or whether the lookup is read-only.

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

Conciseness5/5

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

Two short sentences, front-loaded with the action and followed by the return payload. There is no filler, hedging, or redundancy.

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

Completeness3/5

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

For a one-parameter search tool with a fully described schema and no output schema, the description covers the basics but omits result cardinality and the distinction from similar lookup tools. An agent could call it correctly but might be surprised by multiple matches or limits.

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

Parameters3/5

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

The single parameter is fully documented in the schema, including that partial matches are supported, so the description adds no meaning beyond it. The phrase "matching usernames" merely restates what the schema already specifies, making the baseline 3 appropriate.

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

Purpose4/5

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

The description gives a specific verb and resource ("Searches the user database for matching usernames") and names what comes back (email and role). It does not, however, distinguish this tool from the sibling get_user_info, which an agent could plausibly mistake for the same lookup.

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

Usage Guidelines2/5

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

There is no guidance on when to use this versus alternatives such as get_user_info, nor any stated prerequisites. The only implicit cue is that it takes a username and supports partial matching, leaving the agent to infer the routing decision.

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