Skip to main content
Glama
theYahia

@theyahia/tgstat-mcp

by theYahia

search_channels

Search Telegram channels using a query, with optional filters for category, language, country, and type, returning curated channel cards.

Instructions

Search Telegram channels by query, with optional category / language / country / type filters. Returns curated channel cards.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoMax results (max 100)
queryYesSearch query
countryNoCountry code, e.g. ru, ua, by (see list_countries)
categoryNoCategory code (see list_categories)
languageNoLanguage code, e.g. ru, en (see list_languages)
peer_typeNoSource typechannel
search_by_descriptionNoAlso match channel descriptions

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed13 schema fields changedv2.0.0
    • changedInput schema / properties / category / description
      Previous value: -"Категория канала"New value: +"Category code (see list_categories)"
    • changedInput schema / properties / country / description
      Previous value: -"Страна: ru, ua, by, etc."New value: +"Country code, e.g. ru, ua, by (see list_countries)"
    • changedInput schema / properties / language / description
      Previous value: -"Язык: ru, en, etc."New value: +"Language code, e.g. ru, en (see list_languages)"
    • addedInput schema / properties / limit / default
      Added value: +20
    • changedInput schema / properties / limit / description
      Previous value: -"Максимум результатов (по умолчанию 20)"New value: +"Max results (max 100)"
    • addedInput schema / properties / limit / maximum
      Added value: +100
    • addedInput schema / properties / limit / minimum
      Added value: +1
    • changedInput schema / properties / limit / type
      Previous value: -"number"New value: +"integer"
    • addedInput schema / properties / peer_type
      Added value: +{
      +  "default": "channel",
      +  "description": "Source type",
      +  "enum": [
      +    "channel",
      +    "chat",
      +    "all"
      +  ],
      +  "type": "string"
      +}
    • changedInput schema / properties / query / description
      Previous value: -"Поисковый запрос"New value: +"Search query"
    • addedInput schema / properties / query / maxLength
      Added value: +200
    • addedInput schema / properties / query / minLength
      Added value: +1
    • addedInput schema / properties / search_by_description
      Added value: +{
      +  "default": false,
      +  "description": "Also match channel descriptions",
      +  "type": "boolean"
      +}
  2. First observedv1.0.1

TDQS

B3.1/5.0
Behavior2/5

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

With no annotations provided, the description must carry the full burden of behavioral disclosure. It only mentions 'curated channel cards', hinting at ranking but not explaining pagination, default limit, error handling, or the effect of the search_by_description flag. It does not state that the operation is read-only or any rate limits. This is a significant gap for a search tool.

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, compact sentence that front-loads the core purpose and mentions the key filter types. It is appropriately concise without being under-specified, though it omits some operational details. The structure is efficient and not verbose.

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

Completeness2/5

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

For a tool with 7 parameters and no output schema, the description is incomplete. It does not mention the required query parameter, the limit parameter, the peer_type enum, or the search_by_description option. It also fails to note that category/language/country codes come from the list_* sibling tools. An agent would need to inspect the schema to understand these details, and the description provides insufficient context 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 coverage is 100%, so all parameters are already documented in the input schema. The description adds minimal value by listing filter types (category, language, country, type) which correspond to schema properties, but it does not explain any parameter further. Since the schema is thorough, the baseline of 3 applies; the description does not add meaningful semantic detail beyond that.

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 the tool searches Telegram channels by query with optional filters for category, language, country, and type. It distinguishes this from search_posts by explicitly focusing on channels and mentions the return of 'curated channel cards', giving a specific verb, resource, and result format.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

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

The description gives no guidance on when to use this tool versus alternatives like search_posts or get_channel. It does not state when to prefer this over a direct lookup or when to avoid it. No exclusions or alternative references are present, leaving the agent to infer usage context.

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