Skip to main content
Glama
WhatsApp Messaging API by Retention Stack

WhatsApp Messaging API by Retention Stack

request_pairing_code

Request an 8-digit pairing code as an alternative to scanning a QR code.

Instructions

Request an 8-digit pairing code as an alternative to scanning a QR code.

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": {
      "phoneNumber": "<phoneNumber>"
    },
    "name": "request_pairing_code"
  }
}

Input Schema

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

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",
      -  "phoneNumber"
      -]New value: +[
      +  "phoneNumber"
      +]
  2. First observedv1.0.3

TDQS

B3.3/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 entire behavioral burden and it does not meet it. It does not say whether the code expires, how it is delivered (SMS to the given number), whether repeated requests invalidate prior codes or are rate limited, or what side effects the request has. For an action that triggers an external message, these are material omissions.

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 and its differentiator front-loaded and no filler. Nothing can be removed without losing information.

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

Completeness3/5

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

With no annotations and no output schema, the description is the only place behavior can be described, and it covers purpose but not consequences. It says nothing about what the caller receives (a code to be relayed where?) or about validity windows, leaving an agent unable to set expectations after the call.

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%: phoneNumber's format and the session/token interaction are already documented in the schema, so baseline 3 applies. The description adds no meaning beyond the schema, such as which number receives the code or how session scope affects pairing.

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 pairs a specific verb ("Request") with a specific resource ("8-digit pairing code") and immediately distinguishes the outcome from the QR-code path, so an agent can tell it apart from get_qr_code. It stops short of naming the sibling tool explicitly, so the differentiation is implied rather than enforced by name.

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?

"As an alternative to scanning a QR code" implies the situation that selects this tool, but that condition is stated as a product fact rather than an instruction to the agent. There is no explicit "use this when..." phrasing, no named alternative, and no note on prerequisites such as an existing session or an unauthenticated state.

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