Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
WA_MCP_AUTH_DIRNoSession folder for the persisted WhatsApp credentials. Defaults to `<repo>/auth`.
WA_MCP_FILE_ROOTNoA `;`-separated list of absolute paths extending the sandbox file roots (defaults to `<authDir>/media` and `<authDir>/files`) used by the code-mode `wa.files` surface.
WA_MCP_LOG_LEVELNoPino log level for Baileys. Defaults to `silent`.
WA_MCP_WEBHOOK_URLNoInbound push target. When set, the server POSTs every inbound message and every delivery/read receipt to that endpoint as JSON.
WA_MCP_WEBHOOK_SECRETNoAdds an `x-wa-mcp-signature: sha256=<hmac>` header over the raw webhook body.
WA_MCP_WEBHOOK_TIMEOUT_MSNoPer-attempt webhook delivery timeout in milliseconds. Defaults to 5000.

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
send_messageA

Send a WhatsApp text or media message (image/video/audio/document). Optionally quote a message with reply_to. Returns {ok,data,error}. If not paired: run node dist/cli.js pair.

send_locationC

Send a location pin (latitude, longitude, optional name and address).

send_contactB

Send one or more contact cards (name, phone, optional email).

send_stickerC

Send a sticker from a local .webp file.

react_messageB

React to a message with an emoji (empty string removes the reaction).

mark_readB

Mark a chat as read (or a single message with message_id).

get_profileA

Get the linked WhatsApp account (number, JID, name).

search_contactsB

Search contacts and chat names by name or phone number.

search_messagesB

Full-text search across cached messages, newest first.

list_chatsA

List recent chats (id, name, last message timestamp), newest first.

get_chatB

Metadata for one chat: name, group flag, last timestamp, unread, cached message count.

get_messagesB

Get recent messages in a chat (oldest first within the returned window).

get_last_interactionB

Most recent cached message exchanged with a contact or group.

get_message_contextB

Window of messages around one message id (before/after), for replying in context.

get_group_infoC

Group metadata: subject, owner, description, creation time, participants.

download_mediaB

Download media from a recent message to local disk and return the file path.

edit_messageC

Edit the text of one of your own sent messages.

delete_messageA

Revoke (delete for everyone) one of your own messages. Requires confirm:true.

send_typingC

Show or clear the typing/recording indicator in a chat.

list_contactsB

List every known contact and chat name (alphabetical), optionally filtered by a name or number.

get_new_messagesA

Messages at or after a timestamp (seconds), oldest first — cursor-style polling.

wait_for_messagesA

Long-poll up to 60 s: return as soon as a new message arrives (optionally in one chat). timed_out=true when nothing arrived.

leave_groupB

Leave a group (your account is removed from it). Requires confirm:true.

group_participantsA

Add, remove, promote or demote group participants (admin rights required for most actions).

get_group_inviteA

Get the group invite code and link; reset=true revokes it and returns a fresh one.

update_groupA

Change the group subject and/or description (admin required).

create_groupC

Create a new group with a subject and initial participants.

get_statusB

Connection status: paired | pairing | not_paired, uptime, last reconnect.

get_message_statusA

Delivery/read status of messages you sent: sent, delivered, read, played or error. Returns the status of one message, or of every tracked message when message_id is omitted.

sync_contactsA

Ask WhatsApp to resend the contact list, persist every contact, and report {synced, total}.

get_webhook_statusA

Status of the inbound webhook sink (WA_MCP_WEBHOOK_URL): enabled, url, delivered/failed counts, last error.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

B3.3/5.0

Scored across 31 tools

Disambiguation4/5

Tools are mostly cleanly separated by resource and action (send_*, get_*, search_*, group_*), but there is a cluster of retrieval tools whose boundaries blur: get_messages, get_new_messages, wait_for_messages, get_last_interaction, and get_message_context all return message windows with subtly different semantics. Similarly, list_contacts vs search_contacts vs sync_contacts require reading descriptions carefully. The descriptions do enough to disambiguate, but misselection is plausible for the polling/history family.

Naming Consistency4/5

Strong verb_noun snake_case pattern throughout (send_message, create_group, search_messages, download_media), with consistent get_/list_/search_ prefixes. The main deviation is group_participants, which is a bare noun phrase that hides multiple actions (add/remove/promote/demote) rather than following the verb_noun convention. Minor inconsistency otherwise.

Tool Count3/5

31 tools is heavy and pushes past the comfortable range, though the domain (messaging, contacts, groups, media, connection status) is genuinely broad rather than padded with duplicates. Some tools feel like variations on the same need — three separate message-polling tools plus get_last_interaction and get_message_context — and could be consolidated. The count is defensible but sits at the borderline of being unwieldy.

Completeness4/5

Coverage is impressive: send (text/media/sticker/location/contact), receive and poll, history/context, reactions, edits, deletion with confirm, groups (create, update, participants, invite, leave), contacts sync/search, media download, and connection/webhook health. Notable gaps remain around blocking/unblocking contacts, joining a group from an invite link (you can fetch the link but not join), and message forwarding. These are workaround-able but limit full lifecycle coverage.