Skip to main content
Glama
WhatsApp Messaging API by Retention Stack

WhatsApp Messaging API by Retention Stack

send_text_message

Send a WhatsApp text message to a contact, group, or channel.

Instructions

Send a WhatsApp text message to a contact, group, or channel.

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": {
      "chatId": "<chatId>",
      "text": "<text>"
    },
    "name": "send_text_message"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesMessage text
chatIdYesRecipient: a phone number (e.g. "14155552671"), a group ID, or a channel ID
sessionNoSession name. Leave out when using a session token (ch_live_...).me

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv2.0.1
    • addedInput schema / properties / session / default
      Added value: +"me"
    • changedInput schema / properties / session / description
      Previous value: -"Session name"New value: +"Session name. Leave out when using a session token (ch_live_...)."
    • changedInput schema / required
      Previous value: -[
      -  "session",
      -  "chatId",
      -  "text"
      -]New value: +[
      +  "chatId",
      +  "text"
      +]
  2. First observedv1.0.3

TDQS

B3.1/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full disclosure burden, yet it says nothing about authentication or session requirements even though a session parameter and session-management siblings (create_session, get_qr_code) exist. It also omits what happens on an unknown or unregistered chatId, retry/idempotency behavior, and delivery confirmation — all meaningful for an outbound message send.

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; the action and resource come first. It is appropriately sized for a simple send tool, though the terseness leaves nothing to absorb the behavioral gaps flagged elsewhere.

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 mutation tool with zero annotations and no output schema, the description should at least cover the session prerequisite and the outcome of a send. As written an agent knows what it does but not what conditions must hold before calling it or what a failure looks like.

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 all three parameters are already documented, including example phone-number formatting and the session-token caveat. The description's "contact, group, or channel" phrasing restates chatId's documented meaning without adding format rules, ordering, or constraints beyond the schema.

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 and resource ("Send a WhatsApp text message") and enumerates the recipient types (contact, group, channel), which lets an agent distinguish it from media siblings like send_file and send_image without opening a schema. It stops short of naming an alternative explicitly, so it is clear but not maximally 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?

Usage is only implied: the word "text" signals this is for plain-text content rather than attachments, and the recipient list implies the required chatId semantics. There is no explicit when-to-use versus send_file/send_image, no mention of prerequisites such as an established session, and no exclusions.

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