Skip to main content
Glama

tg-scribe — Telegram for AI agents on Mac

English | Русский

A local MCP server for macOS that gives an AI agent, such as Claude Code, access to your Telegram account. The agent saves your chats as Markdown files on disk and works with them: searches, analyzes, summarizes, drafts replies.

The server runs on your Mac and connects to Telegram as you, over the official MTProto protocol. It uses the Telethon library and your own api_id. Text on photos is recognized with Apple Vision, so you need a Mac.

Contents

Related MCP server: TeleMCP

What it does

Tool

What it does

list_dialogs

Shows the 50 most recent chats. Finds any other chat by name

sync_chat

Saves a chat to the archive: the last N days or the whole history. Later calls add new messages

transcribe

Transcribes voice and video messages. Needs Telegram Premium

ocr_photos

Reads text on photos with Apple Vision, locally on your Mac

read_files

Reads the text of txt, md, csv, html, pdf, doc, docx, rtf, xlsx, pptx and image files locally on your Mac, including scanned PDFs, and saves it to text/<id>.txt in the chat folder

fetch_media

Downloads a photo or a file up to 50 MB so the agent can look at it. Files keep their names: <id>_<name>. Videos and audio are not downloaded

describe_media

Saves a short description of a photo or a file to the archive

fetch_large_file

Downloads a file over 50 MB after you confirm it. A big file is downloaded over several calls

send_message

Sends a message after you confirm it

How it works in practice

  1. You ask: "What did we agree on with the contractor over the last three weeks?"

  2. The agent calls sync_chat with days=21. The server saves three weeks of messages to the archive, newest first.

  3. The agent searches the archive. An important voice message is marked as not transcribed, so the agent transcribes it with transcribe. It needs the numbers from a photo of an estimate, so it reads the text with ocr_photos.

  4. The agent answers and cites message ids.

  5. Next day you ask: "Anything new?" sync_chat loads only new messages. It transcribes and reads their voice messages, photos and files up to 10 MB right away, up to 20 of each per call. Bigger files wait for read_files.

  6. You ask: "And what did we decide last month?" The agent calls sync_chat with days=60, and the server loads the missing older history.

Voice messages, photos and files from older history are not processed while loading. The agent transcribes and reads them only when a task needs them. That is why loading takes minutes, not hours, and does not use up limits.

Archive

Chats are stored in the archive/ folder next to the MCP source code, one file per month. The text of read files is in the text/ subfolder of each chat. The folder is in .gitignore.

archive/Ivan-Petrov__123456789/2026-10.md

One line per message. The tags are in Russian. Sample file:

[2026-10-31 14:02] #48213 Ivan Petrov: Sent the estimate
[2026-10-31 14:03] #48214 Ivan Petrov [фото, с текстом]: 
  [на фото] Tiles: $600
  [на фото] Total: $1,500
[2026-10-31 14:05] #48215 Я ↩48213: [голосовое 0:42] «Too expensive, let's talk tonight»
[2026-10-31 14:06] #48216 Ivan Petrov [фото: kitchen plan with sizes]: here is the plan
[2026-10-31 14:07] #48217 Ivan Petrov [переслано из «Renovation News»]: Tile prices went up
  15% in November
[2026-10-31 14:10] #48218 Ivan Petrov: [кружок 0:35, не расшифровано]
[2026-10-31 14:12] #48219 Ivan Petrov [файл contract.docx, 48 КБ, с текстом]: please sign

What each part means:

Part

Meaning

[2026-10-31 14:02]

Date and time in your Mac's time zone

#48213

Message id

Я

You ("me")

↩48213

Reply to message 48213

Line indented by 2 spaces

Next line of a multi-line message

[переслано из «…»]

Forwarded message and its source

[голосовое 0:42] «…», [кружок 0:35] «…»

Transcript of a voice or video message

[голосовое 1:10, не расшифровано]

Voice message not transcribed yet

[фото]

Photo not processed yet

[фото, с текстом]

