Skip to main content
Glama
cappyeo

discord-mcp

roles_modify

Idempotent

Update a Discord role's name, color, permissions, icon, or flags by passing only the properties you want to change.

Instructions

Purpose: Update a role's properties. Pass only fields you want to change.

When to use:

  • Rename, recolor, change permissions, toggle mentionability/hoist, set role icon.

When NOT to use:

  • Reorder roles → use roles_modify_positions.

  • Delete → use roles_delete.

permissions is a base-10 STRING (Discord permission bitfield).

Returns: {id, name, color, position, permissions, mentionable, hoist}.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
iconNo
nameNo
colorNo
hoistNo
role_idYesRole to modify
guild_idYesGuild containing the role
mentionableNo
permissionsNoPermission bitfield as base-10 string
audit_reasonNoReason recorded in audit log (X-Audit-Log-Reason header)
unicode_emojiNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, and idempotentHint=true, so the safety profile is clear. The description adds valuable behavioral context: partial updates ('Pass only fields you want to change') and the requirement that permissions is a base-10 string. It does not discuss auth or rate limits, but annotations cover the basic safety traits, so a 4 is appropriate.

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?

The description is well-structured with clear headers for Purpose, When to use, When NOT to use, and Returns. It is concise, front-loaded with the primary purpose, and each bullet/statement earns its place without redundant filler.

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

Completeness5/5

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

For a 10-parameter modification tool, the description covers the essential selection context: what it does, when to use it, important parameter semantics (permissions format), and return values. The output schema exists, so the return field enumeration is a bonus. No critical information is missing for an agent to correctly select and invoke this tool.

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 description coverage is only 40%, so the description must compensate. It does so by explicitly calling out the permissions parameter as a base-10 Discord permission bitfield and enumerating the updatable properties (name, color, permissions, mentionable, hoist, icon). This adds meaning beyond the bare schema, though some parameters like unicode_emoji are not individually described.

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?

The description uses a specific verb and resource: 'Update a role's properties.' It clearly defines the tool's function and distinguishes it from siblings by explicitly naming alternatives for reordering (roles_modify_positions) and deletion (roles_delete). This makes the purpose unambiguous.

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?

The 'When to use' section lists concrete scenarios such as renaming, recoloring, changing permissions, toggling mentionability/hoist, and setting role icons. The 'When NOT to use' section provides explicit alternatives for reorder and delete operations, giving the agent strong guidance on tool selection.

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/cappyeo/discord-mcp'

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