Skip to main content
Glama
Johnhyeon

TelegramLens

by Johnhyeon

telegram_collect_history

Backfill missing Telegram history by requesting a background daemon to collect data from the past 1-90 days, but only after obtaining user consent.

Instructions

더 오래된 과거 데이터를 소급 수집하도록 백그라운드 데몬에 요청합니다.

자동 수집은 기본 7일까지. 더 오래 비웠을 때(telegram_status 의 backfill_offer) 사용자 동의 시에만 호출하세요. 무거운 작업이라 동의 없이 호출 금지.

Args: days: 소급 수집할 일수(1~90). 예: 14면 최근 14일치.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
daysNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.7.0
    • removedInput schema / properties / days / default
      Removed value: -7
  2. First observedv0.4.3

TDQS

A4.4/5.0
Behavior4/5

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

The annotations indicate this is not read-only, not idempotent, and not destructive, and the description adds useful behavioral context beyond these flags: it is a background daemon request, it is a heavy operation, and it requires user consent. This meaningfully informs the agent about side effects and caution needed.

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?

The description is concise and well-structured. It opens with the core purpose, then adds the critical usage condition (user consent) and the parameter explanation, with no wasted or redundant sentences.

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?

The description is sufficiently complete for a tool with a single parameter and an existing output schema. It covers the core operation, the important consent prerequisite, the parameter range, and an example. Minor details such as how the background daemon reports completion are not described, but the output schema likely covers return values.

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

Parameters4/5

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

The input schema only provides the parameter name 'days' with no description, so schema description coverage is 0%. The description compensates well by explaining that days means the number of days to retroactively collect, providing a 1–90 range, and giving an example ('14면 최근 14일치'). This makes the parameter semantics clear.

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?

The description clearly states the tool's function: asking a background daemon to retroactively collect older history data. It also distinguishes the tool by tying it to the backfill_offer state in telegram_status, making its purpose unambiguous among siblings.

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

Usage Guidelines4/5

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

The description explicitly tells the agent when to call this tool: only when the user has been away longer than the default 7-day backfill and only with explicit user consent. It also explains when not to call it (without consent, due to heavy operation). It does not name alternative tools directly, but the usage conditions are clear.

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