Skip to main content
Glama

List chats

whatsapp_list_chats

List WhatsApp chats from daemon history and live events to retrieve JIDs, contact names, unread counts, and last messages; set an optional limit up to 200.

Instructions

List chats known to the daemon (history sync + live events): jid, contact name, unread count, last message.

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 (default 50)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.8/5.0
Behavior3/5

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

With no annotations, the description bears the full burden, and it does add real value by disclosing that results come from a daemon-local view built from history sync plus live events rather than a fresh server query. It does not state ordering, whether results are capped/truncated beyond the limit parameter, or staleness characteristics. Safe to infer it is non-mutating, but the behavioral picture is only partial.

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?

One sentence, front-loaded with the action and the source, then the returned fields. No filler, no restatement of the title.

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?

There is no output schema, so listing the returned fields in the description usefully fills that gap, and the single parameter is fully covered by the schema. Only ordering and truncation/refresh semantics are left unexplained, which is minor for a simple read-only list.

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% and the single optional parameter (limit, default 50, max 200) is fully documented in the schema, so a baseline 3 applies. The description adds no extra meaning about limit, such as whether it applies before or after filtering, or what order the capped set is drawn from.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description gives a specific verb ("List") and resource ("chats") plus the data source ("daemon: history sync + live events") and the exact fields returned (jid, contact name, unread count, last message). That is enough to distinguish it from siblings such as whatsapp_read_chat (message bodies) or whatsapp_search_contacts (contact lookup) without opening any schema.

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: the description makes clear this is the enumeration entry point for conversations, but it never states when to prefer a sibling (e.g. whatsapp_read_chat for a single conversation's messages, or whatsapp_search_contacts) or any precondition such as requiring a paired/logged-in session. Adequate for a simple list tool, but no explicit routing guidance.

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