Skip to main content
Glama
erp-mcp-server

erp-mcp-server

Conversas recentes (WhatsApp)

whatsapp_recent
Read-onlyIdempotent

Lists the company's most recent WhatsApp conversations, newest first, with each conversation ID needed to reply. Filter by contact name or phone and cap the number of results.

Instructions

Últimas conversas de WhatsApp da empresa, mais recentes primeiro. Devolve o id de cada conversa, necessário para responder com whatsapp_send.

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

Input Schema

NameRequiredDescriptionDefault
limitNoMáximo de conversas.
formatNoFormato da resposta: markdown (humano) ou json (máquina).markdown
searchNoFiltra por nome do contato ou telefone (parcial).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare this a read-only, idempotent, non-destructive open-world read. The description adds behavior beyond that: results are ordered most-recent-first and each item carries an id required by the downstream send tool, which is exactly the context an agent needs to chain the calls.

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 tightly written sentences with no filler; the resource and ordering come first, the return value and handoff to whatsapp_send second.

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 simple, parameter-light list tool with annotations covering safety and a schema covering all inputs, this is nearly complete. The only shortfall is that it names just one returned field (id) and says nothing about other returned data or whether the limit truncates the list.

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 limit, search and format are fully documented in the schema. The description adds nothing about them (e.g., that search matches contact name or phone is only in 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.

Purpose4/5

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

States a specific resource (WhatsApp conversations of the company), an ordering guarantee ('mais recentes primeiro') and a return field ('Devolve o id de cada conversa'). It also names the counterpart tool whatsapp_send, so the read-vs-reply split is unambiguous.

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?

Usage context is clear: fetch conversations to obtain an id, then reply with whatsapp_send. It does not give explicit when-not-to-use conditions or say what to do if the conversation isn't in the recent list, but the intended workflow is inferable without guessing.

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