Skip to main content
Glama

Read recent messages in a chat

whatsapp_read_chat

Read recent WhatsApp chat messages by contact name, phone number, or JID and get the unread count for the chat.

Instructions

Recent messages (since server start) from a chat, resolved by contact name, number, or JID. Includes unread count for the chat.

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": {
      "contact": "<contact>"
    },
    "name": "whatsapp_read_chat"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMax messages (default 20)
contactYesContact: saved name, phone number with country code (e.g. 919876543210), or full JID (e.g. 919876543210@s.whatsapp.net)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the burden, and it does disclose two useful traits: results are bounded to messages since server start, and the response includes the chat's unread count. It stays silent on whether reading marks messages as read (a real concern given mark_read siblings) and on ordering or pagination.

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 short sentences, zero filler, with the scope limitation and resolution behavior front-loaded before the unread-count detail. Nothing could be cut without losing information.

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

Completeness3/5

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

There is no output schema, so the description should say more about what a returned message looks like beyond 'unread count'. The mutation question (does reading change read state) is also unanswered, which matters for a read tool sitting next to mark_read siblings.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline would be 3, but the description adds meaning by framing the contact parameter as a resolution input across name, number, or JID, reinforcing that multiple identifier forms are acceptable. The 'since server start' note also implicitly constrains what limit counts, though no explicit interaction is spelled out.

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 verb and resource ('Recent messages ... from a chat') plus a distinctive scope constraint ('since server start'), which separates it from a general chat-listing tool. It never names a sibling such as whatsapp_read_unread, so differentiation is left implicit.

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

Usage Guidelines3/5

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

Usage is only implied by the phrase 'from a chat': the agent can infer it should call this when it knows the contact and wants that chat's messages. There is no statement of when to prefer it over whatsapp_read_unread or whatsapp_list_chats, and no prerequisites.

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