Skip to main content
Glama

List WhatsApp Chats

whatsapp_list_chats
Read-onlyIdempotent

List recent WhatsApp chats and groups newest first with unread counts and last-message previews to identify who messaged and find chat IDs.

Instructions

Recent WhatsApp chats and groups, newest first, with unread count and last message preview. Read-only. Use when: seeing who has messaged on WhatsApp, finding a chat_id

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

Input Schema

NameRequiredDescriptionDefault
limitNoMax chats to return
offsetNoNumber of chats to skip for pagination
response_formatNoOutput format: 'json' for structured data, 'markdown' for human-readable textjson

Output Schema

NameRequiredDescriptionDefault
countYes
itemsYes
totalYes
offsetYes
has_moreYes
next_offsetNo
history_current_toYesTime of the newest message stored on this Mac. If old, WhatsApp is not running or not signed in here
truncation_messageNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so 'Read-only' is largely redundant. The description does add genuine behavior beyond the annotations: the result set is sorted newest-first and each row carries an unread count and last-message preview. It says nothing about whether archived or muted chats are included, or how pagination terminates.

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, front-loaded with what is returned and its ordering, then the usage trigger. No filler, and every clause carries information an agent can act on.

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?

An output schema exists, so return values need no explanation, and the description still flags the key fields and the chat_id hand-off to downstream tools. For a simple read-only list with three fully documented optional parameters, the remaining gap — archived/muted inclusion rules — is minor.

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%, with limit, offset and response_format all documented inline with defaults and bounds, so the baseline of 3 applies. The description adds no parameter-level detail such as typical limit values or offset semantics for walking the newest-first listing.

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 WhatsApp chats and groups') plus ordering ('newest first') and the payload ('unread count and last message preview'). It does not differentiate itself from plausible siblings such as whatsapp_unread or whatsapp_search, so an agent must infer placement from context rather than from the description.

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?

The 'Use when:' clause gives two concrete triggering tasks — seeing who has messaged and finding a chat_id — which is clear situational context. It stops short of naming alternatives or stating when not to use it (e.g. use whatsapp_unread for unread-only triage), so exclusion guidance is absent.

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