Skip to main content
Glama
rixile9999

tdl-mcp

by rixile9999

Read recent Telegram messages

tg_messages

Export recent media messages from a Telegram chat by chat ID or @username. Returns compact objects with id, date, file, and text. Supports incremental reads with since_id.

Instructions

Export recent media messages from one chat (by id or @username) and return them as compact {id, date, file, text} objects — newest range exported via tdl. Use last_n for 'the last N media messages', or since_id to fetch only messages after a known message id (incremental reads). Read-only.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
chatYesChat id or @username/domain (as shown by tg_chats)
last_nNoHow many recent media messages to export (default 50, max 500)
since_idNoOnly messages with id > since_id (overrides last_n; for incremental reads)
with_textNoInclude message text content (default true)
Behavior3/5

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

No annotations are provided, so the description must fully disclose behavior. It states read-only and mentions the output format and parameter overrides (since_id overrides last_n). However, it does not disclose potential rate limits, auth requirements, or what happens if no media messages are found.

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 description is extremely concise, consisting of two functional sentences plus a standalone 'Read-only.' It is front-loaded with the main action and every sentence adds value without redundancy.

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?

Given no output schema, the description adequately explains the return format and the two primary use cases. It does not define 'media messages' or mention error handling, but it is otherwise complete for a read-only tool with clear parameters.

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 100%, baseline 3. The description adds valuable context beyond the schema: explains the difference between last_n and since_id, notes that since_id overrides last_n, and describes the output format compact objects. It also implies the chat parameter can be id or @username, matching the schema.

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 tool exports recent media messages from a single chat, using a specific verb ('Export') and resource ('recent media messages from one chat'). It distinguishes from siblings like tg_chats (which lists chats) and tg_download (which downloads files).

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 description explicitly explains when to use last_n vs since_id (incremental reads). It says 'Read-only' but does not specify when not to use this tool or mention alternatives like tg_download or tg_status for other operations.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/rixile9999/tdl-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server