Skip to main content
Glama

Supergreen WhatsApp

list_chats

Read-onlyIdempotent

List recent WhatsApp chats (1:1 and groups) ordered by most recent activity from the 7-day sync buffer, with names and last message preview.

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
limitNoMaximum number of recent chats to return (default: 20, max: 100)
queryNoOptional case-insensitive filter matched against chat name, phone number, or last message text

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, and closed-world, so the safety profile is covered. The description adds real behavioral context beyond that: results come only from a 7-day sync buffer and are ordered by most recent activity, which tells the agent the data is bounded and pre-sorted. It stops short of noting any truncation or what happens when no chats match.

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?

One tightly packed sentence with the resource and the two most decision-relevant facts (recency ordering, 7-day buffer) front-loaded, and no filler clauses.

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?

With only two optional parameters, rich annotations, and no output schema, the definition covers what an agent needs to call it correctly, including the buffer limitation that explains result gaps. A brief note on expected volume or result-when-empty would make it fully self-contained.

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%, with limit (default 20, max 100) and query (case-insensitive match on name, phone, or last message) fully documented in the schema. The description's mention of ordering and previews is consistent with but not additive to the parameter definitions, so baseline 3 applies.

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 ('List') and resource ('recent WhatsApp chats'), plus scope qualifiers that separate it from siblings: covers both 1:1 and groups (unlike get_groups), is ordered by most recent activity, and returns names plus last message preview. An agent can tell what it gets without opening the schema.

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?

Usage is only implied by the phrase 'from the 7-day sync buffer' and 'recent chats' -- an agent can infer this is the entry-point listing tool, but there is no explicit when-to-use statement, no exclusion (e.g., 'use search_messages to find content inside chats'), and no mention of what happens for older activity outside the buffer.

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.

Resources