get_unread_entities
Retrieve Telegram entities with unread messages to identify conversations requiring attention.
Instructions
get entitites which have unread messages in it
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_unread_entities"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- mcp-server/mcp-server.py:16-17 (handler)The asynchronous function implementing the get_unread_entities tool logic, which fetches unread chats from the HTTP endpoint and returns them as a dictionary of dictionaries.
async def get_unread_entities() -> dict[dict]: return get(f"{api_endpoint}get_unread_chats").json() - mcp-server/mcp-server.py:12-15 (registration)Registers the get_unread_entities tool with the FastMCP server using the @mcp.tool decorator.
@mcp.tool( name="get_unread_entities", description="get entitites which have unread messages in it", )