Skip to main content
Glama

list_roles

Retrieve all Discord server roles with IDs, colors, positions, and permission summaries. Use the server ID to inventory roles and review permissions quickly.

Instructions

List all roles in a server with ID, color, position, and permission summaries

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
guildIdNoDiscord server ID (defaults to DISCORD_GUILD_ID)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations provided, the description carries the full burden. 'List all roles' implies a safe read and it discloses the fields returned, but it says nothing about permissions required, pagination, or rate limits for a server that may hold many roles.

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?

A single front-loaded sentence that conveys the operation and its output fields with zero waste.

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 read-only list tool with no output schema, naming the returned fields (ID, color, position, permission summaries) meaningfully compensates for the absent return schema. Only minor gaps remain, such as ordering and whether results are paginated.

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 single guildId parameter (with its DISCORD_GUILD_ID default) is fully documented in the schema. The description adds nothing beyond that, which is the expected baseline when the schema does the work.

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 (List) and resource (roles) and even enumerates the returned properties (ID, color, position, permission summaries). It is clearly distinguishable in intent from the singular get_role_info, though it never names that sibling explicitly.

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 or when-not guidance. It does not tell the agent when to prefer this over get_role_info (single role) or how it relates to create_role/edit_role/delete_role, leaving the routing decision to inference.

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