Skip to main content
Glama

request_pairing_code

Initiates pairing and returns an 8-character code to enter in WhatsApp (Linked devices → Link with phone number). Use this when the user has only the one phone (the phone with their WhatsApp): the code is typed into WhatsApp on that same phone, so it needs no second screen or camera — unlike the QR code. Use only ONE pairing method at a time: never call request_pairing_code and get_pairing_qr together, and never call restart_session while the user is pairing.

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": "request_pairing_code"
  }
}

Input Schema

NameRequiredDescriptionDefault
phone_numberYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations only declare the safety profile (readOnlyHint=false, idempotentHint=false, destructiveHint=false, openWorldHint=false); the description adds real behavior beyond that — the 8-character code return, that it is typed into the same phone, and the mutual-exclusivity constraint against the QR and restart tools. It does not cover code lifetime/expiry or what happens on an invalid number, which is the remaining gap for a session-mutating tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The core action and return value are front-loaded, and the constraints follow in a clear sentence with an explicit rule ("Use only ONE pairing method at a time"). Slight redundancy in explaining "the phone with their WhatsApp" twice, but no sentence is wasted.

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 tool with no output schema, the description is nearly sufficient: it explains the returned code, where it is entered, and how it conflicts with sibling tools. The missing pieces are phone-number formatting and error/timeout behavior, which an agent would need for correct invocation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0% for the single required parameter, and the description never mentions phone_number or its expected format (country code, E.164, digits only). With the schema providing no help, the description should have compensated and does not.

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?

"Initiates pairing and returns an 8-character code to enter in WhatsApp" gives a specific verb, resource, and return artifact, and immediately distinguishes the tool from its sibling get_pairing_qr by naming the QR-code alternative. An agent can tell the two pairing methods apart without opening 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 Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It states the exact selecting condition (user has only one phone, same phone that holds WhatsApp) and an explicit exclusion set: never call request_pairing_code with get_pairing_qr, and never call restart_session while pairing. Both the when-to-use and the when-not-to-use cases are spelled out.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.