Skip to main content
Glama

telegram-terminate-session

Destructive

Terminate a specific Telegram session by its hash, or terminate all other sessions at once to secure your account.

Instructions

Terminate a specific Telegram session by its hash, or explicitly terminate all other sessions by setting terminateAllOther=true

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sessionIdNoSession hash to terminate (numeric string from get-sessions). Required when terminateAllOther is not set
terminateAllOtherNoSet to true to terminate all other sessions (excludes current). Cannot be combined with sessionId
Behavior3/5

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

The description is consistent with annotations (destructiveHint=true) but does not add new behavioral details beyond what annotations already imply. The termination action is clear, but no extra context on side effects or permissions.

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?

The description is a single, well-structured sentence that efficiently covers the two use cases without fluff. Every word adds meaning.

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?

The description adequately covers the tool's purpose and parameter interactions for a simple 2-parameter tool. With clear annotations and schema, it is largely complete, though it could explicitly state the mutual exclusivity constraint.

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?

Schema coverage is 100%, so baseline is 3. The description adds value by clarifying the two operational modes (specific vs all others) and implying mutual exclusivity, which is also in schema descriptions but integrated concisely.

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 clearly states the tool terminates Telegram sessions, specifying two modes: by session hash or all other sessions. This differentiates it from sibling tools like telegram-logout.

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 explains when to use each parameter mode (specific session vs all others). However, it does not explicitly contrast with alternatives like telegram-logout or mention when not to use.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/mcp-telegram/mcp-telegram'

If you have feedback or need assistance with the MCP directory API, please join our Discord server