Skip to main content
Glama

Cache coverage and freshness

get_telegram_corpus_status
Read-onlyIdempotent

Check how complete and current the local documentation cache is, including page counts, crawl queue state, stale pages, and recent errors. Use before searching or when results seem incomplete.

Instructions

Report how complete and how current the local documentation cache is, as totals.

Use it at the start of a task or when search results look incomplete. Returns pages, per-area counts (families), crawl queue state (frontier), stale_pages, last and oldest successful checks, refresh_policy and up to 15 recent source errors. For the configured entry points use list_telegram_sources; for the individual cached pages use list_telegram_cached_pages; to answer a question use search_telegram_docs. Refreshing is automatic (on read, on search and in a background cycle), so there is no refresh command. Returns page counts per area, crawl queue state, stale page count, last and oldest successful checks, refresh policy and the latest source errors. Indexed pages are not all of Telegram's knowledge: absence from the cache is not evidence that a feature does not exist.

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.7.0

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already cover read-only, idempotent, non-destructive and closed-world, so the description adds genuinely new context: refresh happens automatically on read, on search and in a background cycle, so no refresh call is needed. It also warns that absence from the cache is not evidence a feature does not exist, which prevents a real reasoning error rather than restating annotation hints.

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

Conciseness3/5

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

Front-loaded with purpose and usage, which is good, but the return fields are enumerated twice: once in the 'Returns pages, families, frontier, stale_pages...' sentence and again in the final 'Returns page counts per area, crawl queue state, stale page count...' sentence. That duplication is pure waste and makes the block longer than it needs to be.

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?

With no output schema, the description carries the burden of explaining what comes back, and it does: counts per area, frontier state, stale pages, last and oldest successful checks, refresh policy, and up to 15 recent errors. The only shortfall is the duplicated return summary and the absence of any hint about size or latency of the response, but nothing an agent needs in order to call it correctly is missing.

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 tool takes no parameters, which is the baseline-4 case. The description does not need to explain arguments, and it correctly spends its words on return shape and usage context instead.

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?

States a specific verb and resource: reports how complete and how current the local documentation cache is, as totals. It then names each sibling (list_telegram_sources, list_telegram_cached_pages, search_telegram_docs) and what each is for, so an agent can separate this status tool from the listing and search tools without opening their schemas.

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?

Gives explicit trigger conditions ('at the start of a task or when search results look incomplete') and explicit routing to three alternatives for their respective purposes. It also preempts a likely wrong move by stating there is no refresh command, which is the strongest form of when-not-to-use guidance here.

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