Skip to main content
Glama

telegram_logout

Clear authentication cookies to log out from Telegram sessions, removing stored login credentials and access tokens.

Instructions

Clear Telegram authentication cookies

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler function that implements the core logic of the 'telegram_logout' tool. It invokes the auth.logout() method to clear Telegram authentication cookies and returns a standardized MCP response confirming the logout.
    private async handleTelegramLogout(): Promise<any> { await this.auth.logout(); return { content: [ { type: 'text', text: '✅ Successfully logged out from Telegram. Authentication cookies have been cleared.' } ] }; }
  • src/server.ts:235-243 (registration)
    The registration of the 'telegram_logout' tool within the MCP server's tool list, including its name, description, and input schema (which requires no parameters).
    { name: 'telegram_logout', description: 'Clear Telegram authentication cookies', inputSchema: { type: 'object', properties: {}, required: [] } },
  • The input schema definition for the 'telegram_logout' tool, specifying an empty object with no required properties.
    inputSchema: { type: 'object', properties: {}, required: [] }
  • The dispatch case in the main tool execution switch statement that routes calls to the 'telegram_logout' handler.
    case 'telegram_logout': return await this.handleTelegramLogout();

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/DLHellMe/telegram-mcp-server'

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