Skip to main content
Glama
whatsapp-mcp

whatsapp-mcp

by vimal-v-2006

WhatsApp pairing code

whatsapp_pairing_code

Generates an 8-character pairing code for a phone number, letting users link WhatsApp via Linked devices > Link with phone number as an alternative to QR scanning.

Instructions

Alternative to QR: get an 8-character pairing code for a phone number (used in WhatsApp > Linked devices > Link with phone number).

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_number": "<phone_number>"
    },
    "name": "whatsapp_pairing_code"
  }
}

Input Schema

NameRequiredDescriptionDefault
phone_numberYesPhone number with country code, e.g. +14155551234

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full disclosure burden. It helpfully discloses the credential format (8 characters) and the exact UI path where it is entered, but never mentions how long the code stays valid, whether a new code invalidates a previous one, or how failures such as an unlinked or invalid number appear. For a tool that mints an ephemeral credential, code lifetime is a notable omission.

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?

One short sentence, front-loaded with the distinguishing 'Alternative to QR' framing, followed by the concrete output and the UI location a user would need. Nothing is padded or repeated.

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, no-output-schema tool, the description covers purpose, input intent and the shape of the return value in one line. The main remaining gap is credential lifetime, which matters because the agent may need to tell a user how quickly to act.

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%; the schema already documents phone_number with an E.164 example. The description restates the same idea ('for a phone number') without adding format rules, normalization behaviour for missing country codes, or what happens with malformed input, so baseline 3 is right.

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 states a specific verb and resource ('get an 8-character pairing code for a phone number') and explicitly distinguishes itself from the QR path, which is the other way to link a device. An agent can tell this apart from whatsapp_link without inspecting either schema.

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?

Framing it as 'Alternative to QR' gives a workable selection rule: pick this when the user cannot scan a QR code. It does not state explicit exclusions or prerequisites, such as whether the account must already be paired or what happens if the number is unknown, but the implied context is clear.

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