Skip to main content
Glama

Search WhatsApp contacts

whatsapp_search_contacts

Search saved WhatsApp contacts by name or phone number to return JID, name and number for messaging. Use it to find the right recipient before sending a message.

Instructions

Search saved contacts by name or phone number. Returns jid, name, notify name and number so you can send messages.

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": "whatsapp_search_contacts"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMax results (default 10)
queryNoName substring or phone digits. Empty = list first N contacts.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4/5.0
Behavior3/5

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

With no annotations, the description must carry the behavioral burden. It does disclose the returned fields (jid, name, notify name, number), which is valuable given there is no output schema, and 'saved' implies a local contact store rather than a directory lookup. It says nothing about read-only semantics, connection/auth requirements, or behavior when the query is empty beyond what the schema states.

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?

Two short sentences: identification first, return shape second, with zero filler. Every clause carries information the agent can act on.

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 two-parameter read-only contact lookup, the description plus a fully documented schema and disclosed return fields are near-sufficient. The only real gap is the absence of any note about requiring an active connection or how results are ordered/truncated.

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 description coverage is 100%, so the baseline is 3, and the description additionally clarifies that matching works on either name or phone digits, reinforcing the two intake modes. It does not restate the limit default or cap, which the schema already covers, so nothing is lost.

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 ('search') and a specific resource ('saved contacts') with the matching keys (name or phone number). The resource is clearly distinct from the chat-, message- and call-oriented siblings, so an agent can route here without ambiguity.

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 via the trailing clause 'so you can send messages', which hints at a resolve-contact-then-send workflow. There is no explicit when-to-use/when-not, no mention of how this differs from listing chats, and no prerequisites (e.g. must be paired/connected) are stated.

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