Skip to main content
Glama
whatsapp-mcp

whatsapp-mcp

by vimal-v-2006

Get WhatsApp contact

whatsapp_get_contact

Resolve a WhatsApp contact by JID, phone number, or name to confirm existence and retrieve LID and profile picture URL.

Instructions

Resolve a contact by JID, phone number or name; returns existence, LID and profile picture URL.

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": {
      "id_or_name": "<id_or_name>"
    },
    "name": "whatsapp_get_contact"
  }
}

Input Schema

NameRequiredDescriptionDefault
id_or_nameYesContact JID, phone number, or name

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.6/5.0
Behavior3/5

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

No annotations are supplied, so the description must carry behavioral disclosure; it does indicate this is a read-style lookup and hints at not-found behavior via "returns existence." It omits whether authentication/pairing is required, whether name lookups can be ambiguous or return multiple matches, and any rate-limit or error behavior.

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?

A single front-loaded sentence with zero filler, covering accepted inputs and the shape of the result. Nothing could be cut without losing information.

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 one-parameter lookup with no output schema, the description usefully sketches the return payload (existence, LID, profile picture URL). Missing are the auth/pairing prerequisite and disambiguation behavior, which keep it from being fully complete.

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 coverage is 100% and the schema text ("Contact JID, phone number, or name") is essentially duplicated by the description, so no meaning is added. It does not explain how ambiguous name matches or formatting of phone numbers are handled, which would have been genuinely additive.

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?

Uses a specific verb ("Resolve") plus the resource ("a contact") and enumerates the accepted identifier types, which separates it from whatsapp_list_contacts. It stops short of explicitly naming the sibling it is not, so a 4 rather than 5.

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 phrase "Resolve a contact by..." implies a single-record lookup, letting an agent infer this is for one contact rather than enumeration. However, it never states when to use this instead of whatsapp_list_contacts, and gives no preconditions or not-found handling guidance.

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