Async Python WhatsApp Web API with first-class group chat support, exposed as an MCP server for LLM integration
12 tools with clear verb-noun naming and reasonable descriptions (avg 150 chars). All tools have input schemas with types and descriptions. However, output schemas are undocumented, LLMs cannot predict response structure for chaining. Error handling is minimal; no recovery guidance. Parameters lack constraints (enums, ranges). No tool annotations (readOnlyHint/destructiveHint). Descriptions are functional but generic, missing dependency hints and prerequisites. Baseline: 549 production tools avg 194 chars description, 100% have documented return types, this server documents neither.
Summary of the local archive: message count and connection status.
Check live connection status (requires pairing).
Get recent messages in a chat from the local archive, newest first. `chat_jid` is a full JID like `[email protected]` or `[email protected]`.
Stored metadata for a group (subject, participants), if archived.
The most recent message YOU sent (any chat), from the archive.
List the most recent chats (groups and 1:1) from the local archive. Returns each chat's JID, display name, and last-activity time.
No output schemas documented. LLMs cannot predict response structure (fields, types, nesting) for any tool. Breaks tool chaining, agent cannot extract IDs for downstream calls without guessing.
No tool annotations (readOnlyHint, destructiveHint, idempotentHint). LLMs cannot distinguish safe reads from destructive writes. send_message and start_pairing are WRITE operations but lack destructiveHint, agent may retry without understanding consequences.
Numeric parameters (limit, timeout) lack min/max constraints. LLMs can pass absurd values (limit=999999, timeout=0.001) that break behavior or cause timeouts. No enum constraints on any parameter.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | D | 58 | 2026-07-28+ | v2 |
List all groups this account participates in (live, requires pairing).
Check pairing progress: returns the current QR (if still scanning), or online status.
Full-text search across all archived message text, newest first.
Send a text message to a chat (1:1 or group). `to` is a phone number (bare or +CC format) or a full JID. Returns the message ID.
Link a WhatsApp device by QR — do the whole pairing from chat. Starts a connection and returns the login QR code as an image (plus a file path to the same QR). Open WhatsApp on your phone -> Linked Devices -> Link a Device, and scan it. Then call `pairing_status` to confirm; once it reports online, the live tools (`send_message`, `list_groups`) are ready.
Block until new incoming messages arrive (live, requires pairing). Returns a list of messages received since the last call. Timeout after ~30s if none arrive. Each message includes chat, sender, text, timestamp, and media metadata (if present).
Error handling absent. No recovery guidance in code. If send_message fails (network, invalid JID, rate limit), LLM gets no actionable error, cannot distinguish retryable from fatal, cannot self-correct.
Descriptions lack dependency hints and prerequisites. 'start_pairing' does not state it requires PIWAPP_AUTH unset; 'send_message' does not state it requires prior pairing. LLMs cannot plan multi-step sequences without explicit guidance.