Skip to main content
Glama

discord_search_members

Find a Discord server member's user ID by searching usernames or nicknames with a case-insensitive prefix match. Specify the server and starting text to return matching members.

Instructions

Search server members by the start of their username or nickname (prefix match, case-insensitive). Use it to find a member's user ID.

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": {
      "guildId": "<guildId>",
      "query": "<query>"
    },
    "name": "discord_search_members"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum number of members to return (default 10, max 1000)
queryYesStart of a username or nickname.
guildIdYesThe ID of the server (guild) to search in.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.5.3

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description must carry behavioral disclosure itself. It does add useful behavior beyond the schema by stating the match is prefix-based and case-insensitive, but says nothing about permission requirements, result ordering, whether bots are included, or cost/rate limits for a search over a potentially large member list.

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 with the matching rule front-loaded and the intended outcome second. No filler, no restatement of the tool name.

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?

There is no output schema and no annotations, so the description is the only source of behavioral context. It covers matching semantics and the primary goal well but leaves return shape (list of member objects vs IDs), ordering, and permissions unstated for a 3-parameter search tool.

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, and the description earns above that by clarifying how 'query' is interpreted (prefix of username or nickname, case-insensitive) and framing the tool's output goal as a user ID. It does not mention the 'limit' parameter's default or cap, but the schema already documents those.

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?

Uses a specific verb and resource ('Search server members') and pins down the match semantics: prefix, case-insensitive, against username or nickname. This is clearly narrower than a plain member listing, though it never names the sibling tools it should be distinguished from.

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

Usage Guidelines3/5

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

It gives one concrete use case ('find a member's user ID'), which is genuine when-to-use guidance. It stops short of exclusions: nothing tells the agent when to prefer discord_list_members or discord_get_member, nor that a prefix match requires already knowing the start of the name.

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