Skip to main content
Glama

fetch_docs

Fetch documentation from a URL or local file and parse it into readable markdown for AI agents to analyze.

Instructions

Fetch and parse documentation from a given URL or local file.

Use this tool after list_doc_sources to:

  1. First fetch the llms.txt file from a documentation source

  2. Analyze the URLs listed in the llms.txt file

  3. Then fetch specific documentation pages relevant to the user's question

Args: url: The URL to fetch documentation from.

Returns: The fetched documentation content converted to markdown, or an error message if the request fails or the URL is not from an allowed domain.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYesURL or file path to fetch documentation from

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.4

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It mentions the conversion to markdown, and error conditions (request failure, disallowed domains), which are useful. It does not explicitly state that the operation is read-only, but the fetch nature implies it. It also lacks details on rate limits or size constraints, but these are minor.

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?

The description is well-structured with a summary, workflow list, Args, and Returns sections. It is slightly long but each part adds value, and the main purpose is front-loaded. It avoids unnecessary fluff.

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?

For a single-parameter tool with no output schema, the description covers all essential aspects: purpose, usage sequence, input description, return behavior, and error handling. An agent has sufficient information to call it correctly without additional guidance.

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 parameter is already fully documented. The description repeats the parameter meaning and adds usage context but does not introduce new constraints or format details, so the baseline of 3 is appropriate.

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?

The description clearly states the tool's purpose: to fetch and parse documentation from a URL or local file. It distinguishes itself from its sibling list_doc_sources by explicitly positioning itself as a follow-up step, making its role unambiguous.

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?

The description provides explicit usage instructions: it should be used after list_doc_sources, and outlines a three-step workflow (fetch llms.txt, analyze URLs, fetch specific pages). This leaves no ambiguity about when and how to invoke the tool.

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

Deploy Server

Other Tools