Skip to main content
Glama
whatsapp-mcp

whatsapp-mcp

by OmarYousef95

Read WhatsApp message history

read_messages

Read cached WhatsApp chat history as plain text with media placeholders, returning messages oldest-first for a contact name, phone number, or 'me'.

Instructions

Read cached message history for a WhatsApp chat: plain text and placeholders for media (e.g. "[image: caption]", "[voice note]"). recipient accepts the same forms as send_message: a contact name (exact match), a phone number, or 'me'. Only messages sent or received since this feature started running are available — there is no historical backfill. Group chats are not supported. Returns messages oldest-first with each line labeled 'You' or the contact's name.

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": {
      "recipient": "<recipient>"
    },
    "name": "read_messages"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMax messages to return, oldest-first (default 20, max 100)
recipientYesContact name (exact match), international phone number, or 'me'

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses that only messages since the feature started are cached, that media arrives as placeholders with an example, and that output is oldest-first and labeled 'You' or the contact name. It omits failure behavior when a recipient is not found and any auth or rate-limit context, which are the remaining gaps.

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

Conciseness4/5

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

Front-loads the purpose, then parameter semantics, then constraints, then return shape — a sensible ordering with no filler sentences. Slight redundancy between the schema's limit description and the "oldest-first" statement in the prose keeps it from a perfect score.

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

Completeness4/5

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

With no output schema and no annotations, the description steps in to explain the return format and ordering, and it flags the caching limitation that most affects whether an agent should call it. Missing only edge-case behavior (unknown recipient, empty history) for a fully complete picture of a two-parameter read tool.

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 coverage is 100%, so both parameters are already documented; the description mostly restates the recipient forms while adding the useful note that they match send_message's accepted forms. Limit ordering is repeated from the schema rather than extended with new meaning, so the baseline of 3 is appropriate.

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

Purpose5/5

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

Opens with a specific verb and resource ("Read cached message history for a WhatsApp chat") and immediately bounds the scope with caching, no-backfill, and no-group-chat constraints. The send_message cross-reference also makes clear how recipient resolution relates to the write path, so an agent can distinguish this from siblings like list_recent_chats without opening a schema.

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

Usage Guidelines4/5

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

Gives concrete when-not conditions: group chats are unsupported and there is no historical backfill, so an agent knows not to use it for older or group conversations. It stops short of naming a fallback alternative (e.g., list_recent_chats to discover a chat first), which keeps it below a 5.

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