Skip to main content
Glama

list_chats

Read-only

Retrieve and filter WhatsApp chats and groups by recent activity, title, or JID to locate conversations for messaging or analysis.

Instructions

List chats (people and groups) by most recent activity, optionally filtered by title or JID.

One person may have two JIDs (phone and LID); they are shown as one entry with both JIDs.

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

Input Schema

NameRequiredDescriptionDefault
limitNo
queryNo
offsetNo
accountNoAccount from list_accounts when several WhatsApp numbers are set up; default: default

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/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 behavior beyond that: results are ordered by most recent activity, and duplicate identities are collapsed ('One person may have two JIDs (phone and LID); they are shown as one entry with both JIDs'), which prevents an agent from misreading the result count.

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, zero filler, with the core purpose front-loaded before the JID-deduplication caveat. Each sentence carries distinct information and none repeats the schema or annotations.

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 needn't be described, and annotations cover safety; the description still adds the result-shape quirk an agent needs. The remaining gap is pagination guidance for a list tool with limit/offset defaults (50/0), which an agent would have to infer from the schema alone.

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 coverage is only 25% – limit, query, and offset have no schema descriptions, and only `account` is documented there. The description partially compensates by explaining that filtering matches on title or JID, giving `query` real semantics, but it says nothing about paging behavior for `limit`/`offset`, leaving half the gaps unfilled.

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?

The description gives a specific verb and resource ('List chats (people and groups)') plus the ordering rule ('by most recent activity') and the optional filter ('title or JID'). It is clear enough to distinguish a chat-enumeration tool from message- or account-listing siblings, though it never names an alternative explicitly.

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: it says the list can be 'optionally filtered by title or JID', which tells an agent how to narrow results, but gives no when-to-use/when-not-to-use guidance or pointers to alternatives such as get_chat for a single chat or list_messages for content. No prerequisites or exclusions are mentioned.

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