Skip to main content
Glama
discord-mcp

discord-mcp

members_search

Read-onlyIdempotent

Fuzzy-search Discord guild members by username or nickname prefix to resolve names into user IDs for mentions and lookups.

Instructions

Purpose: Fuzzy-search guild members by username/nick prefix.

When to use: convert "find @alice" or "users named bob" into snowflake IDs.

Example: {guild_id:"999000999000999000", query:"alice", limit:25}

Returns: {matches:[{user_id, username, global_name, nick}], count}.

Rate limit: 5/sec/guild.

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": {
      "guild_id": "<guild_id>",
      "query": "<query>"
    },
    "name": "members_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMax matches (1-1000, default 25)
queryYesUsername/nick prefix or substring
guild_idYesGuild to search

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.28.0
    • changedOutput schema / anyOf
      Previous value: -[
      -  {
      -    "$schema": "https://json-schema.org/draft/2020-12/schema",
      -    "additionalProperties": {},
      -    "properties": {
      -      "count": {
      -        "type": "number"
      -      },
      -      "matches": {
      -        "items": {
      -          "additionalProperties": false,
      -          "properties": {
      -            "global_name": {
      -              "anyOf": [
      -                {
      -                  "type": "string"
      -                },
      -                {
      -                  "type": "null"
      -                }
      -              ]
      -            },
      -            "nick": {
      -              "anyOf": [
      -                {
      -                  "type": "string"
      -                },
      -                {
      -                  "type": "null"
      -                }
      -              ]
      -            },
      -            "user_id": {
      -              "description": "Discord user ID",
      -              "pattern": "^\\d{17,20}$",
      -              "type": "string"
      -            },
      -            "username": {
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "user_id",
      -            "username",
      -            "global_name",
      -            "nick"
      -          ],
      -          "type": "object"
      -        },
      -        "type": "array"
      -      }
      -    },
      -    "required": [
      -      "matches",
      -      "count"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "properties": {
      -      "category": {
      -        "enum": [
      -          "client",
      -          "server"
      -        ],
      -        "type": "string"
      -      },
      -      "code": {
      -        "type": "string"
      -      },
      -      "recovery_hint": {
      -        "type": "string"
      -      },
      -      "retriable": {
      -        "type": "boolean"
      -      }
      -    },
      -    "required": [
      -      "code",
      -      "retriable",
      -      "category",
      -      "recovery_hint"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "$schema": "https://json-schema.org/draft/2020-12/schema",
      +    "additionalProperties": {},
      +    "properties": {
      +      "count": {
      +        "type": "number"
      +      },
      +      "matches": {
      +        "items": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "global_name": {
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "nick": {
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "user_id": {
      +              "description": "Discord user ID",
      +              "pattern": "^\\d{17,20}$",
      +              "type": "string"
      +            },
      +            "username": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "user_id",
      +            "username",
      +            "global_name",
      +            "nick"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      }
      +    },
      +    "required": [
      +      "matches",
      +      "count"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "properties": {
      +      "category": {
      +        "enum": [
      +          "client",
      +          "server"
      +        ],
      +        "type": "string"
      +      },
      +      "code": {
      +        "type": "string"
      +      },
      +      "recovery_hint": {
      +        "type": "string"
      +      },
      +      "retriable": {
      +        "type": "boolean"
      +      }
      +    },
      +    "required": [
      +      "code",
      +      "retriable",
      +      "category",
      +      "recovery_hint"
      +    ],
      +    "type": "object"
      +  }
      +]
  2. First observedv0.22.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, openWorld, and non-destructive behavior, so the safety profile is covered. The description adds a valuable rate limit ('5/sec/guild') and explains the fuzzy-search behavior, though the return shape is redundant given the output schema.

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?

The description is organized into labeled sections (Purpose, When to use, Example, Returns, Rate limit) and is front-loaded with the core purpose. Every sentence earns its place, and the example is compact and useful.

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?

Given the tool's simplicity, rich schema, existing output schema, and comprehensive annotations, the description covers everything an agent needs: purpose, usage scenario, example call, return shape, and rate limit. No critical gaps remain.

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?

Schema description coverage is 100%, so the schema already documents all three parameters thoroughly. The description provides an example with concrete values but adds no new semantic detail beyond what the schema and example already convey; baseline 3 is 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 states a specific verb ('fuzzy-search') and resource ('guild members by username/nick prefix'), making the tool's function immediately clear. It does not explicitly contrast with siblings like members_list or members_get, so sibling differentiation is only implicit.

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?

The 'When to use' section gives concrete scenarios (resolving '@alice' or 'users named bob' to snowflake IDs), which is strong context. It does not name alternatives or state when not to use this tool (e.g., when an ID is already known), leaving some inference to the agent.

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

Deploy Server

Other Tools