Skip to main content
Glama

WhatsApp List Chats

whatsapp_list_chats
Read-only

Lists WhatsApp conversations with last message preview. Returns chat IDs, contact names, and recent message snippets. Some contacts may appear with @lid identifiers (e.g. 123456@lid) instead of phone numbers — this is a WhatsApp privacy feature for certain account types; use the Name field for display and the JID/chat_id for subsequent calls.

Input Schema

NameRequiredDescriptionDefault
limitNoMax chats to return (default 50)
accountNoWhich linked WhatsApp account to use: its label or id from whatsapp_list_accounts. Leave it out to use the default account.

Output Schema

NameRequiredDescriptionDefault
chatsYesWhatsApp conversations with last message preview
accountNoThe label of the WhatsApp account this call used.
account_idNoThe id of the WhatsApp account this call used.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / account
      Added value: +{
      +  "description": "Which linked WhatsApp account to use: its label or id from whatsapp_list_accounts. Leave it out to use the default account.",
      +  "type": "string"
      +}
    • addedOutput schema / properties / account
      Added value: +{
      +  "description": "The label of the WhatsApp account this call used.",
      +  "type": "string"
      +}
    • addedOutput schema / properties / account_id
      Added value: +{
      +  "description": "The id of the WhatsApp account this call used.",
      +  "type": "string"
      +}
  2. Added
  3. Removed
  4. First observed

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 and destructiveHint=false, so the safety profile is covered, and the description adds genuinely useful non-obvious behavior: that some contacts surface as @lid identifiers rather than phone numbers, why that happens, and which field to use for display versus for follow-up calls. It does not mention pagination or whether group chats are included, which keeps it short of a 5.

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?

Three tight sentences: what it returns, then the identifier caveat with the actionable workaround. The non-obvious @lid information is front-loaded rather than buried, and no sentence merely restates 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?

An output schema exists, so return values needn't be explained, and the description covers the one genuinely confusing aspect (opaque @lid identifiers). The remaining gap is scope: it never says whether group conversations appear here or only in whatsapp_list_groups, which matters for an agent choosing between the two.

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 both parameters (limit with a stated default of 50, account with a pointer to whatsapp_list_accounts) are already fully documented there. The description adds no parameter-level meaning beyond the schema, so the 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 ('Lists WhatsApp conversations') plus the payload ('with last message preview'), which an agent can distinguish from reading messages or listing groups. It doesn't explicitly contrast with whatsapp_list_groups or whatsapp_search_messages, but the 'conversations + last message preview' framing is concrete enough to select on.

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 reader infers this is the entry point before reading messages or searching. The description does give a clear follow-on instruction ('use the JID/chat_id for subsequent calls'), but there is no explicit when-to-use versus whatsapp_search_messages or whatsapp_list_groups, and no stated prerequisites such as having connected an account.

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