Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
WA_AI_KEYNoAPI key for the OpenAI-compatible AI endpoint.
WA_AI_URLNoOpenAI-compatible endpoint URL used for AI auto-reply of incoming DMs.
WA_AI_MODELNoModel name used for AI auto-reply (e.g. WA_AI_MODEL=deepseek-v4.1-flash-abliterated).
WA_CALL_POLICYNoAuto-handling policy for incoming calls: reject (default) | ignore | accept.reject
WA_SESSION_DIRNoDirectory where the linked-device session credentials are stored locally.
WA_ENABLE_CALLSNoEnable the optional zapo-js layer that answers/rejects/ends real WhatsApp voice calls.false
WA_PHONE_NUMBERNoYour WhatsApp phone number, used to pair by code (e.g. set in .env and run the pair script).
WA_ALLOWED_TOOLSNoTool allowlist — expose only the tools you choose (read-only, send-only, or everything).
WA_DAILY_SEND_CAPNoAnti-ban daily cap on the number of sends (default 1000).1000
WA_SEND_MIN_GAP_MSNoAnti-ban send pacing: minimum gap in milliseconds between sends (default 1.2s).1200

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
wa_statusB

Connection status of the WhatsApp session (connected account, pairing state, chats known).

wa_profile_pictureA

Get the current WhatsApp profile picture URL for a JID (user, group or channel). Returns null when the target has no picture or it is private.

wa_autoreplyB

View or configure the business auto-responder for incoming DMs (never groups). Reply once per sender per cooldown; different text inside/outside business hours.

wa_update_profileA

Update the connected number's profile: name (max 25), status/about (max 139) and/or profile picture (local file path). Pass only the fields to change.

wa_typingA

Show a typing indicator ("composing…") or recording indicator in a chat for ~5s. Makes bot replies feel human; also fires automatically before AI auto-replies.

wa_send_stickerA

Send a local image file as a WhatsApp sticker (auto-converts to webp 512x512). Works on any chat.

wa_download_mediaA

Download the media (image/video/audio/document/sticker) from a recent incoming or outgoing message in a chat and save it to a local file.

wa_privacyA

View or change this number's privacy settings: last seen, online status, profile photo, about/status, read receipts, who can add you to groups.

wa_healthA

Health snapshot: uptime, send/receive counters, auto-reply stats, pacing state. Handy for monitoring.

wa_read_messagesA

Read recent messages from the on-disk store for one chat (DM or group). Messages are stored as they arrive while this session is connected — includes sender, text, media flags and message ids.

wa_forward_messageA

Forward a stored message natively to another chat (no download/re-upload — WhatsApp-native forward).

wa_callsA

Status of the REAL voice-call layer (zapo-js): connected device, call policy, totals and the 10 most recent calls. Enable with WA_ENABLE_CALLS=true.

wa_calls_pairB

Pair the CALLS device (zapo-js runs as a second linked device so real voice calls work alongside Baileys messaging). Returns a pairing code to enter on the phone.

wa_call_actionB

Accept, reject or end a WhatsApp call by id (or "latest"). Incoming-call handling follows WA_CALL_POLICY (reject|ignore|accept).

wa_send_audioB

Send an audio file as a voice note (push-to-talk, with waveform) or as a regular audio message.

wa_send_videoC

Send a video file with an optional caption (can send as a round video note).

wa_search_messagesA

Search every stored message across ALL chats (the on-disk store) by keyword. Returns chat, sender, text and message id — great for "what did John say about X".

wa_contacts_checkA

Check which phone numbers are registered on WhatsApp before messaging them (prevents failed sends).

wa_blocklistB

List everyone this number has blocked.

wa_business_profileA

Fetch the WhatsApp Business profile of a contact or your own number (description, website, email, address, business hours when set).

wa_fetch_statusB

Read a contact's About text (the "status" line under their name).

wa_dm_ephemeralA

Turn disappearing messages on/off for a DM: off, 24h, 7 days or 90 days.

wa_call_policyA

Change how incoming WhatsApp calls are handled at runtime: reject (auto-decline), ignore (just log), or accept (answer). Requires the calls layer enabled.

wa_logoutA

Unlink this session from the WhatsApp account (the linked device is removed on the phone too). Requires confirm: true.

wa_webhookA

Register or clear an HTTP webhook URL. Every incoming message is POSTed there as JSON (event, chat, from, text, media_type, id) — build your own bots on top. Requires confirm to set.

wa_rule_addA

Add an auto-reply rule: when an incoming DM matches keywords, reply with fixed text (checked before the AI/static reply) and optionally alert the owner. match_all=false = ANY keyword hits.

wa_rule_listA

