Skip to main content
Glama

WhatsApp Read Messages

whatsapp_read_messages
Read-only

Reads messages from a specific WhatsApp chat. The chat_id must come from a previous whatsapp_list_chats call.

Input Schema

NameRequiredDescriptionDefault
limitNoMax messages to return (default 50)
accountNoWhich linked WhatsApp account to use: its label or id from whatsapp_list_accounts. Leave it out to use the default account.
chat_idYesChat ID from whatsapp_list_chats

Output Schema

NameRequiredDescriptionDefault
noteNoPresent only when the read returned nothing, saying so explicitly
countNoNumber of messages returned
accountNoThe label of the WhatsApp account this call used.
messagesYesMessages from the chat, chronological
account_idNoThe id of the WhatsApp account this call used.
incomplete_noteNoPresent with unread_on_phone: the list is not complete yet; run whatsapp_sync and read again.
unread_on_phoneNoPresent when the chat's unread count is higher than the messages this Mac holds.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • addedInput schema / properties / account
      Added value: +{
      +  "description": "Which linked WhatsApp account to use: its label or id from whatsapp_list_accounts. Leave it out to use the default account.",
      +  "type": "string"
      +}
    • addedOutput schema / properties / account
      Added value: +{
      +  "description": "The label of the WhatsApp account this call used.",
      +  "type": "string"
      +}
    • addedOutput schema / properties / account_id
      Added value: +{
      +  "description": "The id of the WhatsApp account this call used.",
      +  "type": "string"
      +}
    • addedOutput schema / properties / incomplete_note
      Added value: +{
      +  "description": "Present with unread_on_phone: the list is not complete yet; run whatsapp_sync and read again.",
      +  "type": "string"
      +}
    • addedOutput schema / properties / unread_on_phone
      Added value: +{
      +  "description": "Present when the chat's unread count is higher than the messages this Mac holds.",
      +  "type": "integer"
      +}
  2. Added
  3. Removed
  4. First observed

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, openWorldHint=false, so the safety profile is covered. The description adds the dependency on whatsapp_list_chats, which is useful, but says nothing about ordering, pagination, or how much history is returned beyond the schema's limit default.

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, the core action front-loaded and the prerequisite second. No filler or redundancy.

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?

With an output schema present and full param coverage, the description needn't explain return values or parameters. The main remaining gap is not contrasting with keyboard-search or watch siblings, but for a simple read tool this is nearly complete.

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 all three parameters are already documented in the schema, including account and limit. The description only restates chat_id's provenance, adding no format or behavior detail beyond the structured fields — baseline 3.

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 ('Reads') and resource ('messages from a specific WhatsApp chat'), scoping it to a single chat rather than all chats. It does not explicitly contrast with whatsapp_search_messages or whatsapp_watch_messages, so sibling differentiation is only implicit.

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?

Gives a concrete prerequisite chain: chat_id must come from a previous whatsapp_list_chats call, which tells the agent how to set up the call. It offers no exclusions or alternatives (e.g. use search_messages for keyword lookup), so it falls short of full when/when-not guidance.

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.

Resources