Skip to main content
Glama
Discord MCP - Discord server management MCP for AI agents

Discord MCP - Discord server management MCP for AI agents

Update role

update_role

Edit a Discord role's name, color, icon, hoist, mentionable flag, or permissions, with confirmation for moderator/admin changes. Preview risky updates before applying them.

Instructions

Edit a role's name, color (solid, gradient, or holographic), icon, hoist, mentionable flag, or permissions. Passing preset and/or permissions replaces the role's permission set with the named bundle plus listed names. Only passed fields change. Supports dry_run. A permission change that would give the role moderator or admin powers (such as banning, kicking, or timing out members, deleting other people's messages, or managing the server, roles, or channels), or let it see channels it cannot see now, needs confirming: the first call changes nothing and returns a preview and a confirm_token, and repeating the call with the token makes the change. Role "@everyone" takes permissions only, and any change to it needs confirming, since every member holds it.

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": {
      "role": "<role>"
    },
    "name": "update_role"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoNew role name.
roleYesRole name or ID, or @everyone.
colorNoHex color like #00b0f4.
guildNoGuild (server) name or ID. Omit to use the default guild.
hoistNoShow members with this role as their own group in the member list.
presetNoA vetted permission bundle: none, member, moderator, or admin (admin never includes Administrator). The role's permissions become the bundle plus any names in permissions.
dry_runNoIf true, nothing is changed: the result shows what this call would do.
icon_urlNoPublic URL of a small image (png, jpeg, webp; 256 KB) shown beside members' names, or none to remove. Needs boost level 2.
icon_fileNoThe icon image from the local files folder (DISCORD_MCP_FILES_DIR), by name, instead of icon_url. Needs boost level 2.
icon_emojiNoA standard emoji shown beside members' names instead of an image, or none to remove. Needs boost level 2.
holographicNoDiscord's holographic style, which uses its own three colors; false for a solid color. Needs the Enhanced Role Colors server feature.
mentionableNoWhether anyone can @mention the role.
permissionsNoPermission names, like manage_messages or ban_members. The role's permissions are replaced with these, plus the preset's when one is given.
confirm_tokenNoThe token from this exact action's preview. Where the app can show a confirmation dialog, calling with it asks the user there, and it happens only if they agree.
secondary_colorNoA second hex color, so the role name shows a gradient from color to this one; none for a solid color. Needs the Enhanced Role Colors server feature.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changedv2.2.2
    • addedInput schema / properties / dry_run / description
      Added value: +"If true, nothing is changed: the result shows what this call would do."
    • addedInput schema / properties / hoist / description
      Added value: +"Show members with this role as their own group in the member list."
    • addedInput schema / properties / icon_file
      Added value: +{
      +  "description": "The icon image from the local files folder (DISCORD_MCP_FILES_DIR), by name, instead of icon_url. Needs boost level 2.",
      +  "minLength": 1,
      +  "type": "string"
      +}
    • addedInput schema / properties / mentionable / description
      Added value: +"Whether anyone can @mention the role."
    • addedInput schema / properties / name / description
      Added value: +"New role name."
    • addedInput schema / properties / permissions / description
      Added value: +"Permission names, like manage_messages or ban_members. The role's permissions are replaced with these, plus the preset's when one is given."
    • addedInput schema / properties / preset / description
      Added value: +"A vetted permission bundle: none, member, moderator, or admin (admin never includes Administrator). The role's permissions become the bundle plus any names in permissions."
    • changedInput schema / properties / role / description
      Previous value: -"Role name or ID."New value: +"Role name or ID, or @everyone."
  2. Changed6 schema fields changedv1.4.2
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • addedInput schema / properties / confirm_token
      Added value: +{
      +  "description": "The token from this exact action's preview. Where the app can show a confirmation dialog, calling with it asks the user there, and it happens only if they agree.",
      +  "type": "string"
      +}
    • addedInput schema / properties / holographic
      Added value: +{
      +  "description": "Discord's holographic style, which uses its own three colors; false for a solid color. Needs the Enhanced Role Colors server feature.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / icon_emoji
      Added value: +{
      +  "description": "A standard emoji shown beside members' names instead of an image, or none to remove. Needs boost level 2.",
      +  "type": "string"
      +}
    • addedInput schema / properties / icon_url
      Added value: +{
      +  "description": "Public URL of a small image (png, jpeg, webp; 256 KB) shown beside members' names, or none to remove. Needs boost level 2.",
      +  "type": "string"
      +}
    • addedInput schema / properties / secondary_color
      Added value: +{
      +  "description": "A second hex color, so the role name shows a gradient from color to this one; none for a solid color. Needs the Enhanced Role Colors server feature.",
      +  "type": "string"
      +}
  3. Changed1 schema field changedv1.3.0
    • removedInput schema / additionalProperties
      Removed value: -false
  4. First observedv1.0.2

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only say this is not read-only and not destructive; the description adds far more, including the two-step confirm_token flow, that the first call changes nothing, the specific class of permission changes that trigger confirmation, that @everyone accepts permissions only and always requires confirming, and the boost level 2 / Enhanced Role Colors prerequisites.

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?

Four dense sentences, front-loaded with the editable fields, then replacement semantics, then the confirmation protocol. Every sentence carries load, though the long parenthetical enumerating moderator powers could be tightened without losing meaning.

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 15-parameter mutation with no output schema and a non-trivial confirmation handshake, the description covers the safety-critical behavior: preview/confirm flow, dry_run, privilege-escalation triggers, and the @everyone special case. Nothing an agent needs in order to call it correctly is missing.

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 the baseline is 3, but the description adds cross-parameter meaning the schema states only piecemeal: that preset plus permissions combine into a replacement set rather than an additive merge, and that only passed fields are touched. It does not explain the icon_url/icon_file/icon_emoji mutual exclusivity, which remains schema-only.

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 opens with a specific verb and resource ('Edit a role') and enumerates exactly which attributes are editable: name, color (solid/gradient/holographic), icon, hoist, mentionable, permissions. That scope makes it clearly distinct from create_role, clone_role, and delete_role without needing to name them.

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?

It gives strong conditional usage rules — only passed fields change, preset and/or permissions replace the permission set, dry_run previews, and confirming is required for privilege escalation or visibility expansion. It stops short of naming an alternative such as bulk_update_roles for multi-role edits, so it is clear context rather than full when/when-not routing.

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