Photo has text, shown in the [на фото] lines below

[фото, без текста]

Photo has no text

[фото: …], [фото, с текстом: …]

Photo description saved by the agent

[фото, недоступно]

Photo was deleted from Telegram

[фото, не читается]

Photo file is broken

[файл report.pdf, 2.3 МБ]

File. For txt, md, csv, html, pdf, doc, docx, rtf, xlsx, pptx and images: not read yet

[файл …, с текстом]

The full text of the file is in text/<id>.txt in the chat folder, not in the month file: the agent spends no tokens on it until the file is needed

[файл …, без текста]

The file has no text

[файл …, 12 стр., …]

PDF page count, added once the file is read

[файл …, скан, …]

Some PDF pages were scans: their text was read with Apple Vision and may have errors

[файл …: …], [файл …, с текстом: …]

File description saved by the agent. It does not replace the state: an unread file is still read by read_files

[файл …, недоступно], [файл …, не читается]

File was deleted from Telegram or is broken

[файл …, слишком большой]

File is over 50 MB, the server does not download it

[видео], [стикер 👍], [gif], [опрос], [геопозиция], [контакт]

Video, sticker, GIF, poll, location, contact

The archive only grows: messages edited or deleted in Telegram stay as they were saved.

Requirements

  • A Mac.

  • uv. It installs Python 3.12 and the dependencies.

  • An AI agent with MCP support, such as Claude Code.

  • A Telegram account. Transcribing voice messages needs Telegram Premium.

Installation

1. Get the project and install dependencies

git clone https://github.com/rodion1010/tg-scribe.git tg-scribe
cd tg-scribe
uv sync

2. Get api_id and api_hash

Telegram lets third-party programs into an account only through a registered app. Registration is free and takes a couple of minutes.

  1. Open my.telegram.org and enter your phone number in international format, for example +15551234567.

  2. Enter the confirmation code on the site. It arrives in Telegram from the "Telegram" account, not by SMS.

  3. Select API development tools.

  4. Fill in the fields:

    • App title: any name without the word "Telegram", for example tgc. The API terms forbid "Telegram" in the name.

    • Short name: 5 to 32 Latin letters and digits, for example tgclaude.

    • URL: leave empty.

    • Platform: Desktop.

    • Description: leave empty.

  5. Click Create application. The page shows App api_id, a number, and App api_hash, a 32-character string.

If the site shows ERROR, open it in another browser. One account can have one app: if you already have one, the site shows its data right away.

Never share api_hash and never commit it: anyone with it can pose as your app.

3. Save api_id and api_hash to the config

Create the folder and the config file:

mkdir -p ~/.tgc && chmod 700 ~/.tgc
nano ~/.tgc/config.toml

Paste your values:

api_id = 12345678
api_hash = "0123456789abcdef0123456789abcdef"

Make the file private to your user:

chmod 600 ~/.tgc/config.toml

4. Log in

uv run python -m tgc.login

The program asks for your phone number, the code from Telegram and your cloud password if two-step verification is on. After login the file ~/.tgc/tgc.session appears.

This file gives full access to your account without a code or password. Do not copy it, publish it or put it in cloud storage. If it leaks, end the session in Telegram: Settings → Devices.

5. Connect the server to your agent

The server starts with this command:

uv run --directory /path/to/tg-scribe python -m tgc.server

Here /path/to/tg-scribe is the folder you cloned the project into. Add this command to your agent's MCP server settings. The steps for Claude Code follow.

The project already has .mcp.json with this server. Start Claude Code in the project folder and allow the tg server when Claude Code asks.

To use Telegram from any folder, add the server for your user:

claude mcp add tg --scope user -- uv run --directory /path/to/tg-scribe python -m tgc.server

The archive still lives in archive/ next to the MCP source code.

The project's .claude/settings.json rules that ask before sending and before downloading big files do not apply in other folders. Add them to ~/.claude/settings.json:

