Skip to main content
Glama
WACrew: WhatsApp AI automation

WACrew: WhatsApp AI automation

buscar

Search text across WhatsApp messages and voice-note transcripts, optionally limited to one group. Returns matching snippets newest-first up to a result limit, flagging when results are truncated.

Instructions

Busca um texto nas mensagens e transcrições. Sem 'grupo', procura em todos. Retorna os trechos que casam (mais recentes primeiro), limitado a 'limite' (default 50) pra não estourar — se truncar, o retorno avisa em 'truncado'. Pra ler a conversa em volta de um resultado, use 'ler_mensagens' com 'desde'.

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": {
      "texto": "<texto>"
    },
    "name": "buscar"
  }
}

Input Schema

NameRequiredDescriptionDefault
grupoNoslug para restringir a um grupo
textoYestermo a procurar (case-insensitive)
limiteNomáx. de resultados (default 50); evita varrer todos os grupos e estourar

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

No annotations exist, so the description carries the whole burden and does a decent job: it discloses result ordering ('mais recentes primeiro'), the default cap, the reason for the cap, and that truncation is signalled via a 'truncado' field in the response. It does not describe the shape of each hit (group/sender/timestamp) or any cost/latency characteristics of a cross-group scan.

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?

Four short sentences, front-loaded with the action, then scope, then return behavior, then the escape hatch to a sibling. Every clause carries information; the dash construction is slightly dense but not wasteful.

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 no annotations and no output schema, the description must explain returns, and it covers ordering, capping and the truncation flag. The remaining gap is the composition of each returned 'trecho', which an agent would want in order to interpret results.

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 defines all three parameters including defaults and the case-insensitive match. The description adds one genuinely new fact — that omitting 'grupo' widens the search to all groups — and reinforces why 'limite' exists. Useful, but largely overlapping with structured data.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Busca um texto nas mensagens e transcrições') plus the default scope ('Sem grupo, procura em todos'), which is exactly what distinguishes it from listing/reading tools like ler_mensagens. An agent can tell what it does and what it returns without opening the schema.

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?

Gives clear routing: it is a text search, and to read the conversation around a hit you should call 'ler_mensagens' with 'desde'. That is an explicit alternative with a triggering condition. It stops short of stating when-not to use it (e.g. vs. browsing a group or listing recent messages), so not a full 5.

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