List all auto-reply rules, VIP numbers and handoff settings.

wa_rule_deleteA

Delete an auto-reply rule by id (see wa_rule_list).

wa_vip_addA

Mark a number as VIP — their messages always trigger an owner notification (WA_OWNER_NUMBER).

wa_handoffA

Pause or resume ALL automation (rules, AI/static auto-reply) for one chat — or set how long a manual owner reply pauses a chat. Use when a human takes over the conversation.

wa_post_statusB

Post a WhatsApp Status (story) — text, an image or a video. Visible to your status contacts for 24h.

wa_poll_listA

Find recent poll messages in the store (across all chats) so you can vote with wa_poll_vote.

wa_poll_voteB

Cast an E2EE vote on a poll (multi-select respected). Finds the poll in the store, validates options, encrypts the vote exactly the way WhatsApp expects.

wa_live_locationA

Share live (moving) location in a chat: start a live session, push coordinate updates, or stop it. Updates should be sent every ~30s while active.

wa_profile_listB

List every connected WhatsApp number (profile) in this server: status, which is active, chats known. All profiles run in parallel.

wa_profile_addA

Add + pair ANOTHER WhatsApp number as a new profile (its own linked device, pacing budget and store). Returns a pairing code — enter it on that phone.

wa_profile_switchA

Switch the ACTIVE profile — all other tools (send, read, groups…) then operate on that number. Every profile stays connected in the background.

wa_profile_removeA

Log out and delete a profile (its session files are removed). The default profile cannot be removed. Requires confirm.

wa_broadcast_scheduleB

Schedule a recurring broadcast: one message to many chats/groups on a daily or weekly schedule (or once). Paced per anti-ban rules. Runs inside this server.

wa_broadcast_listB

List all scheduled broadcasts.

wa_broadcast_cancelC

Cancel a scheduled broadcast by id.

wa_qrA

Current login QR string (only while status is "qr"). Scan it from a terminal with npm run pair for a rendered QR.

wa_list_chatsB

List known chats (DMs, groups, channels) seen by this session, most recent first.

wa_list_groupsA

List groups this account is in (id + subject + participant count).

wa_group_metadataC

Full metadata for one group JID (subject, owner, participants with admin flags).

wa_send_textC

Send a text message to a user number, group JID, or channel JID.

wa_send_documentB

Send a document (local file) to a user number or group JID. Optional file_length (bytes) overrides the size WhatsApp displays for the document — the file itself is sent unchanged (used by the -fakedoc prank).

wa_send_imageB

Send an image as a photo with an optional caption — from a local file OR a URL (e.g. an AI-generated image on a CDN).

wa_channel_infoA

Resolve a WhatsApp Channel invite link (whatsapp.com/channel/) to its JID, name and follower count.

wa_post_channelA

Post an update to a WhatsApp Channel. The connected number must be an ADMIN of the channel. Accepts a channel JID or invite link. Optionally attach an image (local file path); the text then becomes the image caption.

wa_pin_messageA

Pin (or unpin) a message in a WhatsApp chat or group. The message must have been sent by the connected number (fromMe). type: 1 = pin for all (default), 2 = unpin for all.

wa_delete_messageA

Delete (revoke, for everyone) a message previously sent by the connected number..

wa_edit_messageC

Edit the text of a message previously sent by the connected number..

wa_send_pollB

Send a poll to a chat or group. options: 2-12 choices; selectable_count 1 = single choice (default), >1 = multiple choice up to that many..

wa_send_locationC

Send a location pin to a chat or group..

wa_send_contactC

Send a contact card (vCard) to a chat or group..

wa_group_invite_linkA

Get the invite link of a group (the bot must be a member; admin needed to revoke). Set revoke=true to revoke the current link and issue a fresh one..

wa_chat_modifyB

Modify a chat from the connected account: archive/unarchive, pin/unpin the CHAT (chat list), mute (mute_hours, default 8) / unmute, mark read/unread..

wa_block_userC

Block or unblock a WhatsApp user from the connected account..

wa_group_createB

Create a new WhatsApp group with the connected number as admin. participants: phone numbers or JIDs (at least 1).

wa_group_renameA

Change a group subject (name). The connected number must be an admin if the group is locked.

wa_group_set_descriptionB

Set or clear a group description. The connected number must be an admin if the group is locked.

wa_group_settingsA

Change a group setting: announce = only admins can message; not_announce = everyone can message; locked = only admins can edit group info; unlocked = everyone can edit group info.

wa_group_participantsA

Add, remove, promote or demote group participants. The connected number must be a group admin. Returns the per-participant status codes from WhatsApp.

wa_group_ephemeralB