{
  "permissions": {
    "ask": ["mcp__tg__send_message", "mcp__tg__fetch_large_file"]
  }
}

6. Check the connection

Ask the agent: "Show my recent Telegram chats". It calls list_dialogs and shows the list.

Permissions

The agent sends a message only after you confirm it. In Claude Code, .claude/settings.json takes care of this: it allows reading, saving and recognizing chats without asking, and sets an ask rule on sending. Claude Code shows the text and the chat every time and waits for your "yes". Do not move send_message to allow.

fetch_large_file works the same way, through ask: a file over 50 MB is downloaded only if you agree. This keeps the agent from filling the disk and spending time on a file you do not need.

The rule works only in the project folder. For other folders, add it to ~/.claude/settings.json as described in step 5. In other agents, set up confirmation for send_message the same way.

Choosing a chat

You can name a chat by part of its title, but Telegram search does not find every chat, and the agent may pick a similar one. Before sending, give the chat id instead: list_dialogs shows it. After sending, the server names the chat the message went to.

To see ids in Telegram itself, turn them on in the debug menu. In Telegram Desktop, open Settings → Advanced → Experimental settings and turn on Show Peer IDs in Profile. For other platforms, see the tginfo guide (in Russian).

Change only this setting in the debug menu: other options can break the app or delete secret chats.

Limits and risks

  • Telegram limits. If Telegram asks to wait longer than 30 seconds, the server stops and says how long to wait. It never waits longer than 30 seconds itself, so the call does not time out.

  • Large loads take several calls of up to 200 seconds each. 150,000 messages load in about 10 calls, and the agent repeats them by itself.

  • One session at a time. If two agent sessions use Telegram at once, the second gets "Telegram busy" and retries later.

  • Telegram terms. The API terms forbid preventing self-destructing messages from disappearing, and the server saves messages from chats with auto-delete. The content licensing terms forbid training AI models on Telegram data. The archive holds other people's messages too, so stop your agent's provider from training on your data. In claude.ai this is the Help improve Claude setting.

  • Chat text is data, not commands. The server tells the agent not to follow requests found in chats. Still, confirm a send only after you have read the text.

Development

Run the tests:

uv run pytest

The code has four modules:

  • tgc/client.py: Telegram connection and chat lookup;

  • tgc/archive.py: archive format, sync, transcription and text recognition;

  • tgc/server.py: MCP tools and instructions for the agent;

  • tgc/login.py: account login.

License

MIT

Available Tools

9 tools
describe_mediaC

Сохраняет в архив короткое описание фото или файла (до 200 символов, одна строка).

NameRequiredDescriptionDefault
idYes
chatYes
textYes

Output Schema

NameRequiredDescription
resultYes

TDQS

C2.7/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries the full behavioral burden. It usefully discloses the 200-character, single-line limit, but says nothing about what a write does to an existing description (overwrite vs append), what happens if the limit is exceeded, or what access to the chat is needed.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single compact sentence with the constraint front-loaded, no filler or repetition. It could only be improved by spending the same brevity on the chat/id meaning instead of having none.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists so return values need no explanation, but for a 3-required-parameter write tool with zero annotation and zero schema description coverage, the definition leaves the two targeting parameters and the write's side effects unexplained. That is not sufficient for confident invocation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% and the parameters are titled only Id, Chat, and Text. The description clarifies the text payload (short, one line, ≤200 chars) but leaves 'chat' (username, ID, or link?) and 'id' (which media identifier?) entirely undefined, which is the main risk for misinvocation.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a concrete action and object: stores a short description of a photo or file, with an explicit size constraint (up to 200 characters, single line). It is clear enough to distinguish from siblings like ocr_photos, transcribe, or send_message, but it never explains the chat/id scoping, so the tool's exact target remains partly ambiguous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no statement of when to use this instead of alternatives such as send_message, ocr_photos, or transcribe, and no mention of prerequisites (must the media already be fetched or synced?). Usage must be inferred entirely from the name and one-line purpose.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

fetch_large_fileA

