Skip to main content
Glama
wa-memory-mcp

wa-memory-mcp

by corneliu10

whatsapp_search

Read-only

Search all WhatsApp messages by keywords, phrases, chat, sender, or date to find specific conversations and context.

Instructions

Full-text search across all WhatsApp messages. Words are ANDed and prefix-matched; use "quotes" for a phrase and OR between alternatives. Filter by chat, sender ('me' for the owner) and dates.

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"
  }
}

Input Schema

NameRequiredDescriptionDefault
chatNoChat name, contact name, phone number or chat_id
sortNo
afterNoYYYY-MM-DD or YYYY-MM-DDTHH:MM (local time)
limitNoMax results, default 20, max 200
queryYes
beforeNoYYYY-MM-DD or YYYY-MM-DDTHH:MM (local time)
senderNoWho wrote it: a contact name or number, or 'me'

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so safety is covered. The description adds genuinely useful behavioral detail the annotations cannot: matching is ANDed and prefix-based, with quoted phrases and OR alternatives, which directly changes how an agent should build a query. It omits result ordering and default paging behavior, which the schema partially covers.

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 core capability first, then the query syntax and filter options. No filler or restatement of the name.

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 7 parameters, no output schema, and read-only annotations, this is close to complete: search semantics and filters are covered. Gaps are minor — result ordering and how 'relevance' sort interacts with OR queries are unstated.

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 71%, so the schema already documents chat, sender ('me'), after/before formats, and limit. The description reinforces the 'me' convention and adds query-syntax semantics, but says nothing about the sort enum or relevance-vs-recent ordering.

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?

Names a specific verb and resource with scope: 'Full-text search across all WhatsApp messages.' The 'across all messages' framing implicitly separates it from chat-scoped siblings like whatsapp_read_chat, but no sibling is named explicitly.

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?

Explains how to query (AND, prefix matching, quotes, OR) and what can be filtered, which strongly implies the use case 'find messages by content'. It never states when to prefer this over read_chat or digest, nor any exclusions.

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