Skip to main content
Glama
lburnscissp

discord-mcp

by lburnscissp

discord_list_roles

Read-onlyIdempotent

List a Discord server's roles from highest to lowest, including IDs, colors, and flags, to locate the role ID required for member role assignment.

Instructions

List a server's roles from highest to lowest, with IDs, colors and flags.

Use to find role_id for discord_set_member_role. Permission bitfields are in the JSON output.

Returns: Markdown table (name, ID, color, hoisted, mentionable, managed) or JSON list.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
guild_idNoServer (guild) ID. Omit to use DISCORD_GUILD_ID from .env.
response_formatNo'markdown' for reading, 'json' for full structured data.markdown

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/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, so the safety profile is covered. The description adds return-format details and the permission bitfield note, but since an output schema exists, some of this is redundant; no rate-limit or pagination context.

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?

Three short, front-loaded lines: purpose, usage pointer, return shape. Efficient, though the 'Returns' line partially duplicates what the output schema already conveys.

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?

Given an output schema exists, the description needn't detail return values, yet it still summarizes them coherently. Covers ordering, downstream use and permission data; only pagination/limits are unaddressed.

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%, so guild_id and response_format are fully documented in the schema, including the DISCORD_GUILD_ID fallback. The description adds no param-level detail beyond what the schema provides; baseline 3 applies.

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

Purpose5/5

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

Specific verb+resource ('List a server's roles') with ordering stated ('highest to lowest') and the fields returned enumerated. Clearly distinguishable from siblings like discord_get_guild or discord_list_members.

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

Usage Guidelines5/5

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

Explicitly names the downstream tool the output feeds ('Use to find role_id for discord_set_member_role'), giving the agent a clear when-to-use condition. Permission bitfield location is also noted.

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