Skip to main content
Glama

search_tg_history

Search past Telegram conversations by keyword to recall any prior discussion. Includes messages from both sides with timestamps and sender info.

Instructions

用關鍵字全文搜尋過去所有 Telegram 對話(雙向、含時間、發出方)。當使用者提到『之前/上次/我們討論過』等過去事件,務必優先呼叫本工具,而不要直接說不記得。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
keywordYes搜尋關鍵字
chat_idNo
Behavior4/5

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

No annotations provided. Description implies read-only search behavior and includes scope (past conversations, bidirectional, with time and sender). Does not explicitly state non-destructive nature or rate limits, but adequate for a search tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two concise sentences, no fluff. First sentence defines action and scope, second provides clear usage directive. Every sentence earns its place.

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

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given low complexity (2 params, no output schema, no annotations), description covers core purpose, usage, and behavioral context. Missing details on return format or chat_id usage, but not critical for typical search tool.

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 50% (keyword described, chat_id not). Description adds no information about chat_id parameter beyond schema. Only keyword is implied by context. Insufficient compensation for missing schema description.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Description clearly states full-text search of all past Telegram conversations with direction, time, and sender. Explicitly prioritizes this tool over not remembering, distinguishing it from siblings like get_recent_context.

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

Usage Guidelines5/5

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

Explicitly instructs to use when users mention past events like '之前/上次/我們討論過', and not to default to saying '不記得'. Provides clear when-to-use guidance.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/fenghaochang/LoreRoom'

If you have feedback or need assistance with the MCP directory API, please join our Discord server