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

Discord MCP - Discord server management MCP for AI agents

Reorder roles

reorder_roles

Moves Discord roles to new hierarchy positions in one call, with a preview and confirm token when a move could grant higher-ranked permissions.

Instructions

Move roles to new hierarchy positions in one call. Higher positions sit higher in the list and outrank lower ones. Moving a role that can ban, kick, time out, rename, or change roles above a role it was below lets its holders do that to the people with the other role, so that 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.

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": {
      "moves": "<moves>"
    },
    "name": "reorder_roles"
  }
}

Input Schema

NameRequiredDescriptionDefault
guildNoGuild (server) name or ID. Omit to use the default guild.
movesYesThe moves: each a role by name or ID and its new position. Higher numbers rank higher.
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.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv2.2.2
    • addedInput schema / properties / moves / description
      Added value: +"The moves: each a role by name or ID and its new position. Higher numbers rank higher."
  2. Changed2 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"
      +}
  3. Changed3 schema fields changedv1.3.0
    • removedInput schema / additionalProperties
      Removed value: -false
    • removedInput schema / properties / moves / items / additionalProperties
      Removed value: -false
    • addedInput schema / properties / moves / items / properties / position / maximum
      Added value: +9007199254740991
  4. First observedv1.0.2

TDQS

A4.3/5.0
Behavior5/5

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

With annotations only declaring readOnlyHint=false and destructiveHint=false, the description carries the real behavioral payload: a two-phase write where the first call mutates nothing and returns a preview plus confirm_token, and the second call with the token performs the change. It also discloses the privilege-escalation model that makes confirmation necessary, which is exactly the kind of consequence disclosure an agent needs before calling a non-destructive-flagged mutation.

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?

Purpose and ranking semantics are front-loaded, and the confirmation flow follows in logical order. The final sentence is long and clause-heavy ('...that can ban, kick, time out, rename, or change roles above a role it was below lets its holders do that to...'), which costs readability but every clause carries information.

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 3-parameter mutation with no output schema, the definition covers the prerequisite (confirmation token), the side effect (privilege inheritance), and the return shape of the preview call. An agent has everything needed to call it correctly on the first attempt.

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 already 100%, so the baseline is 3; the description earns more by explaining the ranking consequence of `position` and by framing `confirm_token` as belonging to 'this exact action's preview'. It slightly restates the schema's 'higher numbers rank higher' but adds the outranking consequence that the schema does not spell out.

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 first clause gives a specific verb and resource ('Move roles to new hierarchy positions in one call') and immediately defines what a position means. It is clearly distinct from reorder_channels by resource, though it never names a role-manipulation sibling such as bulk_update_roles to sharpen the boundary.

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?

The description states precisely when confirmation is required (moving a role that can ban, kick, time out, rename, or change roles above one it was below) and the exact procedure to follow, which is actionable context beyond a generic 'use this to reorder'. It stops short of naming alternatives for cases where the agent should use bulk_update_roles or assign_role instead.

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