Skip to main content
Glama

Groundsocial

Posts of a Telegram channel

telegram_channel_posts
Read-onlyIdempotent

A page of a public channel’s posts (20, newest first), or posts matching words.

A public channel’s posts, 20 a page, newest first, each with text (plain and HTML), views, reactions, media (photo, video, voice, document, sticker), poll, link preview, forward origin and reply. Pass pagination.next_cursor as after for older posts. q searches the channel’s posts by words, as Telegram’s own search does (it also matches other forms of a word); a search pages with after too. since/until (YYYY-MM-DD or ISO 8601) drop posts outside the window from the page; pages are in date order, so stop once a page is older than since.

Cost: 1 credit per call, refunded automatically if the call fails. Read-only, public data only. Results include cost_credits and credits_remaining.

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": {
      "handle": "<handle>"
    },
    "name": "telegram_channel_posts"
  }
}

Input Schema

NameRequiredDescriptionDefault
qNoWords to search for inside the channel.
afterNoCursor: the previous page’s `pagination.next_cursor`.
sinceNoOnly posts on or after this date (YYYY-MM-DD or ISO 8601).
untilNoOnly posts on or before this date (that whole UTC day for YYYY-MM-DD).
handleYesChannel username, with or without the @, or a t.me link.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare readOnly, idempotent, non-destructive, open-world, but the description adds substantial behavior beyond them: fixed page size and ordering, the exact returned fields, cost of 1 credit with automatic refund on failure, a public-data-only restriction, and the presence of cost_credits/credits_remaining in results. That is the kind of context an agent needs to budget and interpret calls.

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?

It is front-loaded with purpose, then pagination, then filtering, then cost — a sensible order with little waste. The only minor redundancy is restating '20 a page, newest first' in both the first and second sentence, which is cheap but not free.

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?

There is no output schema, yet the description compensates by enumerating returned fields (text/HTML, views, reactions, media types, poll, link preview, forward origin, reply) and the envelope fields cost_credits and credits_remaining. Combined with pagination and date-window semantics, nothing material is left for an agent to guess.

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 the baseline is 3, but the description adds meaning beyond it: q behaves like Telegram's own search and also matches other word forms, since/until merely drop out-of-window posts from the page rather than changing ordering, and after is explicitly the prior page's next_cursor. These are non-obvious semantics the schema does not 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?

The first sentence names a specific verb and resource — a page of a public channel's posts, 20 per page, newest first, or word-matched posts — which is immediately distinguishable from a channel-metadata or single-post tool. The second sentence enumerates exactly what each post carries, so an agent knows the payload shape without opening anything else.

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 real operational guidance: use q for word search, pass pagination.next_cursor as after for older pages, and stop paging once a page is older than since. What's missing is explicit routing to alternatives (e.g. a single-post or comments tool), so an agent gets clear in-tool context but no when-not-to-use exclusions.

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.