WhatsApp AI CLI + MCP server — lets AI agents and humans manage WhatsApp with per-contact style memory, hybrid local RAG and episodic memory
Wacon demonstrates solid tool design with clear verb-noun naming (whatsapp_status, list_chats, read_messages) and comprehensive descriptions (avg 180 chars, well above 10-char minimum). All 10 tools have input schemas with type definitions and parameter descriptions. However, output schemas are not documented in the visible code, and error handling lacks recovery guidance. Tool composition is strong, each tool has a single responsibility and outputs chain well (e.g., list_chats returns JIDs that read_messages accepts). The recall_context and summarize_episode tools show sophisticated domain modeling. Missing: explicit error classification, dry-run patterns for destructive ops, and output schema documentation.
List recent WhatsApp chats ordered by last activity, with names, JIDs, unread counts and last-message time.
Segment a chat's history into conversation episodes (separated by >3h of silence) and list them, newest first, with agent-written summaries where they exist. Episodes without summary are opportunities: read them with read_episode and consolidate them with summarize_episode.
Read all messages of one episode (by episodeId from list_episodes). Use before writing its summary.
Read recent messages from one chat (oldest first in the result). Accepts a JID (from list_chats/search_contacts) or a bare phone number. Use before_timestamp (ms) to page further back.
The strongest retrieval tool: hybrid search over the whole history combining keyword match (BM25), semantic similarity (robust to typos/slang, e.g. 'q onda' matches 'que onda'), and recency — plus any agent-written episode summaries that match. Use this before replying to recover shared context: past plans, commitments, running topics, how something was left. Prefer this over search_messages unless you need exact keyword matching.
Output schemas not documented in visible code. LLMs cannot plan downstream tool calls or extract required fields (e.g., what fields does list_chats return? Does it include message_count, last_activity_timestamp?). This forces agents to guess or make extra discovery calls.
Error handling lacks recovery guidance. No visible error classification (retryable vs user-fixable vs fatal) or actionable error messages. E.g., if resolve_contact fails, what should the agent try next? Should it retry, call a different tool, or ask the user?
summarize_episode is a WRITE operation but lacks a dry-run or confirmation step. Agents could accidentally overwrite episode summaries. No idempotency guarantee documented.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | B | 70 | 2026-07-28+ | v2 |
IMPORTANT for analysis: WhatsApp stores 1:1 chats under a privacy '@lid', NOT the phone number, so passing a contact's number or a name may not directly hit their messages. This resolves a name, phone number, or JID to the chat JID(s) that ACTUALLY hold messages, with message counts. Use it when read_messages/get_contact_profile come back empty for someone you know exists, or before deep-analyzing
Search the entire synced message history (or one chat) with full-text search. Great for recalling topics, commitments, or how something was discussed before.
Store a concise summary of a conversation episode (what happened, decisions, emotional tone, open threads). Summaries are semantically indexed and surface in recall_context, so THIS is how conversations become durable memory. Write in third person, past tense, max ~3 sentences, in the user's language.
Get the current login QR code as an image. Show it to the user and tell them to scan it from WhatsApp on their phone (Settings > Linked Devices > Link a Device). If already connected, reports that instead. The QR rotates every ~30s, so call again if it expired.
Check the WhatsApp session state (connected / waiting_qr / logged_out) and local database stats. Call this first if any other tool fails.
resolve_contact description is verbose (>200 chars) and includes implementation details ('privacy @lid') that confuse rather than clarify. Should focus on WHEN to use it (when a contact's messages aren't found) and WHAT it returns (chat JIDs with message counts).
list_chats and list_episodes accept 'limit' but no pagination cursor/offset. If a user has 500+ chats, the agent cannot iterate beyond the first batch. Missing next_cursor or offset parameter.