Skip to main content
Glama

list_chats

Retrieve recent WhatsApp chats with ID, name, and last-message timestamp, sorted newest first. Set a limit to control how many conversations are returned.

Instructions

List recent chats (id, name, last message timestamp), newest first.

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
limitNoMax chats to return (1-200).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.6/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It does disclose meaningful behavior: the result ordering ('newest first') and exactly which fields come back, which tells the agent this is a lightweight read. It does not state read-only/safety semantics, pagination beyond the single limit, or what 'recent' means in time terms.

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 that packs the resource, the returned fields, and the sort order with no filler. Every clause earns its place.

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?

For a one-parameter, no-output-schema list tool, the description covers what is needed: it enumerates the returned fields in place of an output schema and states the ordering. The remaining gap is that 'recent' is never quantified and cross-tool routing to get_chat or search_messages is left implicit.

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 description coverage is 100% and the single parameter (limit, 1-200, default 20) is fully documented in the schema, so the baseline is 3. The description adds nothing about the parameter, and its 'recent' framing does not clarify how limit interacts with recency windows.

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 returned fields (id, name, last message timestamp) and ordering ('newest first'). It is clear what the tool does, though it never distinguishes itself from the sibling get_chat tool, so an agent must infer that this is the multi-chat listing versus the single-chat fetch.

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

Usage Guidelines3/5

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

The word 'recent' implies a bounded recent-activity listing rather than a full archive or a single-chat lookup, which gives implicit usage guidance. However, there is no explicit when-to-use statement, no exclusion of alternatives like get_chat or search_messages, and no mention of whether older chats can be reached at all.

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