Skip to main content
Glama

Bulk delete messages

bulk_delete_messages
Destructive

Delete up to 100 recent messages in a Discord channel, optionally filtered by author or text. Previews the action first and requires a confirmation token to proceed.

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 the exact list it would remove plus a confirm_token; repeating the call with the token deletes them.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
channelYesChannel name or ID.
guildNoGuild (server) name or ID. Omit to use the default guild.
countNoHow many recent messages to scan. Default 50.
from_authorNoOnly delete messages whose author name matches this.
containsNoOnly delete messages containing this text.
dry_runNo
confirm_tokenNo
Behavior4/5

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

Annotations already indicate destructive behavior. Description adds the two-step confirmation mechanism and the 14-day age constraint, which are crucial behavioral details beyond the annotation. Does not cover permission requirements, but overall sufficient.

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?

Two concise sentences. Front-loads the core action and filters, then adds safety and constraint info. No wasted words.

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?

Even without an output schema, the description explains what the first call returns (list + confirm_token), which is sufficient for a destructive tool. Covers key constraints and usage flow.

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 covers 71% of parameters with descriptions. Description adds meaning by explaining the role of `dry_run` and `confirm_token` in the two-step process. Provides context for filters but does not add much to parameter syntax.

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?

Description clearly states the action (delete many recent messages) and scope (2 to 100, optionally filtered by author or text). Distinguishes from siblings like `delete_message` (single) and `bulk_ban` (different resource).

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?

Provides important usage context: cannot delete messages older than 14 days, and explains the safe two-step call pattern (preview then confirm with token). Could be improved by explicitly mentioning when to use alternatives like `delete_message` for single messages.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/OrygnsCode/Omnicord'

If you have feedback or need assistance with the MCP directory API, please join our Discord server