Skip to main content
Glama

Get WhatsApp Chat

whatsapp_get_chat
Read-onlyIdempotent

Read messages from a WhatsApp chat or group, newest first, including each sender and media type/file name for conversation review. Read-only access with pagination and date filtering.

Instructions

Messages in one WhatsApp chat or group, newest first, each with its individual sender. Media is reported by type and file name only. Read-only. Use when: reading a WhatsApp conversation

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_get_chat"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMax messages to return
sinceNoOnly messages since this ISO 8601 date
offsetNoNumber of messages to skip for pagination
chat_idNochatId from whatsapp_list_chats
chat_nameNoChat, group or contact name; must match one chat
response_formatNoOutput format: 'json' for structured data, 'markdown' for human-readable textjson

Output Schema

NameRequiredDescriptionDefault
chatYes
countYes
itemsYes
totalYes
offsetYes
has_moreYes
next_offsetNo
truncation_messageNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

B3.4/5.0
Behavior3/5

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

Adds real behavior beyond the annotations: result ordering (newest first), per-message sender attribution, and that media is surfaced only as type and file name rather than content. The 'Read-only' sentence merely restates readOnlyHint=true, so the useful contribution is limited to those two facts.

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?

Three short sentences, front-loaded with what is returned and its ordering, with no filler. 'Read-only' is redundant against the annotations, which is the only wasted clause.

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?

Adequate for a simple read tool that has an output schema covering return values and full schema coverage for all six parameters. It nevertheless leaves pagination behavior and the two mutually exclusive chat identifiers unexplained, which matters for a tool whose zero required parameters force the agent to choose an identifier.

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 every parameter already carries documentation and the baseline of 3 applies. The description adds only the notion that the chat identifier names exactly one conversation, without explaining chat_id versus chat_name preference or how since/limit/offset interact.

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: it returns the messages of a single WhatsApp chat or group, ordering them newest first and attaching each message's sender. The phrase 'in one WhatsApp chat or group' implicitly contrasts with the chat-listing sibling, though it never names an explicit alternative to disambiguate from its near-twin.

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?

Provides one positive routing cue, 'Use when: reading a WhatsApp conversation', but no exclusions or alternatives (e.g. when to prefer whatsapp_search or whatsapp_list_chats first). The choice between the chat_id and chat_name identifiers is left to the schema.

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