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

tg_login_code

Submit a Telegram login confirmation code during headless authentication; if 2FA is required, it returns password_needed so you can continue with the password step.

Instructions

Headless login step 2: submit the confirmation code. May return password_needed for 2FA accounts (then call tg_login_password).

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": {
      "code": "<code>"
    },
    "name": "tg_login_code"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior3/5

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

No annotations are provided, so the description carries the behavioral burden. It usefully discloses that the call may return password_needed for 2FA accounts, but says nothing about what happens on an invalid or expired code, whether the session persists, or any auth/rate constraints.

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 compact sentences with the primary action front-loaded and the conditional branch second. 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 not be explained, and the description still flags the key 2FA branch. What is missing is failure handling for the single code parameter, which matters for a login step with no annotations.

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% for the single required 'code' parameter. The description identifies it as the 'confirmation code', giving minimal semantic framing, but adds no detail on format, length, or where the code comes from.

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?

The description names a specific action (submit the confirmation code) and places it precisely in the login sequence as 'headless login step 2', which distinguishes it from tg_login, tg_login_phone, and tg_login_password.

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?

The 'step 2' framing implies it follows an earlier login call, and the description explicitly routes to tg_login_password when the result is password_needed for 2FA accounts. It does not name the exact preceding tool or state when not to use this one, so the sequencing is implied rather than spelled out.

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