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

Discord MCP - Discord server management MCP for AI agents

Bulk delete messages

bulk_delete_messages
Destructive

Delete 2–100 recent Discord messages at once, optionally filtered by author or text. Preview the matching batch and confirm with a token before removal.

Instructions

Delete many recent messages at once (2 to 100), optionally filtered by author or text. Discord cannot bulk delete messages older than 14 days. Safe to call directly: the first call returns how many it would remove, with a sample of them, plus a confirm_token; repeating the call with the token deletes those same messages. Messages posted after the preview are left alone, so it works in a busy channel, such as during a raid.

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": "<channel>"
    },
    "name": "bulk_delete_messages"
  }
}

Input Schema

NameRequiredDescriptionDefault
countNoHow many recent messages to scan. Default 50.
guildNoGuild (server) name or ID. Omit to use the default guild.
channelYesChannel name or ID.
dry_runNoIf true, nothing is changed: the result shows what this call would do.
containsNoOnly delete messages containing this text.
from_authorNoOnly delete messages whose author name matches this.
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 / dry_run / description
      Added value: +"If true, nothing is changed: the result shows what this call would do."
  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 / description
      Added value: +"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."
  3. Changed1 schema field changedv1.3.0
    • removedInput schema / additionalProperties
      Removed value: -false
  4. First observedv1.0.2

TDQS

A4.5/5.0
Behavior5/5

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

Annotations only say destructive=true; the description goes well beyond that by explaining the two-step preview/confirm flow, what the preview returns (count plus sample plus confirm_token), and that messages posted after the preview are untouched so it is race-safe in a busy channel. The 14-day platform limit is exactly the kind of hard constraint an agent needs before calling.

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?

Front-loaded with the action and range, then the platform limit, then the safe-call contract. Each sentence contributes a distinct fact (scope, constraint, preview semantics, race behavior) with no filler.

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 7-parameter destructive tool with no output schema, the description covers the call contract, the confirmation mechanism, and the blast-radius constraint. The only gap is the count lower bound, which the schema itself resolves.

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 coverage is 100%, so the baseline is 3; the description mainly reinforces filters (author/text) and the confirm_token round-trip rather than adding new syntax. It also states a range of '2 to 100' while the schema allows minimum 1, an inconsistency that could mislead an agent about whether count=1 works.

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?

The opening clause names a specific verb and resource plus scope: 'Delete many recent messages at once (2 to 100), optionally filtered by author or text.' This distinguishes it immediately from the single-message sibling delete_message and from read/search tools.

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 states the operating context (recent messages, the 14-day Discord restriction) and reassures the agent that calling is safe because the first call is a preview. It does not explicitly name an alternative for older messages or for single deletions, so it stops short of full when/when-not guidance.

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