Skip to main content
Glama
TeleHarvest
by SmtDcs

semantic_search_messages

Search scraped Telegram messages by meaning using hybrid semantic and FTS5 matching with Gemini embeddings when configured. Finds relevant messages across chats and returns ranked results.

Instructions

Run hybrid semantic + FTS5 search over scraped messages (uses Gemini embeddings when configured, falls back to FTS5).

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

Input Schema

NameRequiredDescriptionDefault
limitNo
queryYes
chat_idNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

B3/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It does disclose a genuinely useful behavioral trait: Gemini embeddings are used when configured and otherwise the tool silently falls back to FTS5, meaning result quality varies by environment. It omits scope limits (scraped messages only), latency/cost of embedding calls, and whether the fallback changes ranking semantics.

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 tight sentence with the core purpose front-loaded and the implementation detail parenthesized, which is well-structured. Slightly more could be said without waste, but nothing here is padding.

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-value description is not required. However, for a 3-parameter tool with zero schema documentation, the definition leaves the agent guessing about chat_id scoping and limit behavior, which are the main things needed to call it correctly.

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

Parameters2/5

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

Schema coverage is 0% – none of query, limit or chat_id is described in the schema. The description mentions no parameter meanings at all, so it fails to compensate: it never explains that chat_id scopes the search to a single chat, what limit's default of 25 implies, or any query syntax expectations.

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?

Names a specific verb ('Run') and resource ('hybrid semantic + FTS5 search over scraped messages'), and the parenthetical explains the underlying retrieval mechanism. It implicitly distinguishes itself from the plain 'search_messages' sibling by advertising semantic/hybrid retrieval, though it never names that alternative.

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 or when-not-to-use guidance is given. It never states why an agent should pick this over search_messages or global_telegram_search, nor any prerequisites (e.g. whether embeddings must already be indexed for semantic mode to help).

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