Skip to main content
Glama

Read a Telegram conversation

get_telegram_chat
Read-only

Reads a Telegram conversation, oldest first: the last limit messages, or the messages before message before to page back. Each message has its author (fromMe for the user). Read-only; does not mark anything as read.

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": {
      "accountId": "<accountId>",
      "chat": "<chat>"
    },
    "name": "get_telegram_chat"
  }
}

Input Schema

NameRequiredDescriptionDefault
chatYesConversation: the `chat` id returned by the other Telegram tools.
limitNoMaximum number of messages.
beforeNoReturn messages older than this message (its `message` id).
accountIdYesTelegram source, as returned by the other Telegram tools.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, but the description adds a non-obvious side-effect detail that annotations cannot express: it 'does not mark anything as read,' which matters in a chat tool where reading typically triggers read receipts. It also discloses result ordering, another behavioral trait beyond the 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?

Three short sentences, each carrying distinct information -- paging model first, then message shape, then safety behavior. No filler or restatement of the schema verbatim.

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?

For a four-parameter read tool with no output schema, the definition covers ordering, both retrieval modes, and the absence of read side effects. What is missing is only minor: no default/limit bounds restatement (covered by schema) and no hint about response size or how many messages a typical page holds.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 100% schema coverage the baseline is 3, and the description earns above baseline by clarifying the interaction of the two optional params: `limit` bounds the last-N window while `before` shifts that window backwards in time. It also previews the returned per-message shape, including the `fromMe` author flag, which the schema never mentions.

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?

States a specific verb and resource ('Reads a Telegram conversation') plus an ordering guarantee ('oldest first'), which tells the agent much more than the title. It does not, however, explicitly distinguish itself from siblings like search_telegram or list_recent_telegram, which also surface messages.

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?

The description explains the two modes of use -- tail `limit` messages versus paging backwards with `before` -- which amounts to concrete operating guidance. It stops short of saying when to pick this over search_telegram or list_recent_telegram, so the agent must infer the alternative from sibling names.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources