Skip to main content
Glama
whatsapp-mcp

whatsapp-mcp

by OmarYousef95

Search WhatsApp contacts

search_contacts

Search WhatsApp contacts by partial or uncertain name to find matching names and phone numbers before sending a message.

Instructions

Search the user's WhatsApp contacts by name (case-insensitive substring). Returns matching names with phone numbers. Use this to resolve the exact contact name before send_message when the user gives a partial or uncertain name.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "query": "<query>"
    },
    "name": "search_contacts"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryYesName fragment to search for

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior3/5

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

No annotations are supplied, so the description bears the full behavioral burden. It usefully discloses the matching rule (case-insensitive substring) and the shape of what comes back, but it says nothing about result caps, pagination, empty-result behavior, or rate limits — all of which matter for a lookup that may match many contacts.

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?

Three short sentences: what it does, what it returns, when to reach for it. The purpose is front-loaded and no sentence is filler.

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 single-parameter lookup with no output schema, the description covers purpose, matching behavior, return content, and the calling context. The remaining gap is edge-case behavior on zero or many matches, which an agent would still have to discover by calling it.

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% and there is only one parameter, so the baseline is already 3. The description still earns credit by clarifying that the query matches on the name field via case-insensitive substring, which is matching semantics the schema's "Name fragment to search for" does not spell out.

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?

The description gives a specific verb ("Search"), a specific resource (the user's WhatsApp contacts), the matching semantics (case-insensitive substring on name), and the return content (matching names with phone numbers). This is enough to distinguish it from every listed sibling, none of which search contacts.

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?

It states the concrete trigger — the user supplies a partial or uncertain name — and names the downstream tool (send_message) whose correctness depends on calling this first. There is no explicit when-not guidance (e.g. what to do when the query returns nothing, or whether list_recent_chats is a better route for an unknown contact).

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