Скачивает файл больше 50 МБ (без видео и аудио) в папку чата в архиве и возвращает путь. Только после того, как пользователь согласился. Файл качается частями: если ответ «вызови ещё раз» — повтори.

NameRequiredDescriptionDefault
idYes
chatYes

Output Schema

NameRequiredDescription
resultYes

TDQS

A3.7/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the full burden and does well: it discloses that the result is written to the chat folder as an archive, the path is returned, the transfer is chunked, and that a 'call again' response means the download is incomplete. It omits error/retry limits and permission requirements, but the mutating, multi-step nature is clearly surfaced.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three short sentences, zero filler, and the core action plus the size/type constraint are front-loaded before the consent precondition and the chunking behavior. Nothing repeats what the schema already says.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The presence of an output schema means return values need not be detailed, and the flow-specific behaviors (consent, chunked retry) are covered. However, for a two-parameter tool with no parameter documentation anywhere, the definition is incomplete on inputs, which is the main gap an agent would hit.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must explain the two required parameters, yet neither 'id' nor 'chat' is described beyond indirect hints ('chat folder', 'file'). An agent must guess whether 'id' is a file identifier or message identifier and what form the chat reference takes.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a concrete verb and resource (downloads a file) plus scope qualifiers: over 50 MB, excluding video and audio, saved into the chat folder as an archive, returning a path. It implicitly separates itself from fetch_media (media excluded) without naming the sibling explicitly, so it is clear but not fully differentiated.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit preconditions: only call after the user has consented, and only for files above the 50 MB threshold, which implies smaller files belong to a different tool. It never names the alternative (e.g. fetch_media or read_files) or states when not to use it, leaving the routing partly inferred.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

fetch_mediaA

Скачивает фото и файлы (до 50 МБ, без видео и аудио) с указанными id в папку чата в архиве и возвращает пути к ним.

NameRequiredDescriptionDefault
idsYes
chatYes

Output Schema

NameRequiredDescription
resultYes

TDQS

A3.5/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the full load and does well: it discloses the 50 MB ceiling, the media types excluded, the side effect of writing an archive into the chat folder, and that paths are returned. What is missing is any note on permissions/authorization or what happens when an id is invalid or exceeds the limit.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single dense sentence that front-loads the verb and constraints with no filler. Every clause (size limit, type exclusions, archive destination, return value) carries information the agent needs.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a two-parameter tool with no annotations, the description covers limits, exclusions, side effects, and return values, and an output schema exists so return shape need not be spelled out. It still leaves the identifier formats and failure behavior undocumented, which matters for a tool that writes files.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must explain both parameters. It only gestures at 'с указанными id' and 'папку чата', leaving the format of the string 'chat' (username, numeric id, or link?) and whether 'ids' are message ids or media ids entirely unspecified.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description gives a specific verb and resource ('Скачивает фото и файлы') plus hard constraints (up to 50 MB, no video/audio) and the destination ('в папку чата в архиве'). This clearly separates it from read-only siblings like describe_media or ocr_photos, though it never names fetch_large_file, which is the obvious adjacent tool for the excluded cases.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The size cap and the video/audio exclusion implicitly tell the agent when this tool does not apply, which is useful routing signal. However, it never explicitly points to an alternative such as fetch_large_file for oversized files or transcribe for audio, so the agent must infer the handoff.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

list_dialogsA

Чаты пользователя: id, тип, непрочитанные, название. Без query — 50 последних чатов; с query — поиск по названию или имени среди всех чатов.

NameRequiredDescriptionDefault
queryNo

Output Schema

NameRequiredDescription
resultYes

TDQS

