Skip to main content
Glama
dikaglorya

telegram-mcp

by dikaglorya

List active sessions

telegram_list_sessions
Read-only

List all active Telegram sessions on your account, flag the current one, and get the hashes needed to log out other devices.

Instructions

List every device currently logged into this account, marking the one running this server with current:true. Each entry carries the hash that telegram_logout_session needs.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so safety is covered. The description earns credit for disclosing output content beyond annotations: the current:true marker and the presence of a session hash, which tells the agent what it gets back and what it can chain into.

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 with no filler. The scoping statement comes first and the downstream-consumer hint follows, which is the right order for an agent scanning for relevance.

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 zero-parameter read tool with no output schema, the description supplies the key return semantics (per-device entries, current marker, hash). Ordering or pagination behavior is not mentioned, but that is a minor gap given the tool's simplicity.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The tool takes zero parameters, so the baseline is 4. There is nothing for the description to clarify about inputs, and it correctly omits parameter discussion.

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 (list) and resource (logged-in devices/sessions) with added scope detail: every device, with the current one flagged current:true. It also distinguishes itself from the adjacent telegram_logout_session tool by naming what that tool consumes.

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 description establishes the workflow context by noting each entry carries the hash that telegram_logout_session needs, which tells the agent to call this before logging a session out. It gives no explicit exclusions or alternate listing tools, so it stops short of a 5.

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

Deploy Server

Other Tools