Skip to main content
Glama
Overseas Social MCP Server

Overseas Social MCP Server

by CubericW

telegram_channel_messages

Fetch recent messages from a public Telegram channel or group, optionally filtered by keyword, to retrieve posts newest first for monitoring or analysis.

Instructions

Fetch recent messages from a public Telegram channel or group (optionally filtered).

Args: channel: channel/group username (with or without @), a t.me link (t.me/name, t.me/s/name, t.me/name/123), or a numeric -100… id. query: optional keyword to filter messages server-side. max_count: max messages (default from config, hard-capped).

Items are newest first; publish_time is UTC. Requires telethon + api_id/api_hash + an authorized session (one-time interactive login: python3 -m overseas_social_mcp.telegram_login, run by the user).

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": {
      "channel": "<channel>"
    },
    "name": "telegram_channel_messages"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryNo
channelYes
max_countNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/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 well: it discloses result ordering (newest first), timezone of publish_time (UTC), and a significant operational prerequisite — telethon + api_id/api_hash + a one-time interactive login run by the user via a specific command. It omits failure modes, rate limits, and pagination limits beyond the vague 'hard-capped'.

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 the one-line purpose, then a structured Args block per parameter, then a short behavior/prerequisite note. Nearly every line earns its place; the only mild redundancy is restating that filtering is optional in both the summary line and the query arg.

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?

For a three-parameter fetch tool with an output schema (so return shape needn't be described), the description covers purpose, every parameter's accepted formats, result ordering, timezone, and the auth/session setup including the exact login command. An agent has everything needed to invoke it or report a setup blocker.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/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, and it does: 'channel' is expanded into accepted formats (@-prefixed or bare username, t.me/name, t.me/s/name, t.me/name/123, numeric -100… id), 'query' is identified as a server-side keyword filter, and 'max_count' is noted as defaulting from config with a hard cap. This adds meaning the bare JSON schema cannot convey.

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 ('Fetch') and resource ('recent messages from a public Telegram channel or group') with an explicit scope qualifier ('public', 'optionally filtered'). The platform is named outright, which cleanly separates it from the sibling search tools (x_search, reddit_search, linkedin_profile).

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?

It gives clear operating context: works on public channels/groups only, keyword filtering is optional and applied server-side, and the tool needs telethon plus an authorized session. It does not name alternatives or state when not to use it (e.g. private channels, live streaming), so it stops short of full when/when-not coverage.

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