Skip to main content
Glama

list_contacts

Read-only

Retrieve WhatsApp contacts from the encrypted local cache, with search, saved-filter and pagination. Phone-backed entries only, deduplicated.

Instructions

List WhatsApp contacts from the encrypted DBR3 cache (no network). Results are deduplicated by phone number — the same person across multiple labels collapses to one row. Saved contacts sort before unsaved, then alphabetically by display name. WhatsApp "@lid" privacy identifiers (opaque, non-dialable) are always excluded — only real phone-backed contacts are returned.

Examples: All contacts: {} Saved contacts only: { is_my_contact: true } Search by name: { query: "Maria" } Page 2 of 50: { limit: 50, offset: 50 }

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoMax contacts to return (default 50, max 500)
queryNoCase-insensitive substring matched against name, pushname, phone, and JID
offsetNoSkip N contacts for pagination (default 0)
is_my_contactNoIf true, only contacts saved in the user address book. If false, only un-saved contacts. Omit to include both.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.6

TDQS

A4.7/5.0
Behavior5/5

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

Goes well beyond the readOnlyHint/openWorldHint annotations by disclosing deduplication by phone number, the sort order (saved first, then alphabetical), and the exclusion of non-dialable @lid identifiers. This tells the agent exactly what shape of data comes back and what is silently filtered out.

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?

Front-loaded with the core operation, then behavior, then a compact example block. Every sentence carries information and the formatting makes it scannable.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the description carries the return-value burden and does so: dedup, ordering, and exclusion rules are all stated. An agent has everything needed to call it and interpret the result.

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

Parameters4/5

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

Schema coverage is already 100%, so the baseline is 3, but the examples add real value by showing how is_my_contact, query, and limit/offset are combined in practice (e.g., {limit: 50, offset: 50} for page 2). It stops short of documenting edge behavior such as how limit/offset interact with the deduplication pass.

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+resource ('List WhatsApp contacts') and immediately scopes it to the local encrypted DBR3 cache with no network. This clearly separates it from get_contact (singular lookup), export_contacts (dump), and query (search tool) among siblings.

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

Usage Guidelines4/5

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

The four worked examples cover the main invocation modes (unfiltered, saved-only, name search, pagination), which effectively communicates when to use each parameter combination. However, it never states when NOT to use this tool or points to an alternative such as get_contact for a single known contact.

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