Skip to main content
Glama
discord-mcp

discord-mcp

channels_delete

DestructiveIdempotent

Permanently delete a Discord channel or close a DM. Irreversible, so it requires explicit confirmation and is suited for tearing down stale or compromised channels.

Instructions

Purpose: Delete a channel (or close a DM). DESTRUCTIVE - IRREVERSIBLE.

When to use: - Tear down stale or compromised channels.

When NOT to use: - Just hiding from a role → use channels_modify_permissions.

Returns: {deleted, channel_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": {
      "channel_id": "<channel_id>"
    },
    "name": "channels_delete"
  }
}

Input Schema

NameRequiredDescriptionDefault
__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.
channel_idYesChannel to delete (IRREVERSIBLE)
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.6/5.0
Behavior5/5

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

Annotations already declare destructiveHint=true and idempotentHint=true, but the description goes further: it names the confirmation gate (ConfirmRequired), states that both __confirm:true and MCP_DRY_RUN=false are required for an actual delete, and warns that otherwise a DRY_RUN_PREVIEW is returned. That preconditions-and-failure-mode detail is exactly the kind of context annotations cannot convey.

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?

Front-loaded with purpose and the DESTRUCTIVE warning, then cleanly sectioned into when/when-not/returns/security. Minor waste: the 'Returns' line duplicates the existing output schema, and the dry-run rule repeats the __confirm schema description.

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 destructive, irreversible mutation the description covers consequence, preconditions, audit trail, the dry-run escape hatch, and the non-destructive alternative. Nothing an agent needs before calling it is missing, and the redundant return-value line is harmless given an output schema exists.

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 channel_id, audit_reason and __confirm are all documented in the schema. The description's confirm/dry-run sentence largely restates the __confirm schema text rather than adding new meaning, so the baseline 3 applies.

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 channel (or close a DM)') and immediately flags the consequence. It is clearly distinguishable from siblings like channels_modify_permissions, which it explicitly names as the non-destructive alternative.

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' (tear down stale or compromised channels) and 'When NOT to use' (hiding from a role → use channels_modify_permissions) sections. The agent has both the positive selection criterion and the redirect to the correct sibling.

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