Skip to main content
Glama
Maxsh

telegram-mcp

by Maxsh

search_messages

Find matching messages across Telegram channels, groups, and private chats by query, with optional date or time filters to narrow results.

Instructions

Search for messages in a Telegram channel, group, or private chat

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoNumber of messages to retrieve (default: 10, max: 100)
queryYesSearch query
channelYesChannel username (@channelname), group username, private chat username (@username), phone number (+1234567890), or chat ID
sinceDateNoSearch messages since this date (ISO format: 2023-12-01T10:00:00Z)
sinceHoursNoSearch messages from the last N hours
sinceMinutesNoSearch messages from the last N minutes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.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 provided, so the description carries the full behavioral burden, yet it says nothing about result ordering, pagination, rate limits, or authentication requirements. The only implicit signal is that it works across channel, group, and private chat types.

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 efficient sentence with the resource front-loaded and zero padding. It is arguably too terse, but that is a completeness issue rather than verbosity.

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?

For a six-parameter tool with no annotations and no output schema, the description is far too thin. It omits how results are returned, how the limit interacts with the date filters, and how it relates to sibling retrieval tools.

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 the schema already documents all six parameters including the limit cap and the date filter formats. The description adds no semantics beyond what the schema provides, making the baseline 3 appropriate.

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 (messages) plus the scope of chat types it covers. It does not distinguish itself from the sibling get_recent_messages or explain how a keyword search differs from that tool.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No when-to-use guidance and no alternatives named, despite six siblings including the closely related get_recent_messages. The agent must infer that this is for keyword queries rather than browsing recent history.

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