Skip to main content
Glama

List recent Telegram messages

list_recent_telegram
Read-only

Lists recent Telegram messages since since (default: last 24 hours): messages received in private conversations and, in groups, those that mention the user or reply to one of their messages. Each has repliedAfter (false means the user has not written in the conversation since) and unread. onlyForMe=false includes all received messages, channels included. Reads the 40 most active conversations. Read-only; does not mark anything as read.

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": "list_recent_telegram"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum number of messages.
sinceNoStart date (ISO 8601). Defaults to 24 hours ago.
accountIdNoA single Telegram source.
onlyForMeNotrue (default): private conversations and mentions only.

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

A4/5.0
Behavior4/5

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

Annotations already cover read-only/non-destructive/open-world, but the description adds real behavioral context beyond them: it discloses that nothing is marked as read, and it reveals a coverage limitation (only the 40 most active conversations are read) that an agent could not infer from annotations. Return-field semantics (`repliedAfter`, `unread`) are also explained.

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?

Front-loaded with purpose and inclusion rules, and every clause carries information. It is dense but partly run-on (parenthetical nested inside parenthetical), and the `since` default is restated from the schema, which is mild redundancy.

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?

With no output schema, the description correctly compensates by naming the per-message fields returned (`repliedAfter`, `unread`) and the conversation-coverage limit. What remains unstated is ordering, pagination, and whether `limit` truncates across conversations or per conversation — minor for a read-only listing tool.

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?

Schema coverage is 100%, so a 3 is the floor; the description exceeds it by documenting the non-default branch of `onlyForMe` (false includes all received messages, channels included) that the schema entry only describes for the true case, and by restating the `since` default in usage terms. `limit` and `accountId` gain nothing beyond the schema.

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?

Opens with a specific verb+resource ("Lists recent Telegram messages") and immediately scopes it via the `since` window and the inclusion rule (private conversations; in groups, mentions or replies to the user). That level of detail lets an agent distinguish it in practice from `search_telegram`/`list_recent_chat`, but no sibling is named explicitly, so it falls short of a 5.

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?

Gives clear operating context: default 24-hour window, the `onlyForMe` toggle and what flipping it does, and the 40-most-active-conversations coverage cap. It does not state when to prefer `search_messages` or `get_telegram_chat` instead, so there is no explicit exclusion guidance.

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