Skip to main content
Glama

search_messages

Read-only

Search WhatsApp messages by full text across chats, captions, and filenames; filter by chat, sender, or date. All query words must match, accents and case ignored, newest first.

Instructions

Recherche plein texte dans les messages (texte, légendes, noms de fichiers), les plus récents d'abord. Tous les mots sont requis ; accents et casse ignorés.

Input Schema

NameRequiredDescriptionDefault
chatNoLimiter à une discussion (JID, numéro ou nom).
limitNo1 à 100, défaut 30.
queryYesMots à trouver, tous requis, sans tenir compte des accents ni de la casse.
sinceNo
untilNo
offsetNo
senderNoLimiter à un auteur (JID, numéro ou nom).
accountNo

Output Schema

NameRequiredDescriptionDefault
messagesYesLes plus récents d'abord.
next_offsetNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A3.5/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 safety profile is covered. The description adds genuinely useful search semantics beyond annotations: AND logic across all words, accent and case insensitivity, and result ordering (most recent first). It stops short of describing pagination or result shape.

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, zero waste, with the core purpose and the query-matching rules front-loaded. Every clause earns its place.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists so return values need no explanation, and the query semantics are well covered. However, for an 8-parameter tool, the description is silent on the time-range (since/until), account, and pagination (offset) parameters, leaving the agent dependent on partial schema descriptions.

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 50%, so half the parameters (since, until, account, offset) are undocumented everywhere. The description reinforces the query semantics (all words required, accent/case-insensitive) and the searchable fields, but adds nothing for the undocumented time-range and account parameters, so it does not fully compensate for the gap.

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+resource ('Recherche plein texte dans les messages') and clarifies scope by naming what fields are searched (text, captions, filenames) and ordering (most recent first). It is distinguishable from siblings like list_messages or get_message_context, though it does not name them explicitly.

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

Usage Guidelines2/5

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

The description conveys implied usage (find messages by text) but gives no when-to-use guidance against alternatives such as list_messages or get_message_context, and no exclusions or prerequisites. Nothing tells the agent under which conditions this is the right choice.

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