Skip to main content
Glama
MCP Docs Scraper
by kwiscion

Index Docs

index_docs

Fetches and caches documentation from a GitHub repository or website, returning a docs_id needed to search and retrieve structured content later.

Instructions

Fetch and cache documentation from GitHub or website. REQUIRED before search_docs/get_docs_content. Auto mode tries GitHub first (cleaner), falls back to scraping. Returns docs_id for subsequent operations.

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": {
      "url": "<url>"
    },
    "name": "index_docs"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesGitHub repo URL (https://github.com/owner/repo) or docs website URL
typeNoSource type (default: auto)
force_refreshNoRe-fetch even if cached

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A4.6/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does well: it discloses caching (via force_refresh semantics), the auto-mode fallback order, and the docs_id handoff for downstream calls. It stops short of stating auth requirements for private repos, rate limits, or what happens on fetch failure — gaps that matter for a network-facing ingestion tool.

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?

Four short sentences, front-loaded with the single most important fact — that this must run before the search/read tools. Nothing is padded; every clause is either a prerequisite, a routing rule, or a return-value contract.

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?

There is no output schema, and the description compensates by stating the return value ('Returns docs_id for subsequent operations'). For a 3-parameter tool with full schema coverage, this is close to complete; only failure/error semantics and private-repo auth are left unstated.

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 lifts it above baseline by explaining what 'auto' actually does (GitHub first, scrape as fallback) and framing force_refresh implicitly through the caching behavior — meaning not recoverable from the enum alone. The url parameter's GitHub-vs-website duality is already in the schema, so no extra credit there.

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 compound verb and resource — 'Fetch and cache documentation from GitHub or website' — and immediately distinguishes itself from siblings by declaring it is REQUIRED before search_docs/get_docs_content. An agent can identify this as the ingestion/setup step without opening any schema.

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 an explicit prerequisite ordering ('REQUIRED before search_docs/get_docs_content') and names the specific siblings that depend on it. It also explains the mode-selection behavior — auto tries GitHub first, then falls back to scraping — which is the practical 'which path do I take' guidance an agent needs.

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