Skip to main content
Glama

list_chats

Read-only

Retrieve individual and group WhatsApp chats, pinned first then recent, with each conversation's last message and optional filters by type, name, or account.

Instructions

Liste les discussions (individuelles et groupes), épinglées puis les plus récentes, avec le dernier message.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
kindNo`dm`, `group`, `community`, `broadcast` ou `newsletter`.
limitNo1 à 200, défaut 30.
queryNoFiltre sur le nom ou le numéro (sans accents ni casse).
offsetNo
accountNo
include_archivedNoInclure les discussions archivées (non par défaut).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
chatsYes
next_offsetNo`offset` de la page suivante, absent s'il n'y en a pas.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so the safety profile is covered. The description adds useful context beyond the schema: the ordering (pinned first, then most recent) and that each entry carries the last message. It does not describe pagination behavior despite offset/limit parameters.

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?

A single front-loaded sentence with the verb first and no filler. It is efficient, though packing ordering and return-content into the same clause makes it slightly dense.

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?

A read-only list tool with an output schema, so return structure needn't be explained, and annotations cover the safety profile. The description supplies ordering and content context; only pagination semantics are left implicit, which is a minor gap.

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 coverage is 67%, so the schema already documents kind, limit, query, and include_archived; account and offset are undocumented there. The description implies the chat kinds covered by "individuelles et groupes" but adds no filtering or format detail beyond what the schema provides. Baseline 3 is appropriate.

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?

Names a specific verb (list) and resource (discussions/chats), and adds scope detail: both individual and group chats, ordered pinned-then-recent, including the last message. It does not explicitly differentiate itself from close siblings such as list_recent or list_messages, so it falls short of a 5.

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?

The description states what is listed but gives no when-to-use guidance, no exclusions, and names no alternative. With siblings like list_recent and search_messages available, an agent gets no help deciding between them.

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