Skip to main content
Glama
whatsapp-export-mcp

whatsapp-export-mcp

Read messages

get_messages
Read-only

Read messages from a WhatsApp chat export in order, filtered by date range or sender; each line is indexed for exact citations and supports offset/limit paging.

Instructions

Return messages in order, optionally between two dates and from one sender. Each line starts with #index so answers can cite the exact message. Page with offset and limit.

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": {
      "path": "<path>"
    },
    "name": "get_messages"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesPath to the WhatsApp export: the .zip from Export chat, or the .txt
limitNoDefault 200
offsetNo
senderNoOnly messages from this person (partial name, case and accents ignored)
to_dateNoLast day to include, YYYY-MM-DD
from_dateNoFirst day to include, YYYY-MM-DD
date_orderNoDate order of the export. Leave as auto unless open_export reported a guess that looks wrong

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already cover the safety profile (readOnlyHint=true, openWorldHint=false), and the description adds genuinely useful context: the output line format with a #index prefix for citation and offset/limit paging. It doesn't state the sort direction behind "in order", the default limit is only in the schema, or how rows behave when no messages match.

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?

Three short sentences, front-loaded with the core behavior, then output format, then paging. Every clause carries information an agent needs and nothing is repeated.

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?

For a 7-parameter read with no output schema, the description tells the agent what comes back (indexed lines) and how to page, which is the essential missing piece. The main residual gap is that "in order" is ambiguous regarding ascending versus descending chronology.

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 86%, so nearly all parameter meaning comes from the schema itself, including sender partial-match behavior and the date_order auto default. The description only restates the date range, sender filter, and offset/limit at a conceptual level, adding no new syntax, edge cases, or default values.

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?

"Return messages in order" names a specific verb and resource, and the filters and paging are stated explicitly, so the agent knows this is a chronological read rather than a query tool. It stops short of naming search_messages as the alternative, so sibling differentiation is only implicit through the word "in order".

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 implied: reading a transcript sequentially and citing messages, with optional date and sender narrowing. There is no explicit when-to-use versus search_messages, and no statement of prerequisites such as needing an export path from open_export.

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