Skip to main content
Glama
Discord MCP - Discord server management MCP for AI agents

Discord MCP - Discord server management MCP for AI agents

Get role members

get_role_members
Read-only

Lists the Discord members who currently hold a specified role, optionally within a chosen server and capped by a result limit.

Instructions

The members who currently hold a given 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": {
      "role": "<role>"
    },
    "name": "get_role_members"
  }
}

Input Schema

NameRequiredDescriptionDefault
roleYesRole name or ID.
guildNoGuild (server) name or ID. Omit to use the default guild.
limitNoMax results. Default 50.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.4.2
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. Changed1 schema field changedv1.3.0
    • removedInput schema / additionalProperties
      Removed value: -false
  3. First observedv1.0.2

TDQS

C2.8/5.0
Behavior2/5

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

The readOnlyHint=true annotation already tells the agent this is a safe read with no mutation, so the description is only obliged to add context beyond that — permissions needed, whether nested role inheritance applies, pagination behavior. It adds none of that. For a lookup whose correctness depends on whether inherited/nested roles are included, the description provides nothing beyond the annotation.

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?

A single short sentence with zero filler and the key constraint (current membership) front-loaded, so nothing needs trimming. It is arguably over-compressed rather than verbose — brevity is achieved by omitting verb and scope qualifiers the agent would want. Efficient, but economy at the cost of information.

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

Completeness4/5

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

For a simple 3-parameter read with 100% schema coverage and readOnlyHint supplied, the definition covers the central question of what data returns. What is missing is modest: whether nested/inherited role members are included, how the default guild is resolved, and pagination guidance for the limit cap. None of these are schema-explained, but their absence is a small gap for a tool of this complexity.

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 role, guild, and limit are already documented in the schema (including the maximum of 100 and default of 50), which sets the baseline at 3. The description adds only the "currently hold" temporal qualifier and supplies no syntax detail for role or guild name-vs-ID resolution beyond what the schema states. It neither compensates for nor erodes the schema's coverage.

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

Purpose3/5

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

The description identifies a specific resource (role members) and a filtering constraint ("currently hold"), which is more informative than the bare title. However, it is an incomplete sentence fragment with no verb (e.g., "returns"/"lists"), and it does not distinguish the tool from the sibling list_members or search_members, which could plausibly return overlapping data. An agent knows roughly what data comes back but not how this read differs from its siblings.

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 when-to-use guidance at all: no statement of when to pick this over list_members, list_thread_members, or search_members, and no mention that it is role-centric (an admin/audit use case) versus a plain member listing. The only implicit signal is the required role parameter in the schema. Exclusions and alternatives are entirely absent.

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