Skip to main content
Glama

WhatsApp Search Messages

whatsapp_search_messages
Read-only

Offline full-text search across all WhatsApp chats. Only locally-cached messages are searched — no network access required. Optionally restrict search to a specific chat_id.

Input Schema

NameRequiredDescriptionDefault
limitNoMax results to return (default 50)
queryYesSearch text (case-insensitive substring match)
accountNoWhich linked WhatsApp account to use: its label or id from whatsapp_list_accounts. Leave it out to use the default account.
chat_idNoOptional chat ID to restrict search

Output Schema

NameRequiredDescriptionDefault
noteNoPresent when the search matched nothing (saying whether that zero is proven) or when matches past the rows read may exist
countNoNumber of results returned
accountNoThe label of the WhatsApp account this call used.
resultsYesMatching messages
account_idNoThe id of the WhatsApp account this call used.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / properties / note / description
      Previous value: -"Present only when the search matched nothing, saying so explicitly"New value: +"Present when the search matched nothing (saying whether that zero is proven) or when matches past the rows read may exist"
  2. Changed3 schema fields changed
    • addedInput schema / properties / account
      Added value: +{
      +  "description": "Which linked WhatsApp account to use: its label or id from whatsapp_list_accounts. Leave it out to use the default account.",
      +  "type": "string"
      +}
    • addedOutput schema / properties / account
      Added value: +{
      +  "description": "The label of the WhatsApp account this call used.",
      +  "type": "string"
      +}
    • addedOutput schema / properties / account_id
      Added value: +{
      +  "description": "The id of the WhatsApp account this call used.",
      +  "type": "string"
      +}
  3. Added
  4. Removed
  5. First observed

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 the description's real contribution is the disclosure that results are limited to the local cache and require no network — a material completeness caveat. It does not cover result ordering, pagination, or whether synced-but-unsent data is included, keeping it below 5.

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?

Three short sentences, front-loaded with the core action and scope, with each sentence carrying distinct information (scope, offline constraint, optional filter).

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 an output schema, full parameter documentation, and annotations covering safety, the remaining essential fact — that results are cache-bound — is stated. Only minor operational details (ordering, pagination limits) are absent.

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 schema already documents query, limit, account, and chat_id. The description only echoes the chat_id restriction and adds no format or matching nuance beyond the schema's case-insensitive substring note.

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 (full-text search) and resource (WhatsApp chats), with the 'locally-cached only' qualifier that separates it from live-read tools like whatsapp_read_messages. It doesn't name any sibling explicitly, so it falls short of the top mark.

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 implied by 'search', but there is no explicit when-to-use/when-not guidance or pointer to alternatives such as whatsapp_read_messages for browsing or whatsapp_sync before searching. The cached-only caveat hints at a precondition without stating it as one.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources