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

tg_login_phone

Submit a phone number to begin headless Telegram login; the verification code arrives on other logged-in devices or by SMS for the next code submission step.

Instructions

Headless login step 1: submit the phone number. The code arrives on the account's other logged-in devices (or SMS); pass it to tg_login_code.

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": {
      "phone": "<phone>"
    },
    "name": "tg_login_phone"
  }
}

Input Schema

NameRequiredDescriptionDefault
phoneYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/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 add real behavior: the verification code is delivered out-of-band to the account's other logged-in devices or via SMS, which tells the agent what to expect and why the call blocks on an external event. It omits failure modes, rate limits, and whether a prior authenticated session is required.

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 tight sentences: the action and flow position come first, the code-delivery behavior and hand-off second. Nothing is redundant.

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 one-parameter step tool with an output schema, the description covers purpose, sequencing, and the out-of-band code delivery, which is the key non-obvious detail. The only meaningful gap is the accepted phone-number format.

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 0% and the single parameter only has a title of 'Phone', so the description must compensate. It confirms the value is a phone number but gives no format guidance (country code, E.164, digits-only), leaving the agent to guess at a syntactically critical field.

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 ('submit the phone number') and frames it as 'Headless login step 1', which separates it from the interactive-login siblings and from tg_login_code, which it names as the follow-up step.

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?

It clearly places the call in a sequence: use it first in the headless login flow, then hand the received code to tg_login_code. It does not explicitly say when to prefer the non-headless tg_login instead, so the exclusion is only implied by the word 'Headless'.

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