Skip to main content
Glama

list_chats

Read-only

Retrieve WhatsApp chats ordered by recent activity, including JID and unread counts. Filter by chat name, number, or unread status to find conversations needing attention.

Instructions

List chats, most recently active first, with each chat's JID and unread count.

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": "list_chats"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
queryNoFilter by chat name or number.
unread_onlyNoOnly chats with unread messages.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.1/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, destructiveHint=false and openWorldHint=false, so the safety profile needs no restating. The description does add real value by disclosing sort order (most recently active first) and the payload shape (JID and unread count), which substitutes for a missing output schema, but says nothing about paging or total counts beyond the limit.

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?

A single front-loaded sentence with no filler; ordering and return fields are packed into one clause without repetition of the tool name.

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?

For a simple zero-required-parameter read tool this is close to adequate, and the return-field disclosure compensates for the absent output schema. However, it omits the default limit of 20 / max 200 truncation behavior, which an agent needs to know to avoid silently missing chats.

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

Parameters2/5

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

Schema coverage is a middling 67%: query and unread_only are documented in the schema, while limit carries only default/min/max bounds with no explanatory description. The description contributes nothing about any of the three parameters, so the undocumented limit behavior is left entirely to inference.

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 ("List chats") plus the ordering and returned fields, so the agent knows exactly what comes back. It does not differentiate from siblings such as list_messages, which is the only gap at this level.

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 never says when to use this versus list_messages or search_contacts, nor any prerequisite such as being connected/authenticated. Usage is only inferable from the name and the mention of unread counts.

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