Skip to main content
Glama

wa_delete_message

Delete a previously sent WhatsApp message for everyone by providing the chat JID and message ID, revoking it from all recipients.

Instructions

Delete (revoke, for everyone) a message previously sent by the connected number..

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": {
      "jid": "<jid>",
      "message_id": "<message_id>"
    },
    "name": "wa_delete_message"
  }
}

Input Schema

NameRequiredDescriptionDefault
jidYesChat/group JID the message lives in
message_idYesMessage ID (stanza id) to delete

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.0.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations provided, the description carries the full burden and does disclose the key behavioral trait: the delete is a revoke that applies to everyone in the chat, not just the caller. It stops there, saying nothing about irreversibility, what recipients see (tombstone/'message deleted'), any time window for revoking, or required permissions in group chats.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single front-loaded sentence with the scope-defining detail ('for everyone') in parentheses right after the verb; nothing extraneous. Minor blemish: the trailing double period suggests a typo, keeping it from a 5.

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?

For a simple two-parameter destructive operation with a fully documented schema and no output schema, the description supplies everything needed to call it correctly: what it does, that the effect is global, and that it only applies to messages sent by the connected number. Return-value details are not required here.

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 both required parameters (jid, message_id) are already documented in the schema. The description adds no new parameter-level meaning such as JID format examples or how to obtain the stanza id, so the baseline 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 ('Delete') and resource ('a message previously sent by the connected number'), and adds the crucial clarification 'revoke, for everyone' that distinguishes a revoke from a local hide. It does not explicitly name how it differs from siblings like wa_edit_message or wa_channel_delete, so it stops short of a 5.

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?

Usage is implied rather than stated: the phrase 'previously sent by the connected number' is an eligibility constraint (you can only revoke your own messages), which is genuinely useful. However, there is no explicit when-not guidance, no mention of alternatives such as wa_edit_message, and no statement about group-admin permissions or revoke time limits.

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