Skip to main content
Glama

mdn_doc

Fetch full documentation for a specific MDN page using its path or URL, with optional section filtering and pagination for large pages. Find the correct path with search first.

Instructions

Fetch full documentation for a specific MDN page. Use mdn_search first to find the correct path. Supports pagination for large pages via max_length and start_index.

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": {
      "path": "<path>"
    },
    "name": "mdn_doc"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesMDN doc path, e.g. 'Web/JavaScript/Reference/Global_Objects/Array/map' or a full MDN URL
sectionsNoSpecific section IDs to return: syntax, description, parameters, return_value, examples, see_also. Omit for all sections.
max_lengthNoMax characters to return (default 5000). Use with start_index for pagination.
start_indexNoCharacter offset to start from (default 0). Use for pagination on large docs.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.9/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 full burden. It discloses the search-first workflow and that large pages are paginated, but pagination is already spelled out in the schema, and nothing is said about truncation signals, authentication/rate limits, or the shape of the returned content.

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 purpose, then the prerequisite, then the pagination note. No filler or redundant phrasing.

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?

There is no output schema, so the description should convey what a caller receives; 'full documentation' leaves the format (markdown, section structure, pagination markers) unspecified. Combined with the missing mention of the sections parameter, it is adequate but not complete for a fetch tool returning large variable content.

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 all four parameters, including the sections enum-like list and the max_length/start_index pairing, are already documented in the schema. The description only restates the pagination parameters and never mentions the useful 'sections' filter, adding little beyond structured data.

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 verb and resource: 'Fetch full documentation for a specific MDN page.' This is clearly distinct from mdn_search (finding paths) and the other siblings, and an agent can tell what it retrieves without opening the schema.

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?

Explicitly routes the agent: 'Use mdn_search first to find the correct path,' giving a concrete workflow prerequisite and implicit alternative. It does not exclude or compare against mdn_css/mdn_http, but those are not framed as substitutes for full-page fetches.

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