Skip to main content
Glama

Search WhatsApp

whatsapp_search
Read-onlyIdempotent

Search WhatsApp message text and captions across chats, newest first. Limit results to a specific chat or person; read-only.

Instructions

Search WhatsApp message text and captions across chats, newest first. Optionally limit to one chat, or to one person by name (their messages in groups and the one-to-one chat with them). Read-only. Use when: finding what someone said on WhatsApp

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
limitNoMax results to return
queryYesText to find (case-insensitive for plain letters)
sinceNoOnly messages since this ISO 8601 date
offsetNoNumber of results to skip for pagination
chat_idNoOnly this chat (chatId from whatsapp_list_chats)
contactNoOnly messages from or with people whose name contains this
chat_nameNoOnly the chat with this name; must match one chat
response_formatNoOutput format: 'json' for structured data, 'markdown' for human-readable textjson

Output Schema

NameRequiredDescriptionDefault
countYes
itemsYes
totalYes
offsetYes
has_moreYes
next_offsetNo
truncation_messageNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint and destructiveHint=false, so the 'Read-only' sentence adds nothing structured data didn't already say. The genuinely additive parts are the result ordering ('newest first') and the disclosed semantics of the person filter (group messages plus the one-to-one chat). Pagination/limit behavior and return-shape hints are absent, so this is useful but not rich.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three short sentences, front-loaded with the core behavior and scope before the usage hint. The only waste is the 'Read-only' clause, which duplicates an annotation, and the slightly clipped 'Use when:' fragment.

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 an 8-parameter search tool with full schema coverage, an output schema and complete annotations, the description covers what is searched, default ordering, narrowing modes and the read-only stance. Nothing an agent needs to call it is missing, though it could have said more about how limit/offset interact for paging through large result sets.

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 the schema already explains every parameter including limit, offset, chat_id, contact, chat_name and response_format. The description adds only the framing that chat and contact are alternative narrowing modes and that a person filter spans groups and their direct chat; it offers no syntax or format guidance beyond that, 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 and resource ('Search WhatsApp message text and captions'), the default ordering ('newest first'), and the narrowing options (one chat, or one person by name). That is far more than a restatement of the name, but it never distinguishes itself from the sibling 'messages_search', so an agent must infer that this one is WhatsApp-specific.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

'Use when: finding what someone said on WhatsApp' gives a clear positive trigger for selection. There are no exclusions or named alternatives, so the agent gets context but no routing rule for when a different search tool is the better pick.

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