Skip to main content
Glama
razvangirgiz

wazap-mcp

by razvangirgiz

Delete a WhatsApp message

delete_message
Destructive

Retract a previously sent WhatsApp message within the 2-day window. Removes it from the conversation for all participants to fix mistakes or accidental sends.

Instructions

Retract a message. DESTRUCTIVE and visible to everyone in the chat — confirm with the user first. Only works on messages the linked account sent, and only within 2 days of sending.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
message_idYesMessage id from read_messages / search_messages / get_message, e.g. "false_4072...@s.whatsapp.net_3EB0..."
for_everyoneNoRetract for all participants (WhatsApp supports no other kind of delete here)
Behavior5/5

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

Beyond the annotations' destructiveHint=true, the description discloses that the retraction is "visible to everyone in the chat" (blast radius), that only the linked account's own messages are eligible (auth/permission limitation), and the 2-day time window. These are exactly the kinds of concrete behavioral details — what gets destroyed and under what constraints — that the annotations' booleans cannot express. No contradiction exists between the warnings and the readOnlyHint=false/destructiveHint=true flags.

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 tightly written sentences, each earning its place: the operation itself, the destructive warning with user-confirmation protocol, and the constraints. The most critical safety information ("DESTRUCTIVE") is front-loaded immediately after the verb, exactly where an agent will see it before calling the tool.

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?

For a 2-parameter destructive operation with no output schema, the description covers all essential call-time knowledge: side effects (visible to all), pre-conditions (own message, within 2 days), and user-consent requirements. The only minor gap is that it doesn't describe error behavior or what happens with the default for_everyone=false when a user expects a private delete — but the schema annotation largely covers that.

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% — both message_id and for_everyone are fully documented with provenance guidance and semantic clarifications (e.g., "WhatsApp supports no other kind of delete here"). The description adds no parameter-specific meaning beyond the schema, but per the baseline rule, 3 is appropriate when the schema does the heavy lifting.

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?

"Retract a message" is a specific verb-plus-resource that unambiguously states a delete operation, reinforced by the title "Delete a WhatsApp message." The description is clearly distinct from siblings like edit_message or forward_message because the DESTRUCTIVE warning and visibility consequence leave no doubt this is a removal, not a modification, operation.

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 gives explicit exclusions — "only works on messages the linked account sent" (privilege constraint) and "only within 2 days of sending" (temporal constraint) — which tell an agent when not to attempt deletion. It also includes workflow guidance ("confirm with the user first"). However, it doesn't name alternatives like edit_message for cases when the 2-day window has passed, which would elevate it to a 5.

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/razvangirgiz/wazap'

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