Skip to main content
Glama
telegram-user-mcp

telegram-user-mcp

by tarikra1

get_messages

Read messages from a Telegram chat, group, or channel by username, ID, or title, with optional search filtering and message limits.

Instructions

Read messages from a chat/group/channel ('me', @username, numeric ID, or chat title). Optionally filter messages inside that chat using 'search'.

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": {
      "target": "<target>"
    },
    "name": "get_messages"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
searchNo
targetYes
offset_idNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description carries the full disclosure burden; it does establish that this is a read operation and that a chat must be resolved first. However, it says nothing about pagination, result ordering, default window size, or how unresolved/ambiguous targets behave, so a significant part of the behavioral burden is unmet.

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?

Two short sentences, front-loaded with the core action and with the target-format detail attached where it is most useful. No filler, though the second sentence is thin relative to the parameter surface it must cover.

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 need not be described, and the core resolution semantics for the required parameter are present. The remaining gap is the unexplained pagination parameters, which makes it good rather than complete.

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 coverage is 0%, so the description must compensate; it explains 'target' formats and the meaning of 'search', but 'limit' and 'offset_id' are completely unaddressed despite governing pagination behavior an agent must reason about.

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 ('Read messages' from a 'chat/group/channel') and enumerates the accepted target formats ('me', @username, numeric ID, or chat title). The phrase 'filter messages inside that chat' implicitly separates it from the global-search sibling, though no sibling is named explicitly.

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?

It clarifies that 'search' narrows within the resolved chat, which suggests usage, but never states when to prefer this over the global search tool or when a filter is unnecessary. No prerequisites or exclusions are given.

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