Skip to main content
Glama
WACrew: WhatsApp AI automation

WACrew: WhatsApp AI automation

preparar_resposta

Gathers recent message patterns and conversation state before drafting a WhatsApp reply, returning numeric instructions to vary tone and avoid repetition.

Instructions

Passo 1 de 2 do envio: chame ANTES de escrever qualquer mensagem pra um chat (não recebe texto). Devolve o que a conta já usou nas últimas 5 mensagens ali (aberturas, verbos, pontuação, tamanhos), o estado da conversa (ativa/fria, o que o cliente deixou em aberto, se o operador já respondeu na mão) e instrucoes numéricas pra variar. Escreva seguindo as instruções; o responder revisa e recusa o que estourar. Pra conferir um rascunho já escrito, use 'revisar_texto'.

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": {
      "grupo": "<grupo>"
    },
    "name": "preparar_resposta"
  }
}

Input Schema

NameRequiredDescriptionDefault
grupoYesslug, nome exato ou jid do chat

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior4/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 well: it discloses that no text is passed in, enumerates what the response contains (last-5-message stats on openings/verbs/punctuation/lengths, conversation state active-or-cold, open items, whether the operator replied manually, and numeric `instrucoes`), and warns that `responder` may reject output. It stops short of stating whether the call has any side effect (e.g. marking the chat as read) or what happens with an invalid/unknown chat, which for a no-annotation tool is a real but modest gap.

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?

The ordering cue ('Passo 1 de 2', 'chame ANTES') is front-loaded, and each clause carries information: pipeline position, return contents, and the handling rule. The parenthetical enumerations make individual sentences long and dense, but little is genuinely redundant.

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 one-parameter context-gathering tool with no output schema and no annotations, the description supplies the return payload's shape and purpose in enough detail to act on. Missing are edge-case behavior for a nonexistent or ambiguous chat and the tool's side-effect profile, which are the remaining gaps for this complexity level.

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% and the single `grupo` parameter is already documented as a slug, exact name or jid. The description adds only the framing that the target is 'um chat' and that no text is supplied — marginal meaning beyond the schema, so the baseline of 3 applies.

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?

The description states a precise role: step 1 of a 2-step send flow that gathers usage history, conversation state and numeric instructions, and explicitly notes it does not receive text. It separates itself from `responder` (step 2, which reviews and rejects) and from `revisar_texto` (for checking an already-written draft), so an agent can place it in the pipeline without opening any 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?

It gives an explicit precondition (call BEFORE writing any message to a chat) and an explicit alternative for a different situation (use 'revisar_texto' to check a draft already written). It also names the downstream consumer, `responder`, and its review/reject behavior, so the when-to-use and where-it-fits are fully specified.

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