Skip to main content
Glama
telegram-bot-testing-mcp
by SnimanOff

tg_login

Opens a visible browser window for one-time Telegram login via QR code or phone, then saves the authenticated session in the profile for later bot-testing runs.

Instructions

Open a visible browser window for one-time Telegram login (QR or phone). The session persists in the profile afterwards.

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

Input Schema

NameRequiredDescriptionDefault
timeout_sNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/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 two meaningful behaviors: a visible (headful) browser window and that the session persists after success. It omits critical operational behavior such as whether the call blocks until a human completes login, what happens on timeout or failure, and whether the window must be closed afterwards.

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?

Two short sentences, front-loaded with the action and goal, followed by the persistence consequence. No wasted wording.

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?

An output schema exists, so return values need no explanation, and the description covers the essential intent for an interactive login step. The remaining gap is the human-in-the-loop blocking/timeout behavior, which matters for an agent orchestrating this call.

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 description coverage is 0% for the single parameter timeout_s, and the description never mentions it. The parameter name and default of 300 are somewhat self-explanatory, but the description adds no meaning about what the timeout governs or what occurs when it elapses.

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 (open a browser window) plus the goal (one-time Telegram login via QR or phone), which is more informative than the bare name. It does not distinguish itself from siblings such as tg_login_code, tg_login_password, or tg_login_phone, so an agent must infer whether this tool is the entry point for those flows.

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?

'One-time login' and 'session persists in the profile afterwards' imply when to call it and that it need not be repeated. There is no explicit guidance on what to do after it opens (e.g., follow with tg_login_code/phone/password), nor any stated preconditions or when-not conditions.

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