Skip to main content
Glama
raidenyn

Telegram MCP Server

by raidenyn

Get Chat History

telegram_get_history
Read-onlyIdempotent

Fetch message history from Telegram chats to preview text, sender details, dates, and media information before performing a full synchronization.

Instructions

Fetch messages from a Telegram chat. Returns message text, sender, date, and media info. Does NOT download media files — use telegram_sync_chat for that. Useful for previewing chat contents before a full sync.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
chat_idYesChat ID (get from telegram_list_chats or telegram_find_chat)
limitNoMaximum number of messages to return
offset_idNoMessage ID to start from (for pagination, 0 = latest)
Behavior4/5

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

Annotations already cover read-only, open-world, idempotent, and non-destructive behavior. The description adds valuable context about what data is returned (message text, sender, date, media info) and clarifies that media files are not downloaded, which is not captured in annotations. No contradictions with annotations.

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 front-loaded with the core purpose, followed by key behavioral details and usage guidance in three efficient sentences. Every sentence adds value without redundancy, making it highly concise and well-structured.

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 the annotations cover safety and idempotency, and the schema fully describes parameters, the description provides good contextual completeness by explaining the return data and usage context. However, without an output schema, it could briefly mention the response format more explicitly, though it's implied.

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 100%, so the schema fully documents all parameters. The description does not add any additional meaning or details about the parameters beyond what the schema provides, meeting the baseline expectation.

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 specific action ('Fetch messages') and resource ('from a Telegram chat'), and distinguishes it from sibling tools by explicitly mentioning what it does not do (download media files) and referencing telegram_sync_chat as an alternative for that purpose.

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 explicit guidance on when to use this tool ('Useful for previewing chat contents before a full sync') and when not to use it ('Does NOT download media files — use telegram_sync_chat for that'), directly naming an alternative tool for related functionality.

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/raidenyn/telegram-mcp'

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