Skip to main content
Glama
Oratorian

Discord MCP Server

by Oratorian

Edit Discord Role

discord_edit_role
Idempotent

Edit a Discord role's name, color, and permissions to tailor server role settings.

Instructions

Edit a role's properties including name, color, and permissions.

Common permission names:

  • Admin: Administrator (grants all permissions)

  • General: ManageGuild, ManageRoles, ManageChannels, KickMembers, BanMembers, ModerateMembers

  • Messages: SendMessages, ManageMessages, EmbedLinks, AttachFiles, ReadMessageHistory, MentionEveryone

  • Voice: Connect, Speak, MuteMembers, DeafenMembers, MoveMembers, Stream

  • Other: ManageEmojisAndStickers, ManageWebhooks, ManageEvents, ViewAuditLog

Args:

  • guild_id (string): Discord server/guild ID

  • role_id (string): Discord role ID to edit

  • name (string, optional): New role name

  • color (number, optional): Role color as decimal integer (e.g., 16711680 for red)

  • mentionable (boolean, optional): Whether the role can be mentioned

  • hoist (boolean, optional): Whether to display role members separately

  • permissions (string[], optional): Permissions to grant (replaces existing). Examples: ['SendMessages', 'ViewChannel']

Returns: Updated role details

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameNoNew role name
colorNoNew role color as decimal
hoistNoWhether to display role members separately
role_idYesDiscord role ID (snowflake)
guild_idYesDiscord server/guild ID (snowflake)
mentionableNoWhether the role can be mentioned
permissionsNoNew permission names array
Behavior4/5

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

The description discloses that permissions replace existing values and returns updated role details. Annotations already indicate idempotence and non-destructiveness, and the description adds context about permission replacement. No contradictions with annotations.

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?

The description is well-structured: purpose first, then a helpful permission reference, then arg list. It is front-loaded but could be slightly more concise by reducing the permission list or integrating arg descriptions more succinctly.

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 7 parameters (2 required), no output schema, and good annotations, the description covers all parameters and notes the return type. It adequately informs usage for a mutation tool, though it lacks mention of error cases or validation behavior.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so baseline is 3. The description adds value by listing common permission names, explaining color format with an example decimal, and providing permission examples. This goes beyond what the schema provides.

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 clearly states the tool edits a role's properties (name, color, permissions). The verb 'Edit' and resource 'role' are specific. However, it does not differentiate from sibling tools like discord_create_role or discord_edit_channel, though the name itself provides clarity.

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 guidance on when to use this tool vs alternatives such as discord_create_role or discord_set_role_positions. No prerequisites, context, or when-not-to-use information is provided, leaving the agent to infer usage.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Oratorian/discord-node-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server