Skip to main content
Glama
discord-mcp

discord-mcp

roles_list

Read-onlyIdempotent

List all roles in a Discord guild to discover role IDs and audit role hierarchy and permissions.

Instructions

Purpose: List all roles in a guild.

When to use: discover role IDs, audit hierarchy + permissions.

Example: {guild_id:"999000999000999000"}

Returns: {roles:[{id,name,color,position,permissions,mentionable,hoist,managed}], count}.

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>"
    },
    "name": "roles_list"
  }
}

Input Schema

NameRequiredDescriptionDefault
guild_idYesGuild to list roles for

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.22.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive, and open-world behavior, so the safety profile is fully covered without the description. The description adds no further operational context such as required permissions or whether role ordering is guaranteed, and its 'Returns' line restates what the output schema already provides.

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?

Labeled Purpose/When/Example/Returns sections make it scannable and front-loaded with the essential purpose first. The Returns section is somewhat redundant given an output schema exists, which keeps it from being maximally tight.

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 single-parameter read tool with full schema coverage, an output schema, and complete annotations, almost everything an agent needs is present. The one real omission is any mention of the permissions needed to view a guild's roles.

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 coverage is 100% and the single parameter is documented directly in the schema, so the baseline is 3. The inline example showing a snowflake-format guild_id adds modest value, though it does not go beyond the schema's pattern constraint.

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?

States a specific verb and resource with scope: "List all roles in a guild." The verb 'list' implicitly separates it from roles_create, roles_delete, and roles_modify, but the description never names an alternative explicitly, so sibling differentiation rests on the verb alone.

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?

'When to use: discover role IDs, audit hierarchy + permissions' gives concrete contexts that map cleanly onto the mutation siblings that need role IDs. It stops short of stating when-not to use it or naming the alternative tools.

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