Skip to main content
Glama
Telegram MCP Server

Telegram MCP Server

get_telegram_messages

Fetches new text messages from a Telegram chat by tracking seen updates, so each call returns only unseen messages. Use peek to inspect without consuming.

Instructions

Fetches new text messages from the Telegram chat. Uses an internal offset to track which updates have already been seen, so each call only returns genuinely new messages. On the very first call after server start, all pending updates are returned.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_telegram_messages"
  }
}

Input Schema

NameRequiredDescriptionDefault
peekNoIf true, fetches messages without advancing the offset — subsequent calls will return the same messages again. Useful for inspecting without consuming. (default: false)
limitNoMaximum number of recent messages to return (default: 10).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations provided, the description carries the full burden and does disclose the critical non-obvious behavior: an internal offset tracks consumed updates, so calls are consuming rather than idempotent, and the first call after server start returns all pending updates. It omits auth requirements, rate limits, and what happens to non-text updates, which keeps it below a 5.

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, zero waste, front-loaded with the core action and immediately followed by the behavior that most affects calling strategy. Nothing is repeated from the schema.

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

Completeness3/5

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

There is no output schema and no annotations, so the description should ideally describe the return shape or note how non-text messages are filtered out. It covers the offset and first-call edge cases well but leaves the response contract and media exclusion unaddressed.

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 both parameters (peek, limit) are fully documented in the schema, and the baseline is 3. The description explains the offset concept that gives "peek" its meaning but adds no syntax or default details beyond the schema.

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 plus resource and scope: "Fetches new text messages from the Telegram chat." The word "new" and the read-only fetch framing distinguish it from the send_*/pin_* siblings without ambiguity.

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?

Usage is implied by the offset mechanism — repeated calls poll for genuinely new messages, and first call drains pending updates — but the description never explicitly says when to use it versus other retrieval approaches, nor names any exclusion (e.g. media messages). An agent can infer intent, but it is not spelled out.

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