Skip to main content
Glama
Maheidem

WAHA WhatsApp MCP Server

by Maheidem

List WhatsApp Chats

whatsapp_list_chats
Read-onlyIdempotent

List recent WhatsApp chats with last message previews and profile pictures to obtain chat IDs for reading messages.

Instructions

List recent WhatsApp chats with last message preview and profile pictures.

Returns chat IDs, names, profile picture URLs, and a preview of the last message. Use the chat ID from results to read messages with whatsapp_read_messages.

Args:

  • limit: Number of chats to return (1-100, default 20)

  • offset: Pagination offset (default 0)

Returns array of chats with:

  • id: Chat ID (use this in other tools)

  • name: Contact or group name

  • picture: Profile picture URL (may expire)

  • lastMessage: Preview with body, from, fromMe, hasMedia, timestamp

  • lastMessageAt: ISO timestamp of last message

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoNumber of chats to return (1-100, default 20)
offsetNoPagination offset (default 0)
Behavior4/5

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

Annotations already declare readOnlyHint=true and idempotentHint=true, so the description doesn't need to restate safety. It adds value by noting that profile picture URLs may expire, describing the return structure including nullable fields, and specifying pagination behavior.

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?

The description is front-loaded with the purpose, uses bullet points for return fields, and is overall concise with no wasted words. Every sentence provides necessary information.

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?

Given the tool's simplicity, the description covers purpose, parameters, return structure, and usage guidance. It lacks an explicit output schema but compensates with a detailed textual description. The absence of error handling details is minor.

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 coverage is 100%, so baseline is 3. The description adds meaning beyond the schema by explaining the output structure (id, name, picture, lastMessage, lastMessageAt) and how to use the returned chat ID in other tools. This contextualizes the parameters' purpose.

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 clearly states the tool lists recent WhatsApp chats with last message preview and profile pictures, using a specific verb and resource. It distinguishes from siblings like whatsapp_list_contacts (contacts) and whatsapp_read_messages (reading after getting ID).

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?

The description explicitly tells when to use this tool: 'Use the chat ID from results to read messages with whatsapp_read_messages.' It provides clear context for a typical workflow, though it doesn't explicitly exclude alternatives like whatsapp_search_messages.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Maheidem/waha-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server