Skip to main content
Glama
whatsapp-mcp

whatsapp-mcp

by vimal-v-2006

Search WhatsApp messages

whatsapp_search_messages

Search WhatsApp messages across recent chats using full-text queries, scoped to a configurable time window (default: last 2 days) to find relevant conversations.

Instructions

Full-text search across recent chats, scoped to a time window (default last 2 days). History is fetched on demand.

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

Input Schema

NameRequiredDescriptionDefault
daysNoSearch only the last N days (default 2)
limitNoMax results (default 20)
queryYesText to search for
max_chatsNoMax chats to scan (default 100)

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, the description carries the full behavioral burden. It usefully discloses that searches are scoped to a default recent time window and that history is fetched on demand, but it omits permissions, result ordering, and whether all chats are scanned by default.

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?

The description is two concise sentences with no wasted wording. The core scope and default time window are front-loaded before the note about on-demand history.

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 four-parameter search tool with no annotations and no output schema, the description covers the basic scope and on-demand history behavior. However, it leaves gaps around result behavior, search coverage, and what 'recent chats' means in practice.

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 in the input schema. The description only reinforces the time-window scoping and does not add meaning beyond the schema for query, limit, or max_chats.

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?

The description states a specific verb and resource: full-text search across recent chats, scoped to a time window. It clearly distinguishes searching from simply reading messages, though it does not explicitly name or contrast a sibling tool.

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?

The description implies this is the tool to use when searching message text rather than reading a conversation, but it gives no explicit when-to-use guidance or exclusions. There is no direct comparison to whatsapp_read_messages or other siblings.

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