Skip to main content
Glama

wa_edit_message

Edit a message already sent by the connected WhatsApp number by specifying its chat JID, message ID, and new text.

Instructions

Edit the text of 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>",
      "text": "<text>"
    },
    "name": "wa_edit_message"
  }
}

Input Schema

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

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.0.0

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations supplied, the description carries the full disclosure burden and delivers very little: it does not say whether the edit is visible to recipients, whether there is a platform edit deadline, what happens if the message was not sent by this account, or what the call returns. Only the sender-ownership precondition is hinted at.

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 no padding, though it ends with a stray double period. It earns its brevity for a three-parameter tool but has almost nothing to say beyond the title-level claim.

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 three-parameter mutation with complete schema coverage and no output schema, the definition is sufficient to construct a call. It is not sufficient to predict the outcome: failure modes, edit-window behavior, and result shape are absent, and with no annotations there is no structured fallback covering them.

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 jid, message_id, and text are already documented with the schema's own descriptions and constraints (maxLength 4096). The description adds no syntax, format, or ID-provenance detail beyond confirming the edit target is a previously sent message, which is the baseline-3 case.

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 ("Edit the text of a message") plus a scoping constraint ("previously sent by the connected number"), which separates it from wa_delete_message and wa_pin_message by implication. It stops short of naming an alternative explicitly, so it lands at 4 rather than 5.

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

Usage Guidelines2/5

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

There is no explicit when-to-use guidance, no mention of a time window for edits, and no pointer to a related tool when the edit is rejected. The only usage constraint is the embedded phrase about messages sent by the connected number, which an agent must infer applies as a precondition rather than reading it as stated guidance.

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