Skip to main content
Glama
ivantelix

Telegram MCP Server

by ivantelix

telegram_get_updates

Fetch new bot updates like messages and reactions, using offset, limit, and timeout to control polling. Read incoming chats or IDs.

Instructions

Retrieve incoming updates (messages, reactions, etc.) sent to the bot. Useful to read incoming user messages or inspect user/group chat IDs.

:param offset: Identifier of the first update to be returned. :param limit: Limits the number of updates to be retrieved (1-100, default 10). :param timeout: Timeout in seconds for short/long polling (0 for immediate response). :return: JSON array of Telegram Update objects.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNo
offsetNo
timeoutNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior4/5

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

No annotations are provided, so the description carries the behavioral burden. It discloses that this is a retrieval operation, explains short/long polling via the timeout parameter, and states the return format. It does not describe Telegram-specific details like offset-confirmed consumption or webhook conflicts, but the core read/polling behavior is transparent enough for correct invocation.

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 compact and front-loaded: a clear purpose sentence, a useful use-case sentence, then structured parameter and return documentation. There is no filler, and every section adds value beyond the raw schema.

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?

All three parameters are documented, the return type is described, and the intended use cases are clear, so an agent can call the tool successfully with sensible defaults or custom arguments. The only notable omission is advanced Telegram behavior such as using offset to acknowledge processed updates, but that is a minor gap for a tool with no required parameters.

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 input schema has 0% description coverage, so the description must fully compensate. It defines offset as the identifier of the first update, gives the valid range and default for limit, and explains timeout in terms of short/long polling with the special meaning of 0. This is exactly the parameter-level guidance an agent needs.

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 uses a specific verb and resource: 'Retrieve incoming updates... sent to the bot', and includes examples ('messages, reactions') and explicit use cases ('read incoming user messages or inspect user/group chat IDs'). This clearly distinguishes it from the sibling tools, which send messages, pin/delete messages, or fetch known chats/bot info.

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 states when to use this tool: to read incoming user messages or inspect user/group chat IDs. It does not mention explicit alternatives or when-not-to-use conditions, but no sibling tool overlaps with this polling/receiving role, so the context is clear.

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