Skip to main content
Glama

Supergreen WhatsApp

search_contacts

Read-onlyIdempotent

Search WhatsApp contacts and groups by name, pushname, or phone number to find their chat ID.

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
limitNoMaximum number of matching contacts/groups to return (default: 20, max: 50)
queryYesName, pushname, or phone number substring to search for

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and closed-world scope, so safety behavior is fully covered elsewhere. The description contributes the useful behavioral fact that the returned value is a chat ID usable downstream, but says nothing about substring-matching semantics, empty-result behavior, or what happens when the limit truncates matches.

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 tightly written sentence with the resource and searchable fields front-loaded and the output goal trailing. Nothing is redundant, though the absence of any second sentence on when-to-use is a gap rather than a virtue.

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 lookup with a fully described schema and no output schema, the definition states what is searched and what comes back (chat ID). It stops just short of covering matching behavior and result shape (contact vs group entries), which would matter for an agent parsing the response.

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%: query is documented as a name/pushname/phone substring and limit as default 20 / max 50 with min 1. The description only echoes the field list, adding no syntax hints (e.g., whether phone numbers need country code) or guidance on choosing a limit, so 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?

The description opens with a specific verb and resource ('Search WhatsApp contacts and groups') and states the searchable fields (name, pushname, phone number) plus the payoff ('find their chat ID'). That outcome makes it distinguishable in practice from message-focused siblings like search_messages, though it never explicitly contrasts itself with list_chats, which an agent might reasonably consider for the same lookup.

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?

Use is implied rather than stated: an agent can infer this is the resolution step before an ID-requiring call such as send_message or get_group_details, but the description never says when to prefer this over list_chats or check_whatsapp_number, and gives no exclusions or prerequisites.

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