Skip to main content
Glama

crawl_docs

Crawls documentation within a single domain via internal links and returns concatenated pages in Markdown, preserving code blocks for multi-page docs.

Instructions

Обойти документацию в пределах одного домена и вернуть склейку страниц.

BFS от start_url по внутренним ссылкам до глубины depth. Полезно, когда документация разбросана по нескольким страницам. Каждая страница — в markdown с сохранением кода.

Args: start_url: стартовая страница документации. depth: глубина обхода по ссылкам (0 = только стартовая, 1 = + прямые ссылки). max_pages: максимум страниц (защита от бесконечного обхода).

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": {
      "start_url": "<start_url>"
    },
    "name": "crawl_docs"
  }
}

Input Schema

NameRequiredDescriptionDefault
depthNo
max_pagesNo
start_urlYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/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, and it does well: it discloses the BFS traversal algorithm, that links are restricted to internal ones, that depth is bounded, and that max_pages exists as an infinite-crawl guard. It omits what happens when max_pages is hit mid-crawl, failure/timeout behavior, and whether access to authenticated docs is supported.

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-loaded with the purpose, then the traversal model, then a usage note, then an Args block — a clean, scannable structure. The Args entries repeat parameter names but the added examples (depth 0/1) justify the space.

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 an output schema present, the description needn't detail the return shape, and it already notes pages come back as markdown with code preserved. For a 3-parameter crawler it covers behavior and parameters adequately; only truncation and failure semantics are 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 0%, so the description must compensate, and it documents all three parameters including the non-obvious depth semantics (0 = start page only, 1 = plus direct links) and the protective role of max_pages. It does not restate the defaults (1 and 15) or what happens on max_pages truncation, which is the remaining gap.

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?

The description gives a specific verb and scope: crawl a documentation site confined to one domain and return the pages concatenated. The BFS-on-internal-links sentence makes the traversal model explicit. It does not name a sibling (e.g. fetch_page for a single page), so an agent must infer which tool to prefer for a one-page read.

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?

"Полезно, когда документация разбросана по нескольким страницам" states a clear condition for choosing this tool. There is no explicit when-not guidance and no named alternative for the single-page or search use case, so routing against siblings is left to inference.

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