Skip to main content
Glama

discord_bulk_delete_messages

Destructive

Delete multiple recent Discord messages in one call with a dry-run preview by default; messages older than 14 days are skipped.

Instructions

Permanently delete multiple recent messages in one call. IRREVERSIBLE. SAFE BY DEFAULT: dry_run is true unless explicitly set to false, so call it first to preview, then re-call with dry_run:false to actually delete. Discord only allows bulk-deleting messages younger than 14 days; older ones are skipped. Requires the Manage Messages permission, and refuses to run without Read Message History. Returns the number deleted.

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>",
      "count": "<count>"
    },
    "name": "discord_bulk_delete_messages"
  }
}

Input Schema

NameRequiredDescriptionDefault
countYesNumber of recent messages to delete (2–100).
dry_runNoIf true (default), only reports how many would be deleted without deleting. Set false to actually delete.
channel_idYesID (snowflake) of the channel or thread to delete messages from.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv2.2.0
    • addedInput schema / additionalProperties
      Added value: +false
  2. Changed5 schema fields changedv2.0.0
    • addedInput schema / properties / channel_id / pattern
      Added value: +"^\\d{17,20}$"
    • addedInput schema / properties / count / maximum
      Added value: +100
    • addedInput schema / properties / count / minimum
      Added value: +2
    • changedInput schema / properties / count / type
      Previous value: -"number"New value: +"integer"
    • addedInput schema / properties / dry_run
      Added value: +{
      +  "default": true,
      +  "description": "If true (default), only reports how many would be deleted without deleting. Set false to actually delete.",
      +  "type": "boolean"
      +}
  3. Changed1 schema field changedv1.6.0
    • addedInput schema / properties / channel_id / description
      Added value: +"ID (snowflake) of the channel or thread to delete messages from."
  4. Addedv1.5.0
  5. Removedv1.0.0
  6. First observedv0.1.0

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true, but the description adds context the annotations cannot convey: irreversibility, the dry-run safety default and its preview-then-execute pattern, the 14-day platform limit that silently skips targets, two permission prerequisites, and a refusal condition. This is well beyond the annotation surface.

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-loads the destructive action and IRREVERSIBLE warning before the safety default and constraints. Every sentence carries a distinct fact (irreversibility, dry_run behavior, 14-day limit, permissions, return value) 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?

No output schema exists, but the description states the return value (count deleted), covers permissions, platform limits, and the safe execution pattern. Nothing an agent needs to invoke this destructive tool correctly is missing.

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, count range, and dry_run defaults are already fully documented in structured data. The description reinforces dry_run with the preview-then-recall workflow, which adds modest operational meaning, but largely restates what the schema already declares.

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 with scope qualifiers: 'Permanently delete multiple recent messages in one call.' The 'multiple ... in one call' framing distinguishes it from single-message deletion siblings without needing to name them.

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?

Gives an explicit operational workflow (call first with the default dry_run, then re-call with dry_run:false) plus hard constraints on when it will work: messages older than 14 days are skipped, Manage Messages required, Read Message History required. It stops short of naming an alternative for single-message or older-message cases.

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