Skip to main content
Glama

Supergreen WhatsApp

edit_message

Idempotent

Edit the text of a previously sent WhatsApp message.

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": {
      "messageId": "<messageId>",
      "newText": "<newText>"
    },
    "name": "edit_message"
  }
}

Input Schema

NameRequiredDescriptionDefault
newTextYesThe new text for the message
messageIdYesID of the message to edit (returned from sendMessage)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, idempotentHint=true, destructiveHint=false and openWorldHint=true, so the safety profile is covered structurally. The description adds that the target is an existing, already-sent message, but it does not disclose failure modes (nonexistent messageId, editing another user's message, time-window limits) or whether the original text is recoverable.

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?

A single sentence with zero filler, front-loading the action and the target resource. Nothing is redundant or buried.

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 simple two-parameter mutation tool with full schema coverage and informative annotations, the description is nearly sufficient. It still omits the constraints an agent would need to avoid failed calls, notably ownership of the message and WhatsApp's limited editing window, and says nothing about what a rejected edit returns.

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% and both parameters are required, so the schema fully documents messageId and newText. The description adds no syntax, format, or length guidance beyond what the schema already provides, 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?

The description states a specific verb ('Edit') and resource ('the text of a previously sent WhatsApp message'), making it distinguishable from send_message and delete_message without opening a schema. It stops short of explicitly naming a sibling or stating scope limits (e.g., only your own messages), so it is clear but not fully differentiated.

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?

The phrase 'previously sent' implies the message must already exist, which implicitly rules out editing drafts or unsent content. However, there is no explicit when-to-use guidance, no mention of alternatives such as send_message for new content, and no statement about prerequisites or conditions under which the edit would be rejected.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources