Skip to main content
Glama

Search Telegram

search_telegram
Read-only

Searches Telegram messages containing query using Telegram's own search, across all conversations or within chat, since since (default 365 days). Read-only.

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

Input Schema

NameRequiredDescriptionDefault
chatNoConversation: the `chat` id returned by the other Telegram tools.
limitNoMaximum number of messages.
queryYesWords to search for.
sinceNoStart date. Defaults to 365 days ago.
accountIdNoA single Telegram source.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Beyond the annotations, which already establish read-only safety, the description adds meaningful behavior: it uses Telegram's own search rather than a local index, can span all conversations or one chat, and defaults to a 365-day window. It does not describe result ordering, pagination, or return shape, but the annotations reduce the disclosure burden.

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?

The definition is a single front-loaded sentence that moves from action to search source, scope, time window, and safety. Each clause carries useful information and there is no filler.

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 read-only search tool with complete parameter descriptions and no output schema, the description supplies the essential search scope, source, and default time window. It leaves some gaps around result behavior and sibling selection, but the structured fields cover most of the remaining context.

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 100%, so query, chat, limit, since, and accountId are already documented in the schema. The description reinforces query matching, optional chat scoping, and the since default, but adds little semantic detail beyond the schema and omits limit and accountId.

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 ('Searches') and resource ('Telegram messages'), and specifies the matching criterion ('containing query'). It is clear what the tool does, but it does not explicitly differentiate itself from similarly named siblings such as search_messages or search_chat.

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?

It implies when to use the tool by explaining that it searches all conversations or can be narrowed to chat, and applies a default since window. However, it gives no explicit when-not-to-use guidance or named alternatives for listing recent messages or searching another corpus, so selection still relies on inference.

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.

Resources