Skip to main content
Glama
MCP Docs Scraper
by kwiscion

Get Docs Tree

get_docs_tree

Discover file and folder paths in cached documentation before retrieving content, with optional path filtering and depth limits.

Instructions

Get file/folder structure of cached docs. Use to discover file paths before get_docs_content. Optionally filter by path or limit depth.

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": {
      "docs_id": "<docs_id>"
    },
    "name": "get_docs_tree"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathNoSubtree path (e.g., 'docs/api')
docs_idYesDocs ID from index_docs or list_cached_docs
max_depthNoMax folder depth to return

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A3.8/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the burden. 'Get ... of cached docs' implies a safe read against cached data, but it never states read-only behavior, whether the cache is modified, or what the returned tree looks like (flat paths vs nested nodes) and how depth truncation is signalled.

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?

Three short sentences, front-loaded with the core purpose and followed by usage and filtering notes. No filler or redundancy; every clause carries information.

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?

For a simple three-parameter read tool with full schema coverage and no output schema, the description covers purpose, sequencing, and optional narrowing. The only gap is the shape of the returned tree, which an agent must infer.

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

Parameters3/5

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

Schema description coverage is 100%, so the schema already documents all three parameters including example path syntax and the docs_id source. The description only adds the framing that path and max_depth are optional filters, which is already derivable from the required list; baseline 3 applies.

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?

States a specific verb and resource ('Get file/folder structure of cached docs') with a clear scope qualifier ('cached'). It distinguishes itself from get_docs_content by naming it as the downstream consumer, though it does not explicitly separate itself from list_cached_docs or search_docs.

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?

Gives explicit when-to-use guidance: 'Use to discover file paths before get_docs_content,' which establishes both the purpose and the sequencing relative to a named sibling. There are no when-not conditions or exclusions, keeping it short of a 5.

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