A3.7/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the full burden; it does disclose the important default (50 most recent chats when no query) and that query expands scope from recent to all chats. It omits whether results are paginated, whether a limit can be raised, and any permission or rate-limit constraints.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two short sentences, no filler. The returned-field list comes first, then the default-vs-search behavior is front-loaded in the second sentence where it matters most for invocation.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return values need no further explanation, and with a single optional parameter the behavioral split is fully covered. The only gap is absence of any pagination or scope-ceiling detail for the default 50-chat listing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must compensate — and it does: it explains that query matches chat title or participant first name and searches across all chats rather than only recent ones. That is the essential semantic the bare schema lacks, though matching rules (case sensitivity, substring vs exact) remain unstated.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States the resource (user's chats) and enumerates the returned fields (id, type, unread count, name), which no sibling tool does — send_message and sync_chat are clearly different operations. The verb is implied rather than stated ("Чаты пользователя"), which keeps it just short of a 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives a clear when-to-use split for the two modes (no query = 50 most recent; with query = search across all chats), which is genuinely useful routing guidance. However, it offers no differentiation from siblings such as sync_chat, leaving the agent to infer that this is the read/list entry point.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

ocr_photosA

Распознаёт текст на фото (Apple Vision) и вписывает его в архив. Без ids — все необработанные фото чата.

NameRequiredDescriptionDefault
idsNo
chatYes

Output Schema

NameRequiredDescription
resultYes

TDQS

A4.8/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Although no formal annotations are present, the description provides valuable behavioral context by specifying the technology used (Apple Vision) and the side effect of the operation (archiving). This adds necessary operational detail beyond basic function.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The definition is highly concise, using only two sentences to convey the core function, the processing technology, and the critical parameter behavior. Every part of the definition is essential and contributes to clarity.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the lack of surrounding annotations, the description is exceptionally complete. It defines the input (chat photos), the method (OCR), and the control flow (use IDs vs. process all), making correct invocation possible without ambiguity.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The description adds significant semantic meaning to the optional 'ids' parameter. It translates the technical concept of an optional list into a functional directive, explaining that its absence is intended to process all unprocessed media.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the purpose: recognizing text on photos using Apple Vision and archiving the content. It distinguishes the tool by specifying the OCR function and the resulting archival action.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It provides specific instructions on when to use the tool's parameters by explaining that omitting the 'ids' targets all unprocessed chat photos. This is a direct guideline for controlling the scope of execution.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

read_filesA

Читает текст файлов txt, md, csv, html, pdf, doc, docx, rtf, xlsx, pptx и картинок локально, без скачивания на диск (сканы PDF распознаются), и сохраняет его в text/.txt в папке чата. Без ids — все непрочитанные файлы чата.

NameRequiredDescriptionDefault
idsNo
chatYes

Output Schema

NameRequiredDescription
resultYes

TDQS

A4.1/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the full burden and does disclose key behavior beyond the name: local processing with no disk download, OCR handling for scanned PDFs, and a concrete side effect (writing text/<id>.txt into the chat folder). It does not cover failure modes for unsupported formats, size limits, permissions, or whether overwrites occur, which keeps it short of a 5.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The verb and resource are front-loaded, and every clause adds information (format list, no-download guarantee, OCR note, output path, default behavior). The long format enumeration is dense but functional; the trailing fragment after the dash is slightly abrupt but readable.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a two-parameter file-reading tool that writes output artifacts, the description covers formats, OCR, output location, and the no-ids default, and an output schema exists so return values need not be explained. Missing items are edge-case behavior (unreadable/unsupported files, errors, overwrite semantics), which are secondary but not trivial for a writing tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must compensate. It fully explains 'ids' via the default rule (all unread files of the chat when omitted), but 'chat' — the required parameter — is only alluded to via 'папке чата' without stating its expected format (id vs name). Half the parameters are clarified, half are not.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description gives a specific verb ('Читает текст файлов' – reads file text) plus an enumerated resource scope (txt, md, csv, html, pdf, doc, docx, rtf, xlsx, pptx, images) and states where the result goes (text/<id>.txt in the chat folder). The clause 'без скачивания на диск' (no downloading to disk) implicitly distinguishes it from fetch_media/fetch_large_file siblings, so an agent can tell what this tool does versus the media-fetching ones without opening the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The final sentence 'Без ids — все непрочитанные файлы чата' gives a clear default usage mode (batch unread files when ids are omitted). It supplies context for when to call it, but never explicitly names alternatives like ocr_photos, describe_media, or transcribe, nor excludes cases where those siblings are the better choice.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

send_messageB

Отправляет сообщение от имени пользователя. Только после того, как пользователь увидел текст.

NameRequiredDescriptionDefault
chatYes
textYes
reply_toNo

Output Schema

NameRequiredDescription
resultYes

TDQS

B3.4/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations supplied, the description carries the full burden. It does disclose two important traits beyond the schema: the message is sent as the user's own identity (an externally visible, effectively irreversible action) and it requires prior user review of the text. It omits error behavior, rate limits, and whether delivery is immediate, which matters for a no-annotation mutation tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two short sentences with zero filler, and the action statement is front-loaded ahead of the constraint. The second sentence is terse to the point of being a fragment, but it carries the critical safety rule and earns its place.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return values need not be explained. However, for a side-effecting messaging tool with no annotations and 0% schema coverage, the definition should say how a chat is identified and what reply_to means; those gaps leave an agent guessing before an irreversible action.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must compensate, and it largely does not. It implies that 'text' is the message body, but says nothing about what 'chat' accepts (ID, username, or dialog reference) or what 'reply_to' does, leaving two of three parameters undocumented anywhere.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Отправляет сообщение') plus the identity under which it acts ('от имени пользователя'). Sibling tools (list_dialogs, sync_chat, read_files, etc.) are all read/sync/ingest operations, so the write nature is implicitly distinguished, though no sibling is named explicitly.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Provides an explicit precondition for use: the message may only be sent after the user has seen the text, which functions as a human-confirmation gate. It does not name alternatives or state when-not to use it, but the confirmation condition is a concrete usage rule rather than an implied one.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

