Skip to main content
Glama
discord-mcp

discord-mcp

roles_delete

DestructiveIdempotent

Permanently delete a Discord guild role and remove it from all members who hold it. Use to tear down deprecated or integration roles; requires explicit confirmation.

Instructions

Purpose: Delete a role from a guild. DESTRUCTIVE - IRREVERSIBLE. All members holding this role lose it.

When to use: - Tear down deprecated/integration roles.

When NOT to use: - Just removing the role from a single user → use members_remove_role.

Returns: {deleted, role_id, guild_id}.

Security: gated by ConfirmRequired. Pass __confirm:true AND set MCP_DRY_RUN=false to actually delete.

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_delete"
  }
}

Input Schema

NameRequiredDescriptionDefault
role_idYesRole to delete (IRREVERSIBLE)
guild_idYesGuild containing the role
__confirmNoSet true to authorize this destructive operation. Also requires the server to run with MCP_DRY_RUN=false; otherwise a DRY_RUN_PREVIEW is returned.
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

A4.4/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and idempotentHint=true, so the safety profile is partly structured. The description still adds material context beyond that: the cascading effect (all members holding the role lose it), irreversibility, and a concrete authorization gate requiring `__confirm:true` plus `MCP_DRY_RUN=false` or a DRY_RUN_PREVIEW is returned. Not a 5 only because it doesn't state permission requirements or failure modes beyond the dry-run path.

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?

Labeled sections (Purpose, When to use, When NOT to use, Returns, Security) front-load the destructive warning and are scannable. The section labels are slightly mechanical, but each block carries distinct content and nothing is padded.

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?

Covers purpose, routing, blast radius, authorization prerequisites, and confirms the return payload, with an output schema available for the response shape. For a destructive two-required-param tool, an agent has everything needed to call it correctly or avoid it.

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%, including the `__confirm`/`MCP_DRY_RUN` interaction and the audit log header semantics, so the description's Security line largely restates structured data. It reinforces the gate's importance but adds no syntax or meaning not already in the schema.

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?

States a specific verb and resource ("Delete a role from a guild") and explicitly scopes it against the sibling that handles the near-miss case, `members_remove_role`. An agent can distinguish this from role-modification siblings like `roles_modify` without opening any 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 both a positive trigger (tearing down deprecated/integration roles) and an explicit negative case with the named alternative (`members_remove_role` for removing a role from one user). This is the full when/when-not/alternatives pattern.

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