Skip to main content
Glama

WhatsApp Agent: WhatsApp Team Inbox & CRM

Read a chat's messages

whatsapp-read-messages
Read-only

The messages of one chat, newest first, each with who sent it (customer, agent for anything Calypso sent by itself, the Calypso Agent's reply or an automatic out-of-hours message, teammate for a person on the team), when, and its text. An attachment is named by its kind only; the file itself is not available. Call it only when the question needs what was actually said, such as summarising a conversation or checking what the agent told a customer.

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": {
      "chat": "<chat>"
    },
    "name": "whatsapp-read-messages"
  }
}

Input Schema

NameRequiredDescriptionDefault
chatYesThe chat's id: the `chat` value of a card from whatsapp-list-chats or whatsapp-find-chat. Never a name or a guess.
limitNoHow many messages to return, 30 at most.
beforeNo`next_before` from the previous page, exactly as returned, to read further back in the thread.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnly, non-destructive, and closed-world, so the safety profile is covered. The description adds real behavioral value beyond that: newest-first ordering, the specific meaning of each sender value including automatic out-of-hours messages, and the important limitation that attachments are named by kind only and the file itself is not retrievable. It does not mention rate limits or empty-result behavior, but the attachment caveat is exactly the kind of disclosure that prevents wasted tool calls.

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?

A single front-loaded paragraph that opens with the resource and ordering before descending into sender semantics and the usage gate. The parenthetical explaining the three sender values is dense but each clause carries information an agent needs to interpret results. No filler sentences.

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?

With no output schema, the description carries the burden of describing return values and does so: who sent it, when, its text, and how attachments appear, plus the newest-first ordering that makes the `before` cursor meaningful. Combined with a fully described input schema and read-only annotations, nothing an agent needs to invoke and interpret this tool 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 the schema already documents `chat`, `limit`, and `before` thoroughly, including the max of 30 and the requirement that `chat` comes from a card returned by list/find chat. The description adds little per-parameter meaning, though the "newest first" statement tells the agent that `before` pages backwards into older messages. 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.

Purpose4/5

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

The description names a specific resource (the messages of one chat), specifies ordering (newest first), and enumerates the return fields' meaning: sender taxonomy (`customer`, `agent`, `teammate`), timestamp, and text. That is far beyond a restatement of the name. It stops short of naming a sibling tool to contrast with, so it is clear but not sibling-differentiating in the strongest sense.

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?

"Call it only when the question needs what was actually said" is an explicit positive condition with two concrete examples (summarising a conversation, checking what the agent told a customer). The "only when" framing implies not to call it for metadata-only questions, though no alternative tool is named for those cases. Clear context, with the exclusion left somewhat implicit.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.