Skip to main content
Glama
discord-mcp

discord-mcp

roles_modify_positions

Idempotent

Reorder multiple Discord guild roles in one transaction by setting new positions; Discord renumbers other roles automatically to make room.

Instructions

Purpose: Bulk-reorder guild roles via PATCH /guilds/{guild.id}/roles.

When to use: - Move several roles in one transaction (e.g. swap two adjacent roles).

Body: array of {id, position?}. Discord renumbers other roles automatically to make room.

Returns: {roles:[{id, name, position}], count} - full role list after 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": {
      "guild_id": "<guild_id>",
      "positions": "<positions>"
    },
    "name": "roles_modify_positions"
  }
}

Input Schema

NameRequiredDescriptionDefault
guild_idYesGuild containing the roles
positionsYesRoles whose position changes (other roles are auto-renumbered)
audit_reasonNoReason recorded in audit log (X-Audit-Log-Reason header)

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.22.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare non-read-only, idempotent, non-destructive behavior, so the bar is lower; the description still adds real value by disclosing the side effect that Discord renumbers other roles automatically, which an agent could otherwise miss. It also states the return shape, though it leaves out audit-log implications of the audit_reason header.

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?

The four labeled sections (Purpose, When to use, Body, Returns) front-load the essentials and every sentence carries information. It is slightly templated and the endpoint mention is redundant with the operation name, but nothing is padded.

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 three-parameter mutation with an output schema, the definition covers purpose, trigger condition, body shape, the renumbering side effect, and the response. The only meaningful omission is guidance on audit_reason and on choosing this over roles_modify for single-role edits.

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 100%, so every parameter is already documented in the schema, and the description largely restates the body shape as an array of {id, position?}. The one genuinely additive note is that other roles are auto-renumbered, which explains the semantics of the omitted position field, but audit_reason gets no mention here.

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 description gives a specific verb and resource ('Bulk-reorder guild roles') plus the exact endpoint PATCH /guilds/{guild.id}/roles, which lets an agent distinguish it from single-role operations like roles_modify. It stops short of naming any sibling explicitly, so differentiation is inferred from the word 'bulk' rather than stated.

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 supplies an explicit 'When to use' section with a concrete scenario: moving several roles in one transaction, e.g. swapping two adjacent roles. That is clear guidance, but there is no when-not-to-use clause pointing an agent to roles_modify for a single role change.

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