telegram-tools
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| TELEGRAM_TOOLS_TOOLS | No | Comma-separated list of single tools to add by ID, whatever their toolset. | |
| TELEGRAM_TOOLS_CONFIRM | No | MCP server only: `harness` (default) or `elicitation`. | harness |
| TELEGRAM_TOOLS_CHANNELS | No | List, read, mirror and send to channels; off by default; read by `sync` and `service install`. | false |
| TELEGRAM_TOOLS_LANGUAGE | No | Native plugins only: the approval prompt's language, such as `ja`. | |
| TELEGRAM_TOOLS_TOOLSETS | No | Comma-separated list of toolsets that are on, or `all`; defaults to the toolsets named in `src/project.ts`. | |
| TELEGRAM_TOOLS_READ_ONLY | No | Registers no tool that writes; wins over every other setting. | false |
| TELEGRAM_TOOLS_SEND_DIRS | No | Comma-separated absolute paths of directories files may be sent from, besides the working directory; default none. | |
| TELEGRAM_TOOLS_STATE_DIR | No | Where every label's state lives; default `$XDG_STATE_HOME/telegram-tools`. | $XDG_STATE_HOME/telegram-tools |
| TELEGRAM_TOOLS_DOWNLOAD_DIR | No | Where `telegram_file_save` saves received files, a folder per message; default `~/Downloads/telegram-tools`. | ~/Downloads/telegram-tools |
| TELEGRAM_TOOLS_EXCLUDE_TOOLS | No | Comma-separated list of single tools to remove by ID; wins over `tools` and `toolsets`. | |
| TELEGRAM_TOOLS_DOWNLOAD_MAX_MB | No | The largest file a download takes, in MB; integer 1..2000, default 100. | 100 |
| TELEGRAM_TOOLS_KEEP_DISAPPEARING | No | Keep disappearing and view-once messages for the user; off by default; read by `sync` and `service install`. | false |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {} |
| experimental | {
"codex/sandbox-state-meta": {}
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| telegram_account_readA | Report account login, sync service health and the person's next step for one label or every label. Reads local state only, needs no network or daemon, and never writes anything. Other people's text never appears here; no message content, phone numbers, account ids or keys are returned. |
| telegram_chat_readA | Find a chat and read its messages, by |
| telegram_sync_readA | Lists the supergroups and channels on the sync list, which the mirror keeps (at most 30), by |
| telegram_sync_addA | Puts supergroups and channels on the sync list, so the mirror keeps their messages from now on. Changes only the local mirror and the sync list; nothing changes at Telegram. Needs the sync service running. The list holds at most 30 chats. The whole call is refused when any chat cannot be listed: private chats, bots, basic groups and Saved Messages are always kept, and channels can be listed only with the channels setting on. Chats come as ids from |
| telegram_sync_removeA | Takes supergroups and channels off the sync list, so the mirror stops keeping their messages and deletes the ones it holds, with their earlier versions. Changes only the local mirror and the sync list; nothing changes at Telegram. Needs the sync service running. The list holds at most 30 chats. The whole call is refused when any chat cannot be listed: private chats, bots, basic groups and Saved Messages are always kept, and channels can be listed only with the channels setting on. Chats come as ids from |
| telegram_message_sendA | Sends one text to a chat by id: a person, a group, a forum topic or Saved Messages (the user's own chat), optionally as a reply. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 6 tools
The tools mostly target distinct objects: account status, chat content, sync-list management, and sending messages. However, `telegram_chat_read` bundles six read methods including `fetch`, which asks the sync service to add history, and `telegram_sync_read` also lists chats, so there is some potential confusion between synced-chat listing and general chat listing.
All tool names follow a consistent `telegram_<resource>_<action>` pattern: account_read, chat_read, sync_read, sync_add, sync_remove, message_send. The convention is predictable throughout.
Six tools is a well-scoped set for this server's surface: read account state, read chats, manage the sync list, and send a message. Each tool has a clear place, though `telegram_chat_read` is internally very broad.
Core read and send-text workflows are covered, but there are notable gaps: `telegram_message_send` explicitly says sending files is a separate tool that is not present, and there is no edit, delete, forward, or mark-read operation. These omissions will cause failures for common Telegram workflows.