Skip to main content
Glama
tgsearch-mcp

tgsearch-mcp

by schebotar

tg_search_global

Search across all Telegram chats your account can access by text query, with type, date, and chat filters; excludes public channels you have not joined.

Instructions

Search across all chats your account has access to.

Public channels you have not joined are NOT included: open such a channel with tg_search_messages instead.

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": "tg_search_global"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindNoMessage type filter.any
limitNo
queryYesText query.
max_dateNoISO date or unix timestamp.
min_dateNoISO date or unix timestamp.
offset_idNoCursor message id from a previous `next` object.
groups_onlyNoOnly groups/supergroups.
offset_peerNoCursor chat ref from a previous `next` object.
offset_rateNoCursor from a previous `next` object.
broadcasts_onlyNoOnly broadcast channels.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It discloses one meaningful scope restriction (unjoined public channels are excluded) but says nothing about permissions, result ordering, rate limits, or how the ten parameters affect search behavior.

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?

Two short sentences, front-loaded with the core behavior and followed immediately by the important exclusion and alternative. No wasted 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?

For a search tool with a rich ten-parameter schema and an output schema, the description is nearly sufficient: purpose, scope, and the key exclusion are covered. Pagination details and interactions among filters are left to the schema, which is reasonable given the coverage.

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 description coverage is 90%, so the input schema already documents nearly every parameter. The description adds no parameter-level meaning, which meets the baseline for high schema coverage but does not enhance it.

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?

The description states a specific verb and resource ('Search across all chats your account has access to'), making the scope clear and distinguishing it from the named sibling for public channels. It does not explicitly differentiate against other search siblings such as tg_search_index, but the core purpose is unambiguous.

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 an explicit exclusion: unjoined public channels are NOT included and should be searched with tg_search_messages instead. This provides both a when-not condition and a named alternative, though guidance relative to other search tools is not supplied.

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