Skip to main content
Glama

list_contacts

Retrieve all known WhatsApp contacts and chat names alphabetically, with optional filtering by name, number, or JID to find specific entries.

Instructions

List every known contact and chat name (alphabetical), optionally filtered by a name or number.

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_contacts"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMax contacts to return (1-100000).
queryNoOptional case-insensitive filter on name, number or jid.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.4/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 behavioral burden. It discloses the alphabetical ordering and the optional filter, but says nothing about pagination, whether a default limit truncates results (the schema defaults to 5000), or permission/auth requirements for reading the contact book.

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 no filler; the alphabetical ordering and filter are both stated compactly. The only minor cost is the slightly ambiguous "chat name" phrasing within an otherwise tight sentence.

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?

This is a simple two-parameter read tool with full schema coverage and no output schema, so most of what an agent needs is present. However, with no annotations the description could have noted the read-only nature and that the default limit may truncate a large contact book, which is a meaningful gap for a "list every known contact" claim.

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%, so both the limit range and the case-insensitive filter on name/number/jid are already fully documented in structured data. The description restates the filter in looser terms ("name or number") and omits jid, adding no meaning beyond the schema; baseline 3 applies.

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?

"List every known contact and chat name (alphabetical)" gives a concrete verb, resource, and ordering, so the agent knows this is a full enumeration rather than a search. It does not explicitly differentiate itself from the sibling search_contacts, and the phrase "contact and chat name" is slightly ambiguous about whether chats are returned as entities.

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 phrase "optionally filtered by a name or number" implies the filter use case, but there is no explicit when-to-use guidance versus search_contacts or list_chats. The agent must infer that this is the bulk-listing option and search_contacts is the targeted one.

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