Skip to main content
Glama
whatsapp-export-mcp

whatsapp-export-mcp

Search messages

search_messages
Read-only

Search a WhatsApp chat export for messages containing a specific word or phrase, ignoring case and accents, and optionally filter results by sender.

Instructions

Find messages containing a word or phrase (case and accents ignored), optionally from one sender.

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>",
      "query": "<query>"
    },
    "name": "search_messages"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesPath to the WhatsApp export: the .zip from Export chat, or the .txt
limitNoDefault 50
queryYes
senderNo
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.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so the safety profile is covered. The description adds real value by disclosing the matching behavior (case and accent insensitivity, single-sender narrowing), but says nothing about result ordering, the 500-hit ceiling, or what a returned match contains.

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?

A single front-loaded sentence with the core action first and the matching caveats and optional filter trailing. No filler, no redundancy with the title.

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-only search with no output schema, the description covers what to search but not what comes back — match count limits, ordering, or whether surrounding context is included — nor the requirement that an export be opened first. Adequate to invoke correctly, thin on expectations.

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 60%, and the description usefully defines the two undocumented-in-schema parameters: query is matched as a word or phrase ignoring case and accents, and sender is an optional filter. It leaves path, limit, and date_order entirely to the schema, so it adds meaningful but partial semantics for a 5-parameter tool.

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 (find) and resource (messages) plus the matching semantics: substring match on a word or phrase with case and accents ignored, optionally narrowed to one sender. That distinguishes it from get_messages (which lists messages) without naming the sibling, but the tool's scope is unambiguous.

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 — an agent can infer 'use this when you need to locate messages by text' — but there is no explicit when-to-use statement, no mention of get_messages as the alternative for unfiltered listing, and no note on prerequisites such as the export needing to be opened first.

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