Skip to main content
Glama
telegram-user-mcp

telegram-user-mcp

by tarikra1

search_chats

Find Telegram chats by name or @username across your dialogs and the global directory, with an adjustable result limit.

Instructions

Search your Telegram dialogs and global directory by name or @username.

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

Input Schema

NameRequiredDescriptionDefault
limitNo
queryYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

B3.4/5.0
Behavior3/5

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

No annotations exist, so the description must carry the behavioral burden. It usefully discloses that results extend beyond your own chats into a 'global directory,' which is real added context, but it says nothing about read-only safety, result ordering, pagination, or rate limits.

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 well-formed sentence with the scope front-loaded and no filler. Appropriately sized, though it is so terse that it omits parameter and behavioral detail that could have earned space.

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 is present so return values needn't be explained, and the two-parameter surface is simple. Still, with no annotations and 0% schema coverage, an agent gets no information on the limit parameter's effect or on how to interpret result ordering.

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 0%, so the description must compensate. It clarifies that the query accepts a chat name or an @username, which is genuinely helpful, but leaves the 'limit' parameter (default 20) completely unaddressed.

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 ('Search') and resource ('your Telegram dialogs and global directory') with the matching key ('name or @username'). This clearly distinguishes it from message-oriented siblings like search_messages_global, though it never names an alternative explicitly.

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 phrase 'your Telegram dialogs and global directory' implies when the tool applies (finding chats rather than messages), but there is no explicit when-to-use or when-not-to-use guidance, and no pointer to list_chats for browsing versus searching.

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