Skip to main content
Glama

Get WhatsApp linking QR code

whatsapp_get_qr

Link a device by generating a WhatsApp QR code to scan in Linked Devices, with ASCII terminal output and a pairing-code hint.

Instructions

Returns the QR code to scan in WhatsApp → Linked Devices → Link a Device. Also returns an ASCII rendering for terminals and a pairing-code alternative hint. The QR rotates every ~20-60s — scan promptly.

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does disclose meaningful behavior: the response includes both a QR image and an ASCII terminal rendering, plus a pairing-code alternative hint, and the code expires in ~20-60s. Missing are any notes on prerequisites (must not already be logged in), failure modes, or what happens on repeated calls.

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?

Three short sentences, front-loaded with the primary purpose, then the alternate renderings, then the time-sensitive constraint. No redundant restatement of the title and nothing that could be cut.

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 zero-parameter, no-output-schema tool, the description covers the return contents (QR, ASCII rendering, pairing hint) and the rotation timing an agent must account for. A brief note on preconditions, such as requiring an unlinked session, would make it fully complete.

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, which is the baseline 4 case; there is nothing for the description to disambiguate. The description correctly implies a parameterless call by describing only the return payload.

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?

States a specific verb and resource ('Returns the QR code') and ties it to a concrete UI flow (WhatsApp → Linked Devices → Link a Device), so an agent knows exactly what it produces. It also distinguishes itself from the pairing-code path, which the sibling whatsapp_get_pairing_code covers.

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?

Gives clear operational context: use it to link a device by scanning the returned code, and act promptly because the code rotates every ~20-60s. It falls short of naming the alternative explicitly (whatsapp_get_pairing_code) or saying when to prefer the pairing code over the QR.

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