Skip to main content
Glama

List contacts

list_contacts
Read-onlyIdempotent

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.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultNoThe JSON-compatible result returned by the Kaption extension

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Adds substantial behavior beyond annotations: it reads a local encrypted cache with no network, deduplicates by phone number across labels, defines sort order (saved before unsaved, then alphabetical), and excludes non-dialable @lid identifiers. These are concrete traits an agent could not infer from the readOnly/idempotent hints.

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?

Front-loads the key facts (source, dedup, sort, exclusion) before the examples, with no filler sentences. The examples section is slightly verbose but each maps to a distinct invocation pattern, so it largely earns its space.

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?

An output schema exists, so return values need not be explained. The description covers source, deduplication, ordering, exclusions, and pagination semantics, leaving no ambiguity for a correctly-formed call.

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 100%, so the baseline is 3; however the examples show how parameters combine (is_my_contact for filtering, query for search, limit/offset for pagination), adding practical meaning beyond the individual field descriptions.

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 and resource ("List WhatsApp contacts") plus scope (from the encrypted DBR3 cache, no network). Clearly distinguishes it from get_contact (single) and export_contacts (bulk export) 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 Guidelines3/5

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

The examples demonstrate invocation modes (all, saved-only, search, pagination) but never state when to choose this tool over alternatives like get_contact or export_contacts. Usage is implied through examples rather than explicit routing guidance.

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