Skip to main content
Glama

Delete message

delete_message
Destructive

Deletes a specific message in a Discord channel using a two-step confirmation process to prevent accidental deletion. Preview first, then confirm with a token.

Instructions

Delete one message. Safe to call directly: the first call deletes nothing and returns a preview plus a confirm_token, and the deletion only happens when the call is repeated with that token. Use this two-step flow to let the user approve through the conversation rather than telling them to delete things by hand in Discord. Supports dry_run.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
channelYesChannel name or ID.
guildNoGuild (server) name or ID. Omit to use the default guild.
message_idYesID of the message to delete.
reasonNoAudit log reason.
dry_runNo
confirm_tokenNoToken from a previous preview of this exact deletion.
Behavior5/5

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

Annotations already flag destructiveHint true. The description goes beyond by detailing the safe preview/confirm mechanism, dry_run support, and the two-step invocation pattern. This gives the agent full understanding of the tool's behavior.

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?

Three sentences with no fluff: first states purpose, second explains safety mechanism, third provides usage guidance. Every sentence adds value and is front-loaded.

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

Completeness4/5

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

The description adequately covers key aspects: purpose, safety, dry_run. While there's no output schema, the description implies a preview response. For a mutation tool with destructiveHint, this is sufficient.

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 83% (5/6 params described). The description adds minimal value: it mentions 'Supports dry_run' which the schema doesn't describe for that param, but doesn't elaborate on other parameters. The schema already provides adequate descriptions.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states 'Delete one message' and mentions dry_run, which is specific. It distinguishes from siblings like bulk_delete_messages by explaining the two-step flow for preventing accidental deletion. However, the preview/confirm mechanism could be more explicitly stated as the tool's main purpose.

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?

The description explicitly explains the two-step flow: first call returns preview and token, only second call with token actually deletes. It advises using this flow for user approval rather than manual deletion. This provides clear context on when and how to use safely.

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