Skip to main content
Glama
WhatsApp Messaging API by Retention Stack

WhatsApp Messaging API by Retention Stack

check_contact_exists

Check whether a phone number is registered on WhatsApp before sending to it.

Instructions

Check whether a phone number is registered on WhatsApp before sending to it.

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": {
      "phone": "<phone>"
    },
    "name": "check_contact_exists"
  }
}

Input Schema

NameRequiredDescriptionDefault
phoneYesPhone number, 10-15 digits, no + or spaces
sessionNoSession name. Leave out when using a session token (ch_live_...).me

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv2.0.1
    • addedInput schema / properties / session / default
      Added value: +"me"
    • changedInput schema / properties / session / description
      Previous value: -"Session name"New value: +"Session name. Leave out when using a session token (ch_live_...)."
    • changedInput schema / required
      Previous value: -[
      -  "session",
      -  "phone"
      -]New value: +[
      +  "phone"
      +]
  2. First observedv1.0.3

TDQS

B3.2/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden. "Check whether" implies a non-mutating lookup, which is the one helpful signal, but nothing is said about rate limiting, auth/session requirements, cost of an invalid number lookup, or what a negative result means. For a tool with zero annotation coverage, that leaves meaningful behavioral gaps.

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 sentence with the action front-loaded and no wasted clauses. It is appropriately terse; the gaps are omissions, not verbosity.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

There is no output schema, yet the description never states what the tool returns — presumably a boolean or registration status — nor what happens for an unregistered or malformed number. Combined with missing annotations, an agent cannot predict the response shape from the definition alone.

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%, so the phone format (10-15 digits, no + or spaces) and the session/session-token semantics are already fully documented in the schema. The description adds only the overall framing (phone number being looked up on WhatsApp), 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?

"Check whether a phone number is registered on WhatsApp" names a specific verb (check) and a specific resource/query (phone registration), which is unmistakably different from the send_* siblings. It stops short of naming an alternative tool explicitly, so it is clear but not sibling-differentiating at the highest level.

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?

"before sending to it" implies the usage context — validate a number prior to send_text_message/send_file and friends — but the guidance is inferential rather than an explicit when/when-not rule. No statement about what to do if the check fails or whether the check is mandatory versus optional.

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