Skip to main content
Glama
Anthropic Docs MCP Server

Anthropic Docs MCP Server

Fetch Documentation

fetch_doc

Fetch a documentation page from a URL and return its cleaned title and text, with an optional character limit to control response size.

Instructions

Fetch and clean a documentation page from a URL, returning title + text.

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

Input Schema

NameRequiredDescriptionDefault
urlYesURL of the documentation page to fetch
max_charsNoMaximum characters to return (500-20000)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

B3.3/5.0
Behavior2/5

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

No annotations exist, so the description carries the full behavioral burden, and it discloses little beyond the basic transaction. "Clean" is an unelaborated behavioral claim (HTML stripping? boilerplate removal?), and there is no mention of network failure behavior, non-HTML or JS-rendered pages, redirects, authentication, or rate limits.

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?

A single front-loaded sentence with no filler; the return shape is appended without wasted words. Nothing needs trimming and nothing important is buried.

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

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple two-parameter read tool with full schema coverage and no output schema, the description does state the return fields (title + text), which is useful. However, the undefined "clean" transformation and the absence of any error or page-type caveats leave meaningful ambiguity for an agent deciding whether this tool will work on a given URL.

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 both parameters are already documented with type, format, default, and min/max bounds. The description mentions the URL only in passing and adds no meaning beyond the schema, leaving max_chars entirely to the schema — baseline 3 is appropriate.

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?

"Fetch and clean a documentation page from a URL, returning title + text" names a specific verb pair (fetch/clean), the resource (documentation page), the input source (URL), and the return shape. It does not explicitly contrast itself with the sibling search_anthropic_docs, but the URL-driven scope makes the distinction reasonably inferable.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is only implied: the agent can infer this is for retrieving a known page URL rather than discovering pages. There is no explicit when-to-use, when-not-to-use, or named alternative such as the search sibling, so routing depends on inference.

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