Skip to main content
Glama

Check Telegram Pairing Status

tg_pair_status
Read-only

Check a Telegram pairing started with tg_pair_account. While state is "qr" a new image is returned each time — show the latest to the user. A Telegram pairing may report "password_needed": the user enters their cloud password on the console's pairing page, never here. When state becomes "paired" the account is ready and appears in wa_list_accounts.

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": {
      "pair_id": "<pair_id>"
    },
    "name": "tg_pair_status"
  }
}

Input Schema

NameRequiredDescriptionDefault
pair_idYesthe pair_id returned by tg_pair_account

Output Schema

NameRequiredDescriptionDefault
stateYesstarting, qr, code, password_needed (a Telegram account with two-step verification: the user must enter their cloud password on the console's pairing page — never ask for it here), paired or failed
networkNothe messaging network the pairing links on: whatsapp or telegram
pair_idNopass this to wa_pair_status to follow the pairing
refusalNopresent only when pairing could not be started
pair_codeNothe 8-character code the user types on their phone (phone-number pairing only)
expires_atNowhen pair_code stops working, RFC 3339 (phone-number pairing only)
needs_planNotrue when the linked number has no plan yet and will not run until the user buys one in the console
instructionsNowhat to tell the user to do
qr_png_base64Noa PNG image of the QR code, base64 encoded — display this to the user

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior5/5

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

Annotations only declare readOnlyHint=true and idempotentHint=false; the description adds real behavioral context beyond that — a fresh image is returned on each poll while state is 'qr', a 'password_needed' state exists and must be handled outside this tool, and 'paired' means the account shows up in wa_list_accounts. The 'new image each time' statement corroborates the non-idempotent annotation rather than contradicting it.

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, each carrying distinct information (poll trigger, QR polling behavior, password handling, completion condition), with the primary framing front-loaded. No filler or redundant restatement of the tool name.

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?

An output schema exists, so return values need not be enumerated, yet the description still explains the meaningful state values ('qr', 'password_needed', 'paired') and the correct user-facing action for each. For a one-parameter polling tool this covers everything an agent needs to call it and interpret results correctly.

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?

There is a single parameter with 100% schema description coverage, and the schema already states it is 'the pair_id returned by tg_pair_account'. The description restates that provenance without adding format, lifetime, or reuse guidance, so this sits at the baseline for a well-documented schema.

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 and resource ('Check a Telegram pairing') and ties it to the originating tool by name ('started with tg_pair_account'), which cleanly separates it from the WhatsApp status sibling. An agent can identify what this does and where it sits in the pairing flow without opening the schema.

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 when-to-use context (after tg_pair_account) plus state-specific instructions: show the latest image while state is 'qr', have the user enter the cloud password on the console page, and treat 'paired' as completion. It stops short of naming an explicit alternative tool to use in other contexts, but the usage conditions are unambiguous.

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.

Resources