sync_chatA

Догружает новые сообщения чата в локальный архив. chat — id, @username или часть названия. days — сколько последних дней истории должно быть в архиве; недостающие старые сообщения догружаются. Без days новый чат выгружается целиком, а у загруженного догружаются только новые сообщения.

NameRequiredDescriptionDefault
chatYes
daysNo

Output Schema

NameRequiredDescription
resultYes

TDQS

A3.6/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden. It does disclose that the tool writes into a local archive and that the operation is incremental, which is valuable behavioral context. However, it says nothing about permissions, network/auth requirements, whether the call blocks for long exports, or what happens when the chat is not found — meaningful gaps for a sync/mutation tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Purpose is front-loaded, followed by the two parameters in order of importance. The incremental-sync rule is stated twice in slightly different words ("недостающие старые сообщения догружаются" vs. "догружаются только новые сообщения"), a small redundancy in an otherwise tight definition.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return values need not be explained. For a two-parameter sync tool with no annotations, the description covers purpose, both parameters, and the incremental-vs-full-export behavior. Only failure modes and runtime/authorization expectations are missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must compensate, and it largely does: chat is defined as an id, @username, or name fragment, and days is defined as the depth of history to keep, including the default semantics when omitted. Minor gaps remain (no accepted format for days, no edge-case behavior), so not a 5.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The first sentence states a specific verb and resource: it pulls new chat messages into the local archive ("Догружает новые сообщения чата в локальный архив"). The sync/archive role is clearly distinct from send_message or read_files, though no sibling is named explicitly, so it stops short of a 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It explains the effect of supplying vs. omitting days (full export for a new chat, incremental for an already-loaded one), which is genuinely useful decision guidance for the days argument. It gives no guidance on when to choose this tool over alternatives such as list_dialogs or fetch_media, and no preconditions are stated.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

transcribeC

Расшифровывает голосовые и кружки с указанными id и вписывает текст в архив.

NameRequiredDescriptionDefault
idsYes
chatYes

Output Schema

NameRequiredDescription
resultYes

TDQS

