Skip to main content
Glama
WACrew: WhatsApp AI automation

WACrew: WhatsApp AI automation

novidades

Retrieve new client messages from alerted WhatsApp chats since the last check, mark them as seen, and optionally scope to one group or preview without advancing the checkpoint.

Instructions

Puxa as mensagens novas dos chats marcados com alerta desde a última vez que você viu, e marca como visto. Pra ver quem espera em todos os chats sem marcar nada, use 'caixa_de_entrada'. FILTRA só mensagens de CLIENTE (descarta as suas e as do time) — em grupo interno isso pode voltar vazio mesmo tendo msg nova; nesse caso o retorno traz ignoradas_por_papel e uma nota sugerindo ler_mensagens. Use ao ser notificado de mensagem nova. Avança o checkpoint (não repete na próxima) a menos que marcar=false. Com 'grupo', restringe a um chat.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "novidades"
  }
}

Input Schema

NameRequiredDescriptionDefault
grupoNoslug pra restringir a um chat; ausente = todos os alertados
marcarNodefault true (avança o checkpoint); false = só espia, não marca como visto

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.6/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does so: it discloses the write side effect (marks as seen), the checkpoint advancement and its opt-out via marcar=false, and a non-obvious filtering rule (only CLIENT messages are returned, team/own messages are dropped) that can produce surprising empty results. It even names the diagnostic field `ignoradas_por_papel` returned in that case, which is behavior an agent could not infer from any structured field. Minor omission: nothing about ordering or volume of returned messages.

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?

Front-loaded with the core action and side effect, then alternatives, then caveats, then parameters — a sensible ordering. Dense but nearly every clause carries information; the capitalized emphasis on CLIENTE/FILTRA is slightly noisy but aids scanning of the most surprising constraint.

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

Completeness5/5

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

For a two-optional-parameter tool with no annotations and no output schema, the description covers purpose, side effects, checkpoint semantics, the role-based filter and its failure mode, plus a named return field. Nothing an agent needs in order to call it correctly, or to interpret an empty result, is missing.

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 both parameters are already documented in the schema, including the default of marcar and its checkpoint meaning. The description restates the same semantics ('Avança o checkpoint ... a menos que marcar=false', "Com 'grupo', restringe a um chat") without adding new syntax or edge cases. Baseline 3 is appropriate when the schema does the heavy lifting.

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 ('Puxa as mensagens novas dos chats marcados com alerta'), including the scope condition (alerted chats) and the side effect (marca como visto). It explicitly contrasts itself with 'caixa_de_entrada' and points to 'ler_mensagens' as fallback, so an agent can distinguish it from siblings without reading either schema.

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

Usage Guidelines5/5

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

Gives explicit when-to-use ('Use ao ser notificado de mensagem nova'), an alternative with its selection condition ('Pra ver quem espera em todos os chats sem marcar nada, use caixa_de_inbox'), and a when-it-fails caveat (internal groups may return empty even with new messages, fall back to ler_mensagens).

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