Skip to main content
Glama
jevil25

WhatsApp Messaging API by Retention Stack

by jevil25

check_contact_exists

Verify if a phone number is registered on WhatsApp before sending messages. Avoid failed sends by confirming contact availability.

Instructions

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

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
phoneYesPhone number, 10-15 digits, no + or spaces
sessionYesSession name

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv1.0.3

TDQS

A4/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It clearly communicates that this is a read-only check rather than a send operation, but it does not disclose the return format, error behavior, or whether it has no side effects beyond checking. The behavior is not contradicted, but the disclosure is incomplete.

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?

The description is a single sentence with no filler or repetition. The core purpose and usage timing are front-loaded, making it easy for an agent to parse quickly.

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 simple two-parameter check tool with a complete schema and a clear purpose, the description is largely sufficient. The main gap is that there is no output schema and the description does not state what the check actually returns, but an agent can reasonably infer a boolean or status result from 'check whether.'

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 parameters are already well documented. The description adds no additional parameter-level meaning, leaving the baseline score of 3 appropriate.

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 uses a specific verb ('Check') and a clear resource ('whether a phone number is registered on WhatsApp'), and it adds the intent 'before sending to it,' which distinguishes it from the send_* siblings. The tool's role as a pre-send verification step is immediately obvious.

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?

The phrase 'before sending to it' clearly indicates when this tool should be used, placing it in the workflow prior to send_text_message, send_image, or send_file. It does not explicitly name alternatives or exclusions, but the context is strong enough to guide selection.

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

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/jevil25/whatsapp-messaging-api-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server