discord-mcp

Set role position

discord_set_role_position

Write

Toolset
Roles roles
Discord permission
Manage Roles
Context cost
243 tokens, estimated972 bytes of definition, divided by 4

Move a role up or down in the server's role hierarchy, which determines permission precedence and member-list ordering. Higher position = higher in the list. Requires the Manage Roles permission, and the target position must be below the bot's highest role.

Risk and annotations

Read-onlyreadOnlyHintnoCan modify your server.
DestructivedestructiveHintnoDeclared non-destructive.
IdempotentidempotentHintyesRepeating the call with the same arguments has no additional effect.
Open worldopenWorldHintyesInteracts with an external system: Discord.

Annotations are hints the server declares. Clients use them to decide when to ask you before a call.

Parameters

ParameterTypeRulesDescription
guild_idrequiredstring
pattern ^\d{17,20}$
Discord server (guild) ID (snowflake).
role_idrequiredstring
pattern ^\d{17,20}$
ID (snowflake) of the role to reposition.
positionrequiredinteger
at least 1
New hierarchy position (1 = lowest, just above @everyone, which sits at 0). Higher numbers rank higher.

Output

This tool declares no output schema. Its description says what it returns; this page shows no example rather than invent one.

Related tools

Also in Roles

Raw definition (972 bytes)
{
  "name": "discord_set_role_position",
  "description": "Move a role up or down in the server's role hierarchy, which determines permission precedence and member-list ordering. Higher position = higher in the list. Requires the Manage Roles permission, and the target position must be below the bot's highest role.",
  "inputSchema": {
    "type": "object",
    "properties": {
      "guild_id": {
        "type": "string",
        "pattern": "^\\d{17,20}$",
        "description": "Discord server (guild) ID (snowflake)."
      },
      "role_id": {
        "type": "string",
        "pattern": "^\\d{17,20}$",
        "description": "ID (snowflake) of the role to reposition."
      },
      "position": {
        "type": "integer",
        "minimum": 1,
        "maximum": 9007199254740991,
        "description": "New hierarchy position (1 = lowest, just above @everyone, which sits at 0). Higher numbers rank higher."
      }
    },
    "required": [
      "guild_id",
      "role_id",
      "position"
    ],
    "additionalProperties": false
  },
  "annotations": {
    "title": "Set role position",
    "readOnlyHint": false,
    "destructiveHint": false,
    "idempotentHint": true,
    "openWorldHint": true
  }
}