Skip to main content
Glama
telegram-mcp

telegram-mcp

by adsqwui

tg_read_messages

Read-only

Read Telegram chat, group, or channel messages oldest first, filter by date, range, sender, or text, and optionally transcribe voice, attach photos, or mark the chat as read.

Instructions

Read messages of any chat, group or channel, oldest first.

date: one day, "today", "yesterday", "2026-11-24" or "24.11.2026" (in TG_TIMEZONE).
since / until: a range instead of date, a day or "2026-11-24 14:00".
limit: up to 500 per call. To read the whole history, repeat the call with before_id set to the
smallest id from the previous page until no more pages are reported. after_id returns only newer messages.
search: only messages containing this text. from_user: only messages from this person.
transcribe_voice: voice and round video messages come with a text transcript.
include_images: photos are attached as images (at most 10 per call).
mark_read: mark the chat as read up to the newest returned message.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "chat": "<chat>"
    },
    "name": "tg_read_messages"
  }
}

Input Schema

NameRequiredDescriptionDefault
chatYes
dateNo
limitNo
sinceNo
untilNo
searchNo
after_idNo
before_idNo
from_userNo
mark_readNo
include_imagesNo
transcribe_voiceNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.5/5.0
Behavior4/5

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

Adds substantial behavior beyond the annotations: hard caps (500 per call, at most 10 images), TG_TIMEZONE for date parsing, default transcripts for voice/round video, and the mark_read side effect of advancing the read cursor. It does not describe the shape of returned messages, and mark_read is a state-mutating option that sits in mild tension with readOnlyHint=true, though the description openly discloses it rather than misleading.

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?

Purpose and ordering come first, then a compact parameter-by-parameter block where every line adds new information and none restates the schema. Dense but front-loaded and free of filler.

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?

Strong coverage for a 12-parameter read tool, especially given no output schema: paging, filters, caps, and side effects are all addressed. Two gaps remain: the format accepted for `chat` (username, numeric id, invite link) and any indication of what a returned message contains.

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?

Schema description coverage is 0%, so the description carries the full load and does: accepted date formats and timezone, the since/until range syntax including times, limit cap, the two cursor parameters, search and from_user filters, and what each boolean toggles. Only the required `chat` parameter is left implicit, which is a minor omission.

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?

States a specific verb and resource ("Read messages") plus scope ("any chat, group or channel") and ordering ("oldest first"). That ordering detail alone distinguishes it from the listing/info siblings (tg_list_chats, tg_chat_info) without needing their schemas.

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?

Explicitly explains how to page through full history (repeat with before_id set to the smallest id until no more pages) and how after_id differs (newer messages only), so the agent knows which parameter selects which mode. It stops short of naming alternatives such as tg_list_chats for discovering a chat to read.

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