Skip to main content
Glama
telegram-mcp

telegram-mcp

by Maxsh

get_messages_multi

Retrieve recent messages from 1–25 Telegram channels in one call, returning per-channel results and errors so one bad channel does not fail the request.

Instructions

Get recent messages from multiple Telegram channels in one call (1-25 channels). Returns per-channel results and per-channel errors, so one bad channel does not fail the call. Same response fields as get_recent_messages per channel.

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": {
      "channels": "<channels>"
    },
    "name": "get_messages_multi"
  }
}

Input Schema

NameRequiredDescriptionDefault
tzNoIANA time zone used to resolve date-only sinceDate and 'today'/'yesterday' (e.g., Europe/Kyiv). Default: UTC
limitNoMax messages per channel (default: 50, max: 100)
channelsYesChannel identifiers (1-25): @username, bare numeric id, or -100-prefixed id
sinceDateNoGet messages since this date. Accepts a full ISO datetime, a plain date (midnight in tz), or 'today' / 'yesterday'
sinceHoursNoGet messages from the last N hours
excludeMediaNoOmit media-only messages (no text and no caption)
sinceMinutesNoGet messages from the last N minutes
maxTextLengthNoTruncate each message text to this many characters (adds textTruncated: true)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.1.0

TDQS

A3.7/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 adds genuinely useful behavior beyond the schema — partial-failure semantics ('one bad channel does not fail the call', per-channel errors) — but omits read-only/auth expectations, rate-limit implications of fanning out across up to 25 channels, and ordering guarantees for the results array.

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?

Three short sentences, front-loaded with the core action and scope, and no filler. The second and third sentences overlap somewhat (per-channel results/errors vs. 'same response fields as get_recent_messages'), a minor redundancy that keeps it just short of a 5.

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 an eight-parameter tool with no annotations and no output schema, the description covers scope, graceful partial failure, and response shape by reference to a sibling, which is what an agent needs to call it safely. Auth prerequisites and rate-limit behavior across many channels remain unstated but are secondary for a read operation.

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 every parameter including tz, limit caps, and sinceDate formats is already documented in the schema; baseline is 3. The description only restates the channel count bound (1-25), which the schema already enforces via minItems/maxItems, adding no new semantic detail.

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 (get), resource (recent messages), and scope (multiple Telegram channels in one call, 1-25). The reference to get_recent_messages for response fields implicitly distinguishes it as the batch variant of the single-channel sibling, so an agent can place it without opening the schema.

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 1-25 channel range implies 'use this when you have several channels,' which is reasonable implied usage, but there is no explicit when-to-use/when-not statement and no named alternative with a selecting condition (e.g., use get_recent_messages for a single channel). The mention of get_recent_messages is about response parity, not routing guidance.

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