Skip to main content
Glama
tgu-mcp
by rival-afk

search

Read-onlyIdempotent

Find Telegram messages by query across recent chats or within a specified chat, returning matching results as a JSON array.

Instructions

Поиск сообщений: query — запрос; chat — ограничить чат (иначе глобальный по последним чатам). JSON-массив.

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

Input Schema

NameRequiredDescriptionDefault
chatNo
limitNo
queryYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.1

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint and idempotentHint, lowering the bar. The description adds real value by disclosing the default search scope ('глобальный по последним чатам'), but says nothing about pagination or how results are ordered/capped despite the limit parameter.

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?

A single compact sentence with the core parameters front-loaded and no filler; the terseness borders on under-specification but nothing is wasted.

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

Completeness3/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 values needn't be explained (the trailing 'JSON-массив' is largely redundant). Against a 3-param tool with zero schema descriptions, the missing limit semantics leave the definition only adequately complete.

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

Parameters4/5

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

Schema coverage is 0%, so the description must carry meaning, and it does explain query and — importantly — that chat is optional and defaults to a global search over recent chats, which the bare schema does not convey. It omits the limit parameter entirely, so it does not fully compensate.

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+resource: 'Поиск сообщений' (message search), which is distinguishable from read-oriented siblings like read/read_ids. It does not name a sibling alternative, so it stays at 4 rather than 5.

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 chat clause implies when to scope narrowly ('ограничить чат') versus searching globally by default, which is useful implied guidance. However, there is no explicit instruction on when to use this versus read/chats/similar, nor any exclusions.

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