Skip to main content
Glama
WhatsApp Messaging API by Retention Stack

WhatsApp Messaging API by Retention Stack

get_qr_code

Get the QR code to authenticate a session by scanning with WhatsApp (Settings > Linked Devices).

Instructions

Get the QR code to authenticate a session by scanning with WhatsApp (Settings > Linked Devices).

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_qr_code"
  }
}

Input Schema

NameRequiredDescriptionDefault
sessionNoSession name. Leave out when using a session token (ch_live_...).me

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_...)."
    • removedInput schema / required
      Removed value: -[
      -  "session"
      -]
  2. First observedv1.0.3

TDQS

B3.4/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 burden. It usefully explains what the returned QR code is for and where the user must scan it, but says nothing about expiry, whether it requires a pre-created session, or whether the result is an image or a string, which matters for a time-limited credential artifact.

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?

A single well-formed sentence with the action front-loaded and the parenthetical UI hint placed after the main clause. No filler, though the sentence could have carried one more clause of operational detail at the same cost.

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?

For a one-parameter tool with no output schema and no annotations, the description covers purpose and user-side workflow but leaves the agent without expiry/lifetime behavior or return-format expectations. Adequate to call it, not fully complete.

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 single 'session' parameter already documents the default 'me' and the instruction to omit it when using a ch_live_ session token. The description adds no further meaning about the parameter, so the baseline 3 applies.

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?

States a specific verb and resource ('Get the QR code') plus the concrete purpose ('authenticate a session'), and adds the WhatsApp UI path for scanning. It does not distinguish itself from the sibling request_pairing_code, which is an alternate authentication route, so an agent must infer the choice.

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?

Usage is implied by 'to authenticate a session' and the Linked Devices hint, giving a reasonable picture of the scenario. There is no explicit statement of when to prefer this over request_pairing_code, nor any prerequisite about needing an existing session first.

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