Skip to main content
Glama
OrrBin

Telegram MCP Server

by OrrBin

get_messages

Fetch recent messages from a specific Telegram chat using its chat ID. Use 'me' to access your Saved Messages, with optional limit and message ID offset.

Instructions

Get recent messages from a specific chat. Use "me" as chatId for your own Saved Messages.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoNumber of messages to return (default: 20, max: 100)
chatIdYesThe chat ID to get messages from, or "me" for your Saved Messages
fromMessageIdNoGet messages starting from this message ID
Behavior2/5

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

No annotations are provided, so the description bears full responsibility for disclosing behavior. It only says 'Get recent messages' and offers the 'me' tip. It does not explain return format, ordering (e.g., ascending/descending), how fromMessageId affects results, or any safety/authorization aspects. This is a significant gap for a tool with no 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 consists of two concise sentences, with the most important information front-loaded. There is no redundant filler, and every word serves a purpose.

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 tool has no output schema and no annotations, so the description should compensate. It gives a basic usage statement but omits behavioral details like pagination logic (fromMessageId), default ordering, and response structure. While the schema covers parameters well, the overall contextual completeness is only adequate, not rich.

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 baseline is 3. The description adds the word 'recent,' which implies ordering, but it largely repeats the chatId 'me' tip already present in the schema. It does not add meaningful semantics for 'limit' or 'fromMessageId' beyond what the schema provides.

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's function: 'Get recent messages from a specific chat.' This uses a specific verb (get) and resource (messages from a chat), and it is clearly distinct from sibling tools like search_messages or get_message_context. The added tip about using 'me' for Saved Messages further clarifies the scope.

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 provides clear context for when to use the tool: when you need recent messages from a specific chat. It does not explicitly mention alternatives or exclusions, but the contrast with siblings like search_messages or get_message_context is implicit. The 'me' tip gives additional usage guidance.

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

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