Skip to main content
Glama
whatsapp-mcp

whatsapp-mcp

by vimal-v-2006

Delete WhatsApp message

whatsapp_delete_message

Delete or revoke a WhatsApp message in a specified chat by passing the message ID returned from reading messages.

Instructions

Delete (revoke) a message in a chat. Use the message id from whatsapp_read_messages.

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": {
      "chat": "<chat>",
      "message_id": "<message_id>"
    },
    "name": "whatsapp_delete_message"
  }
}

Input Schema

NameRequiredDescriptionDefault
chatYesChat JID or name
from_meNotrue if you sent the message (default true)
message_idYesMessage id from whatsapp_read_messages

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations at all, the description carries the full burden of behavioral disclosure. It does add real value by equating delete with 'revoke', implying a recall-style operation rather than a local hide, but it omits whether the revoke applies for all participants, whether it is irreversible, and what permissions or time limits apply.

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 short sentences with zero filler, and the core action is front-loaded before the prerequisite. Every clause contributes either the action or the id prerequisite.

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 small three-parameter tool with no annotations and no output schema, the definition covers the action and the id source adequately. What an agent still cannot infer is the irreversibility, scope (for-everyone vs. local), and any error conditions, which matter for a destructive mutation.

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 all three parameters, including the `from_me` default, are already documented structurally. The description's note about the id origin duplicates the schema's own text ('Message id from whatsapp_read_messages') and adds no new parameter meaning, so the baseline of 3 applies.

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?

States a specific verb and resource ('Delete (revoke) a message in a chat'), and the parenthetical 'revoke' meaningfully narrows what kind of deletion this is. The second sentence ties the tool to whatsapp_read_messages as the id source, which implicitly separates it from send/read siblings, though no sibling is explicitly named as an alternative.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is a clear workflow precondition ('Use the message `id` from whatsapp_read_messages'), which tells the agent it must read first. However, there is no guidance on when deletion is inappropriate, whether the message must be one you sent, or what happens past WhatsApp's revocation window.

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