Skip to main content
Glama
whatsapp-mcp

whatsapp-mcp

by vimal-v-2006

Read WhatsApp messages

whatsapp_read_messages

Read messages from a specific WhatsApp chat, optionally within a date range, and fetch history on demand instead of bulk-downloading.

Instructions

Read messages from a chat, optionally within a date range. chat accepts a JID (123@s.whatsapp.net), a phone number (+123...) or a contact/chat name. History is fetched on demand — nothing is bulk-downloaded.

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": {
      "chat": "<chat>"
    },
    "name": "whatsapp_read_messages"
  }
}

Input Schema

NameRequiredDescriptionDefault
chatYesChat JID, phone number, or contact/group name
limitNoMax messages to return (default 20)
sinceNoOnly messages at/after this date, e.g. '2025-09-21' or '2025-09-21T18:00:00Z' (or epoch seconds)
untilNoOnly messages at/before this date (same formats as `since`)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations at all, the description carries the full behavioral burden. It does usefully disclose an operational trait beyond the name: 'History is fetched on demand — nothing is bulk-downloaded,' which signals possible latency and that no local cache exists. However, it says nothing about permissions, required pairing state, message ordering, or paging behavior beyond the limit parameter.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two tight sentences: the capability and optional filter come first, followed by the input-format note and the on-demand-fetch caveat. Every sentence carries information and nothing is padded.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a read tool with four params, no annotations, and no output schema, the definition covers inputs but leaves the return shape unspecified — no indication of message fields, ordering (newest-first vs chronological), or how `limit` interacts with the date filters. An agent knows how to call it but not what to expect back.

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 all four parameters are already documented with formats and defaults. The description's expansion of `chat` (JID, phone number, contact/chat name) largely restates the schema, adding no syntax or edge-case detail the schema lacks.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource: 'Read messages from a chat, optionally within a date range.' The agent can tell what the tool returns without opening the schema. It does not contrast itself with the sibling whatsapp_search_messages, so the distinction between 'read a chat' and 'search messages' is left implicit.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is only implied by the phrase 'Read messages from a chat' plus the optional date range. There is no explicit when-to-use or when-not guidance, and no mention of when the agent should prefer whatsapp_search_messages instead, even though that sibling exists in the catalog.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.