Skip to main content
Glama
salto-agancy

Telegram MCP

by salto-agancy

Recent activity snapshot

recent_activity
Read-onlyIdempotent

Avoid opening each chat individually by retrieving a single snapshot of recent messages, unread counts, and attachments across all Telegram chats.

Instructions

One prepared snapshot of recent activity across chats, instead of discovering chats and then opening each one. Returns, per chat: Telegram's own unread state (unread_count, read_inbox_max_id, read_outbox_max_id), the messages in the window with direction and reply links, attachment metadata, voice transcripts that are already available, and last incoming / last outgoing. Voice without a ready transcript is marked pending, never omitted. Whether a message needs a reply is not decided here. Success: dict with keys chats and coverage. Full documentation: https://github.com/leshchenko1979/fast-mcp-telegram/blob/main/docs/Tools-Reference.md

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sinceNoStart of the window: a relative span ('24h', '7d', '90m', '2w') or an ISO 8601 timestamp. Relative spans resolve against the current UTC instant, so 'the last 24 hours' does not shift with local calendar days.24h
untilNoEnd of the window as an ISO 8601 timestamp. Omit for 'up to now'. Relative values are rejected here because they read ambiguously.
accountsNoAccount labels to include. One authenticated session covers exactly one Telegram account, so a second account needs its own call with its own token; anything unavailable is reported in coverage rather than dropped.
chat_typeNoComma-separated chat kinds: private, bot, group, channel. Case-insensitive; extra spaces allowed.
limit_chatsNoMaximum chats to return (recommended 50 or less).
unread_onlyNoIf true, return only chats Telegram currently marks unread (unread_count above zero or an explicit unread mark).
include_channelsNoIf true, include broadcast channels. Off by default: channels out-post conversations by an order of magnitude and bury working chats.
include_telemetryNoIf true, attach per-run counters (durations, call counts, archive coverage). Counts and statuses only — never message content.
limit_messages_per_chatNoMaximum messages returned per chat (recommended 20 or less).
include_archived_dialogsNoIf true, also scan dialogs the owner moved to the archive folder.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.35.0

TDQS

A4.4/5.0
Behavior5/5

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

Annotations declare readOnlyHint, openWorldHint, and idempotentHint, but the description adds valuable behavioral detail: voice transcripts without ready transcripts are marked pending and never omitted, reply decisions are explicitly not made here, and the success output is a dict with keys chats and coverage. It also mentions that unavailable accounts are reported in coverage rather than dropped (in parameter description). This goes beyond annotations with concrete guarantees.

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?

The description is a single paragraph but is well-structured: it opens with the core purpose, then lists return fields, notes special cases, and concludes with success format and a documentation link. It is not overly verbose, though it could be tightened without losing content. Front-loading is effective.

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

Completeness5/5

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

Given the tool's complexity (10 optional parameters) and rich schema coverage, the description covers the key behavioral aspects: what is returned, the treatment of pending transcripts, the exclusion of reply decisions, and the success format. The output schema exists, so return values are documented. The link to full documentation also supplements completeness. Nothing critical is missing for correct invocation.

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 parameters are fully documented in the schema. The description does not add additional meaning to the parameters themselves; it focuses on output structure and behavioral notes. Baseline 3 is appropriate since the schema carries the parameter documentation.

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?

The description clearly states a specific verb and resource: 'One prepared snapshot of recent activity across chats'. It explains what it returns (unread state, messages, attachments, transcripts, last incoming/outgoing) and explicitly contrasts with the alternative of 'discovering chats and then opening each one', distinguishing it from sibling tools like find_chats and get_messages.

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?

The description implies when to use this tool ('instead of discovering chats and then opening each one') and indicates it is a batch overview. However, it does not explicitly name sibling alternatives or specify conditions when one would prefer get_messages or find_chats. The usage guidance is present but not exhaustive.

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