Skip to main content
Glama

edit_message

Modify the text of one of your own sent WhatsApp messages by providing the chat, message ID, and new text. Correct or update previously sent messages directly.

Instructions

Edit the text of one of your own sent 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>",
      "text": "<text>"
    },
    "name": "edit_message"
  }
}

Input Schema

NameRequiredDescriptionDefault
chatYesChat: phone number like +911234567890, or a JID (…@s.whatsapp.net, …@g.us).
textYes
message_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.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 at all, the description carries the full burden for a mutation tool, and it discloses only the ownership precondition. It says nothing about time-window restrictions on editing sent messages, whether the edit is visible to recipients, whether prior text is preserved, or what happens when the message is not editable.

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 filler or redundancy. Its brevity is appropriate in form, though it borders on under-specification rather than pure conciseness.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a three-required-parameter write operation with no annotations and no output schema, the definition is too thin. It leaves the agent without the edit-window constraint, the origin of message_id, and any indication of what a successful response or a failure looks like.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is only 33% — only "chat" is documented — so the description must compensate. It clarifies that "text" is the replacement content and that "message_id" targets one of the caller's own sent messages, but it gives no hint about where a valid message_id comes from (e.g., get_messages) or its format.

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?

The description names a specific verb ("Edit") and a precise resource ("the text of one of your own sent messages"), which is enough for an agent to distinguish it from delete_message, react_message, and send_message without opening any schema. It loses a point only because the differentiation is implicit rather than stated.

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 only implied: the tool applies when an already-sent message needs new text. The phrase "one of your own" does encode a real precondition (ownership), but there is no explicit when-not guidance, no mention of alternatives like delete plus resend, and no stated limits on editing.

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