Skip to main content
Glama

List Chats

wa_list_chats
Read-only

List one account's conversations — direct chats, groups and channels — most recently active first, each with its JID, type, archive status (is_archived) and when it was last active. Use it to see which chats exist and which are archived; pass exclude_archived to leave archived chats out. Read a chat's messages with wa_get_chat or wa_list_messages.

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

Input Schema

NameRequiredDescriptionDefault
limitNohow many conversations to return, 1-200; defaults to 50, most recently active first
account_idNothe account whose chats to list, from wa_list_accounts; omit it when the workspace has only one account
exclude_archivedNoomit chats you have archived on WhatsApp (as last synced from the phone); off by default

Output Schema

NameRequiredDescriptionDefault
chatsYesthe account's conversations, most recently active first
accountNothe account these chats belong to
refusalNopresent only when the request was declined
account_noticesNopresent when this number is not working: new messages are not arriving on it; says why and what to do

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and idempotentHint=false, so safety is covered; the description adds value beyond that by disclosing result ordering ('most recently active first') and the exact field set returned per chat. It does not mention rate limits or how a partial/empty account is handled, but with annotations and an output schema present those gaps are minor.

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?

Roughly three sentences with zero filler: what it lists first, then the filtering toggle, then the hand-off to related tools. Ordering and result shape are front-loaded, so an agent can act after reading only the first clause.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

A read-only list tool with an output schema, full schema coverage, and annotations needs only scope, ordering, and next-step routing — all present. Nothing an agent needs in order to call it correctly is missing.

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 (limit, account_id, exclude_archived) are already fully documented, and the description mostly restates them. It adds only a light framing link between 'most recently active first' ordering and the limit parameter, which the schema already states. Baseline 3 applies.

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 ('List one account's conversations') and enumerates scope explicitly — direct chats, groups and channels — plus ordering and returned fields (JID, type, is_archived, last active). It distinguishes itself from wa_get_chat and wa_list_messages by routing message-reading elsewhere, though it does not explicitly contrast with wa_list_groups or wa_list_channels, which an agent might otherwise pick for the same subset of data.

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 clear use case ('see which chats exist and which are archived'), names the exclude_archived toggle as the way to narrow results, and points to wa_get_chat / wa_list_messages for the follow-up action. It stops short of saying when NOT to use it (e.g., when you already have a specific JID and should call wa_get_chat directly), so it is clear context without exclusions.

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