Skip to main content
Glama

Send a WhatsApp message

send_message
Destructive

Send a text message to a phone number over WhatsApp. Counts as one message against the account's monthly quota.

With pacing on, messages you start are queued, including messages to known contacts. Only a reply to someone who messaged this number in the last 24 hours goes out now. The queued answer carries status: "queued" and scheduledAt, an estimated send time. Messages leave one at a time, 15–25 minutes apart by default, measured from the previous message's actual release. An offline or restricted number pauses the queue; messages that have not left wait and resume with the same spacing. message.sent arrives on the account's webhook when a queued message leaves, with WhatsApp's message id.

Group messages skip the queue. Use skipQueue: true only for a message the recipient expects now, or disable pacing with update_number and space sends yourself. A first message to someone new also uses the number's daily new-conversation budget, reported as newConversationsRemaining. Replies and groups do not use that budget. Delivery and read receipts arrive later on the account's webhook, not in this answer.

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": {
      "to": "<to>",
      "text": "<text>"
    },
    "name": "send_message"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYesRecipient: a phone number in international format (+5511988887777) or a WhatsApp address (5511988887777@s.whatsapp.net, an @lid contact, or a @g.us group).
fromNoWhich of your WhatsApp numbers sends this: its id or its phone number. Optional: with a single connected number it is resolved for you.
textYesThe message body.
humanizeNoWhether to come online, read the recipient's last message and show a typing indicator before sending. On by default, which adds a few seconds. false skips those steps, not the send queue. Configure each part per number with update_number.
skipQueueNoSend immediately instead of waiting in this number's queue. Only for a message the recipient expects right now, such as a login code or a confirmation they requested. This bypasses the configured spacing, so using it for outreach can create bursts and increase the risk of a ban. Default: off.
linkPreviewNoRender a preview card for the first link in the text. Default: on.
idempotencyKeyNoYour own unique id for this call, such as a UUID. If the call fails with no answer, call again with the same key: it runs once, and the retry gets the first answer back. Answers are kept for 24 hours.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only mark this as a non-read-only, open-world, destructive write; the description adds substantial context the annotations cannot convey: monthly quota consumption, 15–25 minute queue spacing, pausing on offline/restricted numbers, group exemptions, the daily new-conversation budget, and that delivery/read receipts arrive on the account webhook rather than in the response.

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 purpose and quota cost, then sequences queue behavior, group exception, and budget notes. It is dense and nearly every sentence carries operational value, though the pacing paragraph runs long and repeats 'spacing' concepts that could be tightened.

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, the description compensates by explaining what the answer does and does not contain — status queued, scheduledAt, newConversationsRemaining — and where asynchronous signals land (message.sent, receipts on the webhook). An agent has enough to call it and interpret the result without guessing.

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 each parameter already carries its own explanation; the description's prose largely restates the queue and skipQueue semantics. It helps frame those params in operational terms (pacing, quotas) but adds little per-parameter meaning the schema does not already supply, so the baseline of 3 applies.

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 and tightly scoped resource: 'Send a text message to a phone number over WhatsApp.' The word 'text' plus the phone/group addressing makes it distinguishable from media, location, or OTP siblings without opening their schemas, and it immediately names the quota cost of the action.

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 when-to-use and when-not-to-use guidance for the main decision point: skipQueue is only for 'a message the recipient expects now,' and using it for outreach 'can create bursts and increase the risk of a ban.' It also names an alternative path — disable pacing via update_number and space sends manually — rather than leaving the agent to infer it.

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