Skip to main content
Glama
tgsearch-mcp

tgsearch-mcp

by schebotar

tg_list_topics

Lists forum topics in a Telegram supergroup and returns topic_id values for use with message search and retrieval. Supports title filtering and pagination.

Instructions

List forum topics of a supergroup; use the returned topic_id as topic_id in tg_search_messages / tg_get_messages.

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": {
      "chat": "<chat>"
    },
    "name": "tg_list_topics"
  }
}

Input Schema

NameRequiredDescriptionDefault
chatYesChat reference: @username, t.me link, or numeric chat id.
limitNo
queryNoOptional topic title filter.
offset_topicNoPagination cursor from a previous call.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full behavioral burden; "List" implicitly signals a read-only, non-destructive operation and it notes the response carries topic_id. It says nothing about permissions, forum-enabled prerequisites, error behavior for non-forum supergroups, or how pagination terminates (only the schema's offset_topic hints at that).

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single front-loaded sentence stating purpose first and the chaining guidance second, with no filler wording.

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?

An output schema exists, so return-value detail is not required, and the description covers purpose plus downstream chaining. The remaining gap is behavioral: no note on forum-enabled requirements or pagination semantics for a tool with no annotations.

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 coverage is 75%: chat, query, and offset_topic are documented in the schema, while limit has only defaults and bounds. The description adds no meaning to any parameter and only clarifies the output field topic_id, so the baseline 3 applies.

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 gives a specific verb and resource ("List forum topics of a supergroup") that is clearly distinct from sibling message/search tools. An agent can tell this enumerates topics rather than messages or chats 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 Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It explicitly states the follow-up context: the returned topic_id feeds into tg_search_messages / tg_get_messages, which tells the agent where this tool sits in a workflow. It does not state exclusions, such as what to do for chats without forums enabled or whether tg_get_chat should be called first to resolve the chat reference.

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