Skip to main content
Glama

get_pairing_qr

Initiates pairing and returns a QR code (image, an auto-refreshing link, and a data URL). The QR must be scanned with the camera of the phone that has the user's WhatsApp, so it has to be shown on a different screen (another phone, a computer or a tablet). If the user is talking to you on the same phone that has their WhatsApp, and has no second screen to show the QR on, do NOT use this — use request_pairing_code instead. If the QR expires, call it again: it reuses the running pairing session. 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

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_pairing_qr"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.9/5.0
Behavior5/5

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

Goes well beyond the annotations: it discloses the multi-tool session exclusivity constraint, that a retry reuses the running pairing session, and that the artifact must be displayed on a separate screen from the WhatsApp phone. This is exactly the session-state context an agent cannot infer from readOnlyHint/destructiveHint alone.

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?

Four tight sentences, each carrying a distinct rule, front-loaded with what the tool returns and followed by the selection constraint. No redundant restatement of the title or annotations.

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

Completeness5/5

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

With no output schema and no parameters, the description carries the return-shape burden itself and does so by naming the three QR representations. The destructive/session interplay with sibling tools is fully covered, leaving nothing an agent needs before calling.

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

Parameters4/5

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

The tool takes zero parameters, so there is nothing to disambiguate beyond the schema; baseline 4 applies. The description correctly adds no parameter noise.

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?

Uses a specific verb+resource ('Initiates pairing and returns a QR code') and enumerates the three return forms (image, auto-refreshing link, data URL). It explicitly distinguishes itself from the sibling request_pairing_code, so an agent can select it 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 Guidelines5/5

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

Gives explicit when-to-use (user has a second screen), when-not ('same phone ... no second screen — do NOT use this'), the named alternative (request_pairing_code), and mutual-exclusion rules against request_pairing_code and restart_session. It also covers the expiry retry path.

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.