C2.9/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are supplied, so the description carries the full behavioral burden. It does disclose one important non-obvious behavior: the result is written into an archive rather than merely returned, so the call mutates stored state. Beyond that it says nothing about permissions, whether existing archive entries are overwritten, how long transcription takes, or how failures for individual ids are reported.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single compact sentence with no filler, and the resource plus the write-to-archive effect are front-loaded. It is efficient, though brevity here comes at the cost of the missing details noted above rather than from tight editing of rich content.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return values need no explanation. But this is a mutation tool with zero annotations, an undocumented chat parameter, and batch-style input, and the description supplies none of the operational context (auth, idempotency, partial failure, what the archive is) an agent needs to invoke it safely.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must compensate and does not. "С указанными id" loosely maps to the ids array but never says whether these are message ids, media ids, or file ids, and the required chat parameter is not mentioned at all, leaving its expected format (numeric id, @username, dialog title) undefined.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb ("Расшифровывает" / transcribes) and a specific resource (voice messages and round video notes identified by the given ids), plus the side effect of writing the text into an archive. That clearly separates it from fetch_media or send_message, but it never names a sibling it is meant to replace, so the differentiation is implicit rather than explicit.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is only implied by the object of the verb: call this when you have ids of voice/round-video messages that need converting to text. There is no explicit when-to-use, no when-not, no mention of the obviously overlapping siblings describe_media or fetch_media, and no prerequisites such as first resolving ids via list_dialogs or sync_chat.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

  1. 9 tool updatesv0.1.0
    • First observeddescribe_media
    • First observedfetch_large_file
    • First observedfetch_media
    • First observedlist_dialogs
    • First observedocr_photos
    • First observedread_files
    • First observedsend_message
    • First observedsync_chat
    • First observedtranscribe

TDQS

B3.4/5.0

Scored across 9 tools

Disambiguation4/5

Most tools target distinct resource/action pairs: listing dialogs, syncing chat history, sending messages, processing voice/photo/file media, and downloading files. The main overlap is between fetch_media and fetch_large_file, but the size threshold and consent requirement make the boundary fairly clear. transcribe, ocr_photos, describe_media, and read_files all write text into the archive, but their input types differ enough to avoid serious misselection.

Naming Consistency4/5

The tools use snake_case and mostly follow an imperative verb_noun pattern such as list_dialogs, sync_chat, send_message, read_files, fetch_media, and fetch_large_file. Minor deviations exist: transcribe lacks an object noun, and ocr_photos uses an acronym plus noun. These are still readable and action-oriented, so consistency is slightly imperfect but not confusing.

Tool Count5/5

Nine tools is a well-scoped set for a Telegram archive and media-processing assistant. Each tool covers a distinct capability area: dialogs, syncing, voice transcription, OCR, media description, sending, local file reading, and two download paths. The count is neither thin nor bloated.

Completeness3/5

The surface covers chat listing, syncing, media processing, local file reading, sending messages, and downloads. However, there are notable gaps for a Telegram client/archive: no explicit tool to list, search, or read archived messages, and no reply/forward/edit/delete operations. Agents can work around some gaps via sync_chat and local files, but the missing message retrieval surface is significant.

Maintenance

ActivityMaintained
ResponsivenessSyncing

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    C
    maintenance
    Enables AI agents to interact with a user's Telegram account: list chats, read history, search, and send messages through Telegram's MTProto API.
    2
    MIT
  • A
    license
    Not graded
    quality
    C
    maintenance
    Enables AI agents to search and act on Telegram conversations, groups, channels, files, and links, with semantic search, AI-powered knowledge extraction, human-in-the-loop approvals, and PostgreSQL/pgvector persistence.
    Apache 2.0
  • A
    license
    A
    quality
    A
    maintenance
    Enables AI assistants to search and read a private, local archive of your own Telegram chats, groups and media, so they can answer questions about past conversations. It keeps access read-only toward Telegram, treats message text as untrusted, and lets you choose which chats AI apps may see.
    6
    3
    MIT