Skip to main content
Glama
discord-mcp

discord-mcp

roles_modify

Idempotent

Update a Discord role's properties—rename, recolor, change permissions, toggle mentionability or hoist, or set an icon—by sending only the fields 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}.

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": {
      "guild_id": "<guild_id>",
      "role_id": "<role_id>"
    },
    "name": "roles_modify"
  }
}

Input 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

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changedv0.28.0
    • removedInput schema / properties / hoist / anyOf
      Removed value: -[
      -  {
      -    "type": "boolean"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedInput schema / properties / hoist / type
      Added value: +[
      +  "boolean",
      +  "null"
      +]
    • removedInput schema / properties / icon / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedInput schema / properties / icon / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedInput schema / properties / mentionable / anyOf
      Removed value: -[
      -  {
      -    "type": "boolean"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedInput schema / properties / mentionable / type
      Added value: +[
      +  "boolean",
      +  "null"
      +]
    • removedInput schema / properties / unicode_emoji / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedInput schema / properties / unicode_emoji / type
      Added value: +[
      +  "string",
      +  "null"
      +]
  2. First observedv0.22.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnly=false, idempotent=true, destructive=false, openWorld=true, so safety is covered. The description adds genuinely non-structured behavior: 'Pass only fields you want to change' clarifies partial-update semantics rather than a full replace. It omits notable behavior such as how audit_reason is applied and whether icon/unicode_emoji interact, and the stated return shape is redundant given an output schema exists.

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?

Front-loaded purpose, then labeled when/when-not blocks, then a compact format caveat and return shape. Every line carries information; no filler or restatement of the title.

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 10-parameter mutation tool with annotations and an output schema, this covers the essentials: what changes, what not to use it for, partial-update semantics, and the tricky permissions encoding. Minor gaps remain around the icon/unicode_emoji pairing and audit logging, but nothing that would cause a mis-call.

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 only 40% across 10 parameters, so the description must compensate and only partly does. It highlights that permissions is a base-10 string (though the schema already says this) and frames the whole parameter set as a selective patch, but leaves icon vs. unicode_emoji, color bounds, and audit_reason unexplained.

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?

Opens with a specific verb+resource ("Update a role's properties") and enumerates the mutable surface (name, color, permissions, mentionable/hoist, icon). It explicitly separates itself from roles_modify_positions and roles_delete, so an agent can route correctly without opening a schema.

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?

Provides explicit 'When to use' and 'When NOT to use' sections, and names the correct sibling for each excluded operation (reorder → roles_modify_positions, delete → roles_delete). Nothing about routing is left 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