Skip to main content
Glama
TeleHarvest
by SmtDcs

global_telegram_search

Search Telegram globally for public channels, groups, or messages via MTProto by specifying a query and search type. Use it to discover relevant public content and conversations.

Instructions

Search Telegram globally for public channels/groups (search_type='channels') or messages (search_type='messages') via MTProto.

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": {
      "query": "<query>"
    },
    "name": "global_telegram_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
queryYes
account_idNo
search_typeNochannels

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

C2.9/5.0
Behavior2/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. 'Public' and 'via MTProto' hint at the visibility boundary and that an authenticated account is needed, but it says nothing about rate limits, pagination behavior, or result ordering that a live global search endpoint would exhibit.

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?

One tightly written sentence with the verb and scope front-loaded followed by the mode mapping; no padding or redundant restatement of the tool name. It is terse to the point of thinness, but every clause earns its place.

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?

A four-parameter, unannotated search tool with zero schema coverage needs more than one sentence. The output schema relieves it of explaining return values, but opaque parameters like account_id and limit remain undocumented on both sides.

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

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must compensate for all four parameters. It explains search_type's two values, which is the most consequential parameter, but leaves query, limit, and account_id completely unexplained, including that account_id selects which Telegram credentials are used.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Search Telegram globally') plus the two target object types, public channels/groups and messages, and scopes them to public content and MTProto. An agent can see it is a global/public search rather than a per-chat search, though it never names a sibling to distinguish against.

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 two supported modes are tied to concrete search_type values, which implies usage, and 'globally' plus 'public' implies it is for discovery outside a known chat. It gives no when-not condition, no prerequisites (MTProto session or account), and does not point at search_messages or discover_similar_channels for narrower scopes.

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