Skip to main content
Glama

delete_message

Revoke a message you sent so it's deleted for everyone in the chat. Requires the chat ID, message ID, and confirm:true to complete the deletion.

Instructions

Revoke (delete for everyone) one of your own messages. Requires confirm:true.

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": "delete_message"
  }
}

Input Schema

NameRequiredDescriptionDefault
chatYesChat: phone number like +911234567890, or a JID (…@s.whatsapp.net, …@g.us).
confirmNoMust be true to actually delete.
message_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.8/5.0
Behavior3/5

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

No annotations exist, so the description carries the full burden; it does disclose the key behavior that deletion is for everyone (affecting recipients) and that a confirm:true gate is mandatory. It omits irreversibility, any time-window limits on revocation, and what happens on failure (e.g., message not yours, chat not found).

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?

Two tight sentences, front-loaded with the effect and followed by the prerequisite; no filler. Slightly terse given the destructive nature of the operation.

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 destructive 3-parameter tool with no annotations and no output schema, the definition covers the effect and the confirmation gate but leaves out irreversibility, revocation time limits, and failure behavior, which an agent needs before invoking.

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 67%: chat and confirm are documented in the schema, and the description usefully reinforces that confirm must be true. message_id has no schema description, and the description only indirectly implies it must reference one of your own messages, adding little beyond the structured fields.

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?

States a specific verb (revoke/delete) plus the resource (a message) and disambiguates the semantics of deletion as "delete for everyone" rather than local. It also scopes it correctly: only your own messages, which an agent can act on directly.

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?

Gives a clear precondition (must be one of your own messages) and the operational requirement confirm:true, but never contrasts it with edit_message or other sibling tools, nor says what to do if the message isn't yours. Clear context, no explicit alternatives.

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