Skip to main content
Glama
discord-mcp

discord-mcp

messages_bulk_delete

DestructiveIdempotent

Bulk-delete 2–100 Discord channel messages in one request to clear spam or raid content; this destructive action is irreversible and requires confirmation.

Instructions

Purpose: Bulk-delete 2-100 messages from a channel in one request. DESTRUCTIVE - IRREVERSIBLE.

When to use: - Sweep spam / raid messages. - Bulk cleanup after a moderation incident.

When NOT to use: - Single message → use messages_delete. - Messages older than 14 days - Discord rejects with 400.

Example: {channel_id:"111122223333444455", message_ids:["111122223333444456","111122223333444457"], __confirm:true}

Returns: {deleted, channel_id, count}.

Security: gated by ConfirmRequired precondition. 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>",
      "message_ids": "<message_ids>"
    },
    "name": "messages_bulk_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 containing the messages
message_idsYesMessage IDs to delete (2-100, all must be ≤14 days old)
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.9/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 adds material context beyond them: irreversibility, the 14-day rejection behavior, the ConfirmRequired precondition, and the requirement that the server run with MCP_DRY_RUN=false or a DRY_RUN_PREVIEW is returned. That is exactly the kind of gating and failure-mode detail 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.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Sectioned and front-loaded: the destructive/irreversible warning leads, followed by when-to-use, when-not-to-use, example, return shape, and security. Every line is scannable and none is filler; the only mild overlap is the `__confirm` note appearing in both the example and the Security line.

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 batch mutation with four parameters, the description covers scope, limits, authorization gating, sibling routing, and failure modes, and the return shape is additionally backed by a real output schema. Nothing an agent needs to invoke this safely is missing.

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 100%, so the baseline is 3; the description earns one extra point by showing a concrete call example that ties `channel_id`, `message_ids`, and `__confirm` together and by restating the two-factor authorization (flag plus MCP_DRY_RUN=false). It does not add meaning for `audit_reason`, and the `__confirm` semantics largely duplicate the schema field description.

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 (bulk-delete), resource (messages in a channel), and batch scope (2-100 in one request), and immediately contrasts with the single-message sibling `messages_delete`. An agent can distinguish this from the sibling without opening either 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?

Explicit when-to-use cases (spam/raid sweeps, post-incident cleanup) and explicit when-NOT-to-use conditions: single message → `messages_delete`, and messages older than 14 days rejected with a 400. The routing condition and the hard API limit are both spelled out.

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