Skip to main content
Glama

wa_read_messages

Retrieve recent messages from a single WhatsApp DM or group chat store to get sender, text, media flags, and message IDs for review or automation.

Instructions

Read recent messages from the on-disk store for one chat (DM or group). Messages are stored as they arrive while this session is connected — includes sender, text, media flags and message ids.

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

Input Schema

NameRequiredDescriptionDefault
chatYesPhone number or group JID
limitNoHow many recent messages (default 20)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.0.0

TDQS

A3.7/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 meaningful work: it discloses the data source (on-disk store), the critical limitation that only messages received during the current session are present, and the shape of the returned records (sender, text, media flags, message ids). It does not cover ordering, pagination, or behavior when the store is empty, which keeps it short of a 5.

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?

Two sentences, front-loaded with purpose, and the second sentence earns its place by enumerating returned fields that no output schema provides. No filler or repetition, though the em-dash clause packs multiple ideas into one long sentence.

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 two-parameter read tool with full schema coverage and no output schema, the description supplies purpose, scope, data source, a key availability caveat, and the return payload. What remains missing (ordering, empty-store behavior, auth expectations) is minor and partly inferable from the read-only framing.

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 (chat, limit with 1-200 range and default 20) are already documented in structured fields. The description only echoes the chat scope ('DM or group') and adds no new semantics for the limit parameter, 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 verb and resource ('Read recent messages') plus an explicit scope ('for one chat (DM or group)') and a source ('on-disk store'). It implicitly separates itself from search-style siblings by emphasizing recency, but never names an alternative, so it falls short of full sibling differentiation.

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 implied rather than stated: the chat-scoped, recency-bound framing tells an agent this is the read path for a single conversation. The caveat that messages are only stored 'as they arrive while this session is connected' functions as an important applicability limit, but there are no explicit when-not conditions or pointers to alternatives such as search or channel fetch.

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