Skip to main content
Glama

List cached documentation pages

list_telegram_cached_pages
Read-onlyIdempotent

List locally cached Telegram documentation pages by URL, filter by documentation area, and page through results to find stored pages available offline.

Instructions

List the documentation pages already stored in the local cache, sorted by URL.

Use it to see which pages of an area are available offline or to pick a page to open with get_telegram_document. Filter with area, page through results with offset and limit. Returns pages (url, title, area, checked_at, freshness), total matching pages and next_offset to pass back for the next page (null at the end). It lists stored pages only; to find content by topic use search_telegram_docs, and for totals and errors use get_telegram_corpus_status.

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

Input Schema

NameRequiredDescriptionDefault
areaNoOnly pages from this documentation area; empty lists all areas.
limitNoMaximum number of pages to return.
offsetNoNumber of pages to skip, for paging through long lists; use the previous next_offset.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.7.0

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive/closed-world, so the safety profile is covered; the description still adds value by disclosing the return shape (pages with url, title, area, checked_at, freshness), the presence of a total count and a terminal null next_offset. It does not explain what staleness or an empty cache looks like operationally, so it stops short of a 5.

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?

Front-loads the purpose, then usage, then parameters, then return contract in four dense sentences with no filler. The return-field enumeration is long but justified because no output schema exists.

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

Completeness5/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 supplies the entire return contract (field list, total, next_offset null sentinel), and it covers all three optional parameters plus sibling routing. Nothing an agent needs in order to call this 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?

Schema coverage is 100%, so the baseline is 3; the description goes beyond it by tying offset/limit to a paging loop and, crucially, instructing the agent to feed the returned next_offset back into offset. It does not elaborate on area values beyond the schema enum.

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 ('List the documentation pages already stored in the local cache') plus an ordering rule ('sorted by URL'), which no sibling name implies. It explicitly distinguishes itself from search_telegram_docs (topic lookup) and get_telegram_corpus_status (totals/errors), so an agent can route correctly without opening 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 two concrete use cases ('see which pages of an area are available offline' or 'pick a page to open with get_telegram_document') and names the alternative tool for each excluded case. It also covers paging procedure via next_offset, leaving nothing to inference.

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