Skip to main content
Glama
LoneVertex

Telegram MCP — Next Generation

Get Full Message History from Chat

get_history
Read-onlyIdempotent

Retrieve full chronological message history from any Telegram chat up to a set limit. Use it to ingest or summarize conversations before analysis.

Instructions

Retrieve complete chronological message history from a chat up to the configured limit. Use when ingesting or summarizing a conversation. Read-only operation.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoMaximum number of items or records to retrieve (integer between 1 and 100).
accountNoOptional account label for multi-account environments. If omitted in single-mode, the default account is used. In multi-mode without an account, read-only tools fan out across all configured accounts.
chat_idYesTarget Telegram chat, group, supergroup, channel, or user identifier. Accepts numeric chat ID (e.g. -1001234567890 or 123456789), username (e.g. '@channel'), or phone number.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv4.1.1

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false, and openWorldHint, so "Read-only operation" merely repeats structured data. The description adds the ordering guarantee ("chronological") and limit-bounded behavior, which is mild extra context but no statement of return shape, pagination, or behavior on a missing/unresolvable chat.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three short sentences, front-loaded with the core action and scope, with no filler. Slightly terse for a tool in such a crowded namespace, but nothing is wasted.

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?

An output schema exists so return values needn't be explained, and annotations carry the safety profile. The description covers purpose, use case, and limit scoping adequately; the main omission is any differentiation from the many similar message-retrieval siblings.

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 already documents limit, account, and chat_id semantics thoroughly. The description only echoes the limit cap ("up to the configured limit") and adds nothing about ordering, defaults, or multi-account fan-out beyond what the schema states; baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb and resource (retrieve complete chronological message history from a chat) with scope (up to the configured limit). However, it makes no attempt to distinguish itself from near-duplicate siblings such as get_messages, list_messages, and get_full_chat, leaving the agent to guess which history-retrieval tool to pick.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

"Use when ingesting or summarizing a conversation" provides a genuine use context, but there are no exclusions and no reference to the many sibling tools (get_messages, list_messages, search_messages) that appear to overlap heavily. When-to-use is implied rather than fully clarified.

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