Skip to main content
Glama
prem-research

Telegram MCP Server

get_entities

Extract all entities from the current Telegram session to gather relevant user, channel, or group information for analysis or interaction.

Instructions

Get all entities in the current session

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The async handler function for the 'get_entities' tool. It fetches all entities (chats) from the HTTP API endpoint 'get_chats' and returns them as a dictionary.
    async def get_entities() -> dict[dict]: """Get all chats in the current session""" return get(f"{api_endpoint}get_chats").json()
  • Registers the 'get_entities' tool with the FastMCP server using the @mcp.tool decorator, specifying the name and description.
    @mcp.tool(name="get_entities", description="Get all entities in the current session")

Other Tools

Related 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/prem-research/telegram-mcp'

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