Skip to main content
Glama

Supergreen WhatsApp

search_messages

Read-onlyIdempotent

Search recent WhatsApp messages containing a text query in the 7-day sync buffer, optionally scoped to one chat.

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

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum number of matching messages to return (default: 20, max: 100)
queryYesCase-insensitive text substring to search for in recent messages
chatIdNoOptional chat ID to restrict search to a single conversation or group

Schema Changelog

Changes observed during successful MCP inspections.

  1. 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 readOnly, idempotent, non-destructive and closed-world, so safety is covered. The description adds a genuine behavioral trait not in the annotations: results are limited to the 7-day sync buffer, which tells the agent that older messages will not be found. It stops short of describing result ordering or pagination behavior.

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?

A single front-loaded sentence with the verb, resource and the most decision-relevant constraint (7-day buffer) placed early. No filler, no repetition of schema or annotation content.

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 3-parameter read tool with full schema coverage, rich annotations and no output schema, the description covers purpose, data window and scoping. Minor gaps remain around result ordering and what happens when the buffer has no matches, which an agent might want to know.

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 documents query, chatId and limit semantics including case-insensitivity and the max of 100. The description echoes the query and chat scoping but adds nothing about limit or result composition, so the baseline of 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?

The description names a specific verb (search) and resource (WhatsApp messages) and adds meaningful scope detail: the 7-day sync buffer and optional single-chat restriction. It implicitly separates itself from get_messages by being a query-based search, but it never names that sibling or any alternative 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?

The 7-day sync buffer statement implies when this tool is appropriate (recent-message lookup) and the optional chat scoping suggests narrowing behavior, but there is no explicit when-to-use versus get_messages/list_chats guidance and no stated exclusion such as 'use get_messages for full history'.

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