Skip to main content
Glama

WhatsApp Agent: WhatsApp Team Inbox & CRM

List conversations, closed ones included

whatsapp-list-conversations
Read-only

Conversations over a period, newest first, open and closed alike: the last seven days unless since says otherwise. A conversation belongs to the period it started in, whenever it closed: for what was closed today, start since a few days back, ask for closed, and read each row's closed_at. Use it for what whatsapp-list-chats cannot show, which is anything already closed: what a teammate closed today, which closed conversations nobody answered, how one went. Each row has the chat id (pass it to whatsapp-open-chat or whatsapp-read-messages, closed or not), the contact, its owner, when it started, was first taken by a person and closed, who answered last, the replies each side sent, whether a person took over from the agent, and the customer's rating. team_replies and handed_over are null on WhatsApp Business lines, which do not record them: say unknown, not zero. owner is the teammate who holds it now: a transferred conversation shows its last owner only. total counts every match; if scanned_limit_reached is true the period held more conversations than were read, so say the list may be incomplete.

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": "whatsapp-list-conversations"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoHow many conversations to return, 25 at most.
ownerNoConversations owned by one teammate, by name. `me` is the person who connected; `nobody` is conversations no teammate owns.
sinceNoOnly from this moment on, as an ISO 8601 date-time with its offset, e.g. 2026-11-27T09:00:00-03:00.
untilNoOnly conversations that started up to this moment, as an ISO 8601 date-time with its offset.
cursorNo`next_cursor` from the previous page, to get the next one.
statusNo`closed` for finished conversations, `open` for ongoing ones.
handledByNoWho answered last: `agent` (the Calypso Agent), `team` (a person), or `nobody`.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.9/5.0
Behavior5/5

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

Annotations already establish a safe read-only operation, while the description adds important behavior: period attribution is based on start time rather than close time, `team_replies` and `handed_over` may be null on WhatsApp Business lines and should be reported as unknown, not zero, and `owner` reflects only the current/last owner after transfer. It also explains `total` and warns that `scanned_limit_reached` means the list may be incomplete.

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 scope, ordering, and the closed-conversation distinction, then adds only operationally relevant details about row fields and pagination limits. Despite its length, every sentence earns its place because there is no output schema to document the returned fields elsewhere.

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?

Complete for a 7-parameter read-only listing tool with no output schema: it explains the period semantics, sibling relationship, returned fields, null-value edge cases, owner behavior, and pagination completeness signal. An agent has enough information to call it correctly and interpret the result.

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 the baseline is 3, but the description adds real meaning beyond the schema by stating the default period is the last seven days unless `since` says otherwise. It also clarifies how `since` and `status=closed` work together when finding recently closed conversations, though it does not add much about `limit` or `cursor` beyond the schema.

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?

States a specific verb and resource: list conversations over a period, newest first, including both open and closed. It explicitly distinguishes itself from whatsapp-list-chats by covering already-closed conversations.

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

Usage Guidelines5/5

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

Gives explicit when-to-use guidance tied to a named sibling and concrete cases such as what a teammate closed today or which closed conversations nobody answered. It also explains the query pattern needed to find conversations closed today using `since`, `closed`, and `closed_at`.

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.