Skip to main content
Glama
thenavidm

telegram-mcp-cli

by thenavidm

Read chat history

history
Read-onlyIdempotent

Retrieve message history from a Telegram chat, with options to limit results, filter fields, and paginate using before_id.

Instructions

Messages from one chat, newest first. Bodies are truncated to a preview unless full is set, because a long chat returned whole is mostly wasted context.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fullNoKeep whole message bodies instead of previews.
peerYesA @username, numeric id, or 'me'.
limitNoHow many messages. Default 20, max 100.
fieldsNoComma separated fields to keep, e.g. 'id,text'. Dotted paths descend. Cuts response size.
before_idNoOnly messages older than this id. Use next_cursor to page.

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv0.4.0

TDQS

A4.3/5.0
Behavior4/5

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

Discloses non-obvious behavior: message bodies are truncated to previews unless `full` is set, and explains the rationale. This goes beyond the annotations, which only state read-only and idempotent.

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?

Two sentences with no redundancy. It front-loads the core purpose and then explains the truncated-body behavior efficiently.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the schema fully describes parameters and there is no output schema to explain, the description sufficiently covers all necessary context for invoking the tool correctly.

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 descriptions cover all parameters, so the baseline is 3. The description adds no extra meaning for individual parameters beyond what the schema already provides, though it indirectly ties `full` to truncation.

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 action (reading messages), a specific scope (one chat), and a key ordering detail (newest first). It clearly distinguishes from siblings like search or get_chat.

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?

Implies usage for retrieving a chat's message history, and the truncation note hints at when to set `full`. However, it doesn't explicitly compare with sibling tools like get_chat or search.

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

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

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