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
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- mcp-server/mcp-server.py:36-38 (handler)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()
- mcp-server/mcp-server.py:35-35 (registration)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")