Skip to main content
Glama

wa_search_messages

Search every stored WhatsApp message across all chats by keyword to locate discussions by chat, sender, text, and message ID.

Instructions

Search every stored message across ALL chats (the on-disk store) by keyword. Returns chat, sender, text and message id — great for "what did John say about X".

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

Input Schema

NameRequiredDescriptionDefault
limitNoMax results (default 10)
queryYesText to search for (case-insensitive)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.0.0

TDQS

A3.6/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 burden; it does disclose the storage source (on-disk store), the matching mode (keyword), and the returned fields. It does not state that the operation is read-only, whether results are ranked or chronological, or anything about permissions, which matters for a tool with zero annotation coverage.

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 sentences, zero filler, with the global search scope front-loaded and the return fields plus a concrete motivating example in the second sentence. Nothing could be removed without losing information.

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 two-parameter read tool it covers scope, matching mode, and return contents, which is most of what an agent needs. The remaining gaps are ordering and safety semantics, which would normally come from annotations and are absent here.

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 the case-insensitive matching and the 1-50 limit range are already documented. The description only echoes 'by keyword' and adds no meaning about query syntax or how limit interacts with ordering, so the baseline 3 applies.

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 (search) plus resource (stored messages) and scope (every chat, the on-disk store), and explicitly frames the query as keyword-based. It implicitly separates itself from in-chat reading tools but never names a sibling, leaving differentiation to inference.

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 quoted example 'what did John say about X' conveys the intended use case clearly, so usage is implied rather than stated. There is no explicit when-not guidance and no named alternative such as a per-chat read tool, so an agent must infer that this searches globally rather than reading a conversation.

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