Skip to main content
Glama

WA MCP

react_to_message

Idempotent

Reacts to a WhatsApp message with an emoji (like tapping and holding a message on the phone), in a 1:1 chat or a group, on the other person's messages or the user's own. Paid plan only: on the free plan the call is refused with a note on how to subscribe. Pass the message's id from read_chat_history or search_messages; the chat, the sender and whether the user sent it are looked up automatically. A new reaction replaces the user's previous one on that message; pass emoji "" to remove it. Everyone in the chat sees the reaction, so confirm with the user first unless they asked for it. Reactions sent this way don't appear in read_chat_history afterwards; this tool's result is the confirmation. Returns { message_id, status (reacted, removed or failed), emoji, chat, error? }: chat is the conversation, with the contact fields (name; name_source: address_book, push_name, group_subject, business, phone or unresolved; canonical_jid: the JID to pass to send_message and read_chat_history; phone_jid and lid_jid: the chat's phone-number and LID forms, null when unknown or for groups; phone_display: the number as +). If the message can't be found, the error asks for chat_jid (and from_me or sender_jid); pass them only then.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
emojiYesOne emoji, e.g. 👍 ❤️ 😂 😮 😢 🙏. An empty string "" removes the user's reaction.
from_meNoOptional, only if the message isn't found: true if the user sent it (read_chat_history shows it from "Me").
chat_jidNoOptional, only if the message isn't found: the chat it is in (JID or phone number).
message_idYesThe message `id` from read_chat_history or search_messages. Not a reaction's own id.
sender_jidNoOptional, only if the message isn't found and is in a group: its `sender_jid` from read_chat_history.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Adds substantial behavior beyond the annotations: replacement semantics (a new reaction overwrites the previous one, consistent with idempotentHint), removal via empty string, plan gating, and the non-obvious fact that reactions don't show up in read_chat_history so this tool's result is the only confirmation. It also discloses side effects on other chat participants. Slight deduction only because return-value detail is packed in the same breath as behavior.

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?

Front-loads the action, then plan gate, then id source, then semantics, then return shape – a sensible order. It is long and the parenthetical enumeration of chat contact fields (name_source, canonical_jid, phone_jid, lid_jid, phone_display) is dense, but it earns its place given there is no output schema.

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?

With no output schema and a mutation tool, the description supplies the return shape, status values (reacted/removed/failed), and an error-recovery path. An agent has everything needed to invoke it correctly and interpret the result on the first attempt.

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

Parameters4/5

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

Schema coverage is already 100%, so the baseline is 3; the description goes further by explaining where message_id comes from, that chat/sender/from_me are auto-resolved, and that the three optional params are error-recovery-only. That is useful routing context, though the per-parameter explanations largely restate the schema descriptions.

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+resource (react to a WhatsApp message with an emoji) and immediately scopes it: 1:1 or group, on the other person's messages or the user's own. The phone analogy ("like tapping and holding a message") plus the explicit contrast with read_chat_history/search_messages makes it unmistakable against siblings like send_message or edit_message.

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

Usage Guidelines5/5

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

Gives explicit preconditions (paid plan only, refused with a subscribe note on free), the correct source for the required id (read_chat_history or search_messages), a social caution (everyone sees it, confirm unless the user asked), and a precise fallback trigger (pass chat_jid/from_me/sender_jid only when the message isn't found). Nothing about when to use it versus alternatives is left to inference.

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