Skip to main content
Glama
discord-mcp

discord-mcp

by wjrosa

messages_purge

Destructive

Bulk-delete Discord messages by author, regex content, or time window, with a dry-run preview and batch handling for recent messages.

Instructions

Bulk-delete messages matching filters (author, contains regex, time window). Scans up to limit messages. dry_run=True (default) only lists what would go. Messages younger than 14 days are bulk-deleted in batches of 100; older ones are deleted one by one (slow, rate limited).

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": "messages_purge"
  }
}

Input Schema

NameRequiredDescriptionDefault
botNo
afterNo
guildNo
limitNo
authorNo
beforeNo
reasonNo
channelYes
dry_runNo
containsNo
include_botsNo
include_pinnedNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and openWorldHint=true, yet the description adds real operational detail beyond them: batching of 100 for messages under 14 days, single-deletion with rate limits for older ones, and the dry-run default. It omits the required permissions (e.g. manage_messages) and any per-call rate-limit or failure behavior, so it is strong but not exhaustive.

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?

Three compact sentences, front-loaded with the destructive action and filter set, then the safety default, then the batching caveat. The 'Scans up to `limit` messages' clause is slightly awkward but earns its place by clarifying scan semantics.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 12-parameter destructive tool with no schema descriptions, no output schema and 0% annotation-free detail, the description should cover the required channel, default inclusion of bots, exclusion of pinned messages, and the permission prerequisite. It handles the risk and performance profile well but leaves several call-critical parameters unexplained.

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 0% across 12 parameters, so the description carries the burden, and it only covers author, contains, the time window (after/before), limit and dry_run — leaving the required `channel` plus guild, bot, reason, include_bots and include_pinned undocumented. It does add meaning the schema lacks, notably that `contains` is a regex, which is genuinely useful.

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 description states a specific verb and resource ('Bulk-delete messages') plus the filter set (author, contains regex, time window) that scopes the operation, which cleanly distinguishes it from read/search siblings like messages_read and messages_search. An agent can identify this as the destructive bulk-removal tool without opening the schema.

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 gives practical usage context: the default dry_run=True only lists targets, and `limit` bounds the scan, which tells the agent to preview before committing. It stops short of explicitly naming alternatives (e.g. use messages_search to inspect matches) or stating when not to use it, so it is clear context without exclusions.

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