Skip to main content
Glama
shaxzodrashid

Telegram MCP Server

get_account_info

Retrieve details of the current Telegram session, including user ID and phone number.

Instructions

Returns information about the currently logged-in Telegram account.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler function for the 'get_account_info' tool. It is decorated with @mcp.tool(), calls telegram_service.get_me(), and returns formatted account info.
    @mcp.tool()
    async def get_account_info():
        """
        Returns information about the currently logged-in Telegram account.
        """
        logger.info("Executing get_account_info tool")
        me = await telegram_service.get_me()
        return f"Logged in as: {me.first_name} (@{me.username}) [ID: {me.id}]"
  • The tool is registered via the @mcp.tool() decorator on the get_account_info function, which registers it with the FastMCP server.
    @mcp.tool()
    async def get_account_info():
  • The get_me() helper method in TelegramService that calls the Telethon client's get_me() to retrieve the current user info.
    async def get_me(self):
        await self.start()
        if self.client:
            return await self.client.get_me()
        return None
Behavior3/5

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

No annotations are provided, and the description does not disclose behavioral traits beyond the fact that it returns information. For a simple read-only tool, this is adequate but not rich.

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, front-loaded sentence with no wasted words. It is appropriately concise for a trivial tool.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given no output schema, the description could be more specific about what 'information' is returned. However, for a tool with no parameters and no siblings, it is minimally complete.

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?

There are no parameters, and the schema coverage is 100%. Per guidelines, a baseline of 4 is appropriate.

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?

The description clearly states the action ('Returns information') and the resource ('the currently logged-in Telegram account'). It is specific enough, though the term 'information' is vague. No siblings exist, so no differentiation needed.

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?

The description does not provide explicit guidance on when to use the tool versus alternatives, but there are no siblings. The context is simple, so the lack of detailed usage instructions is acceptable but not exemplary.

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/shaxzodrashid/TelegramMCP'

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