68 Telegram tools in 7 risk tiers
Every tool belongs to one risk tier across 13 domains. Default startup exposes 42 tools (read, organize, and non-high-risk send), and the core preset trims the surface to 15 tools for smaller context windows.
Risk tiers
| Tier | Total | Default on | Scope |
|---|---|---|---|
| read | 27 | 27 | Dialogs, messages, search, media, transcription, translation, members, polls, folders, topics, stories, boosts, group calls, Telegram Business read |
| organize | 2 | 2 | organize_chat (mute/pin/archive/mark unread), save_folder |
| send | 15 | 13 | send_message, send_media, send_structured, edit_message, forward_messages, drafts, reactions, inline queries, read receipts, story interactions. Off by default: get_web_preview, publish_story |
| moderate | 6 | 0 | manage_contact, manage_topic, join_or_create_chat, edit_chat_settings, manage_invite_link, manage_fact_check |
| destructive | 11 | 0 | delete_messages, terminate_session, poll_action, press_button, delete_folder, delete_topic, leave_chat, moderate_member, report_content, delete_stories, delete_business_link |
| account | 5 | 0 | get_sessions, get_account_settings, update_profile, update_privacy, manage_business |
| money | 2 | 0 | get_stars, stars_action (paid reactions obey kill switch & whitelist; gift conversion requires confirm: true) |
Capability presets
Switch presets live in /settings without restarting. Every preset stays intersected with startup hard_ceiling.
| Preset | Tools | Intended use |
|---|---|---|
core | 15 | Compact prompt-token footprint: read, search, media, send, edit, forward, react, mark as read |
read_only | 27 | All default-on read tools, zero outbound or organizational mutations |
daily | 42 | Default-on read, organize, and send tools, excluding high-risk items |
standard | 42 | All default-enabled tools |
admin | 61 | Adds moderate and destructive tiers where startup hard_ceiling allows |
full | 68 | All catalog tools, still bounded by hard_ceiling |
MCP prompts and resources
Four MCP prompt templates (unread_triage, chat_digest, draft_reply, search_brief) ship with the same [external data] safety instructions. Clients that support MCP resources can read five URI patterns directly:
| Resource URI | Returns |
|---|---|
telegram://status | Local connection health and active policy summary |
telegram://accounts | Configured accounts (only the pinned alias on /mcp/<alias>) |
telegram://dialogs | Dialog list with read_blacklist applied |
telegram://chat/{chat_id}/recent | Last 20 messages of any non-blacklisted chat |
telegram://account/{alias}/dialogs, .../chat/{chat_id}/recent | Explicit multi-account views on unpinned endpoints |
Embedded /settings web panel
Compiled directly into the Rust binary via rust-embed in English and Russian, with an account switcher across every view and strict isolation from MCP/OAuth tokens (403 on any MCP credential).
| View | What you manage |
|---|---|
| Tools | Toggle individual tools, filter by domain/tier/risk, apply presets (core to full), see config-locked tiers, and track estimated prompt-token footprint live. |
| Chats | Add or remove send_whitelist destinations with pinned @username → ID verification, resolve dialogs, and manage read_blacklist. |
| Safety & Policy | Flip the persistent kill switch (cancelling pending scheduled sends upstream), switch per-account whitelist_mode (strict / off) without restarting, inspect active ceilings and sandbox caps, and edit outgoing AI signature text or opt-out rules live. |
| Accounts | Onboard new Telegram accounts or re-authenticate existing ones via inline SVG QR code and 2FA password without restarting the server; remove dynamic accounts with automatic session cleanup and OAuth token revocation. |
| OAuth | Inspect registered OAuth 2.1 clients, revoke individual connectors, or run one-click global revocation. |
| Audit | Filter persisted SQLite security events, refusals (deny_*, username_mismatch), and mutating calls per account. |
Full tool-by-tool reference: docs/tools.md.