Skip to main content
Glama
TeleHarvest
by SmtDcs

search_messages

Search scraped Telegram messages using SQLite FTS5 full-text search and structured filters for chat, date range, views, and media type to retrieve targeted results.

Instructions

Search scraped Telegram messages using SQLite FTS5 full-text search and structured filters.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "search_messages"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
queryNo
offsetNo
chat_idNo
date_toNo
sort_byNodate_desc
date_fromNo
min_viewsNo
media_typeNo
entity_valueNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.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 supplied, so the description carries the full disclosure burden. It reveals the search engine (FTS5) and that the corpus is 'scraped' messages, which is genuinely useful, but says nothing about permissions, pagination, default limit (30) or sort behavior, or what the response contains.

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 action, corpus, engine and filter concept front-loaded, and no filler. It is efficient, though the brevity is also the source of the coverage gaps.

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?

For a 10-parameter tool with zero schema coverage and no annotations, one sentence is thin, particularly around query syntax, date formats and filter semantics. The output schema does relieve it of explaining return values, which keeps this from being worse.

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% across 10 parameters, so the description must compensate, and it only partly does by grouping them into 'full-text query' versus 'structured filters'. Individual parameters such as sort_by, min_views, media_type, entity_value and the date formats are left entirely unexplained in both schema and description.

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 and resource ('Search scraped Telegram messages') and names the mechanism (SQLite FTS5 full-text search plus structured filters), which tells the agent precisely what kind of matching happens. It stops short of distinguishing itself from the sibling semantic_search_messages, so an agent must infer that this one is keyword/lexical rather than semantic.

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?

There is no when-to-use or when-not-to-use guidance and no reference to any alternative, despite an obvious lexical-vs-semantic sibling pair. The only signal is the implicit 'full-text search' phrase, which at best hints at the use case without excluding anything.

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