Skip to main content
Glama
DimitrisPasakaleris

WhatsApp MCP Server

list_chats

Retrieves WhatsApp chats by name or JID query with pagination, sorting by last activity or name, and optional last-message preview for quick lookup.

Instructions

Get WhatsApp chats matching specified criteria.

Args: query: Search term to filter chats by name or JID limit: Max chats to return (default 50, max 200) page: Page number for pagination (default 0) include_last_message: Include the last message in each chat (default True) sort_by: "last_active" (default, most recent first) or "name" (alphabetical)

Input Schema

NameRequiredDescriptionDefault
pageNo
limitNo
queryNo
sort_byNolast_active
include_last_messageNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

B3.3/5.0
Behavior3/5

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

No annotations exist, so the description carries the full behavioral burden. It adds useful operational facts — default limit 50 with a 200 cap, default page 0 pagination, and default sorting by last_active — but says nothing about read-only nature explicitly, permissions/auth requirements, or rate limits. Adequate but incomplete for a zero-annotation tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with a one-line purpose followed by a compact, scannable per-parameter list. The 'Args:' scaffold is boilerplate but every line carries information, so there is minimal waste.

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

Completeness3/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 parameters are fully covered. What remains missing is sibling routing and any permission or safety context for a tool with no annotations — enough gaps to keep it at minimum-viable-plus rather than complete.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must compensate, and it largely does: all five parameters are documented with defaults, the limit ceiling, and the two valid sort_by values (which the schema does not enumerate via enum). It is missing only the type/nullability nuance for query.

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 (get WhatsApp chats) and hints at filtering criteria. However, it never distinguishes this from siblings like get_chat, get_contact_chats, or list_messages, so the agent must infer the boundary from the name alone.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no when-to-use or when-not-to-use guidance and no mention of alternatives. With siblings such as get_contact_chats (chats for a specific contact) and get_chat (a single chat) present, the description should say which one to pick when scoping to one contact or one chat.

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