Set disappearing messages for a group: expiration_seconds 0 = off, 86400 = 24 hours, 604800 = 7 days, 7776000 = 90 days.

wa_group_joinB

Join a group from an invite code or a chat.whatsapp.com/invite link.

wa_group_leaveC

Leave a group.

wa_group_requestsA

Manage group join requests: action list shows pending requests; approve/reject take participants (numbers or JIDs). Admin only.

wa_broadcast_groupsA

Broadcast one message (text, or an image with the text as caption) to many groups at once. Pass group_jids, or all_groups=true to reach every group the account is in. Max 60 targets, sequential with a delay between sends (default 1500 ms) to stay gentle on WhatsApp rate limits.

wa_broadcast_chatsA

Broadcast one message (text, or an image with the text as caption) to a list of individual chats (phone numbers or JIDs). Max 60 targets, sequential with a delay between sends (default 1500 ms). Only message people who expect to hear from the account.

wa_broadcast_channelsA

Broadcast one post (text, or an image with the text as caption) to several WhatsApp Channels at once. The connected number must be an ADMIN of each channel. Channels may be JIDs or invite links. Max 20 channels.

wa_channel_subscriptionB

Follow, unfollow, mute or unmute a WhatsApp Channel from the connected account. Channel may be a JID or an invite link.

wa_channel_subscribersB

Get a WhatsApp Channel subscriber COUNT from its metadata. WhatsApp does not expose subscriber identities to anyone.

wa_channel_fetch_messagesC

Fetch recent posts of a WhatsApp Channel (server ids + timestamps) — useful for automation and moderation checks.

wa_channel_remove_pictureC

Remove a WhatsApp Channel's profile picture. Admin only.

wa_channel_deleteA

DELETE a WhatsApp Channel permanently. The connected number must be the channel owner. This cannot be undone.

wa_schedule_sendA

Schedule a text message to any chat, group or channel — once, or repeating daily/weekly. Automation runs inside this server process (checked every 20 seconds; if the server is offline at the due time, the message is sent on the next check after it reconnects). Give at (ISO time) or delay_minutes.

wa_list_scheduledA

List all pending scheduled messages (automation queue).

wa_cancel_scheduledB

Cancel a scheduled message by its id (from wa_schedule_send / wa_list_scheduled).

wa_export_session_zipA

Export a WhatsApp session folder as a single ZIP file, for backup or moving the session to another host. WARNING: the ZIP contains FULL login credentials for that WhatsApp account - anyone with the file can use the account. Keep it private and never share it publicly.

wa_set_channel_pictureA

Set a WhatsApp Channel profile picture from a local image file. The connected number must be an ADMIN of the channel.

wa_create_channelB

Create a new WhatsApp Channel owned by the connected number. Returns the channel metadata (JID, name, invite).

wa_update_channelB

Rename a channel and/or update its description. The connected number must be an ADMIN of the channel.

wa_send_reactionC

React to a message with an emoji.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

B3.2/5.0

Scored across 84 tools

Disambiguation4/5

Most tools target a clearly distinct resource+action (send_text vs send_image vs post_channel vs group_participants). A few boundaries blur: wa_schedule_send/wa_list_scheduled/wa_cancel_scheduled sit alongside wa_broadcast_schedule/wa_broadcast_list/wa_broadcast_cancel, and wa_read_messages vs wa_channel_fetch_messages vs wa_search_messages overlap conceptually. Also 'profile' is overloaded across wa_profile_add/switch/remove (account profiles), wa_update_profile (own profile), and wa_business_profile (contact business card).

Naming Consistency4/5

All tools share a wa_ prefix with snake_case, and most are verb_noun (wa_send_text, wa_create_channel, wa_group_rename). A notable minority are bare nouns or ambiguous verbs (wa_status, wa_health, wa_qr, wa_privacy, wa_autoreply, wa_handoff, wa_typing), which breaks the pattern slightly but stays readable and predictable.

Tool Count2/5

84 tools is far beyond a workable surface for an agent; even for a broad WhatsApp automation domain this forces constant tool-selection overhead and near-duplicate families (six broadcast tools, four profile tools, six channel-admin tools). The scope does justify many capabilities, but it should have been consolidated (e.g. one broadcast tool with a target type) rather than expanded to this size.

Completeness5/5

Coverage is near-exhaustive: messaging, media, groups lifecycle and admin, channels, statuses, polls, calls, contacts, privacy, scheduling, broadcasting, auto-reply rules, webhooks, multi-profile and session export. Lifecycle operations (create/update/delete/leave/join/pin/revoke) exist for essentially every resource, leaving no obvious dead ends.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues