Skip to main content
Glama

Fetch Documentation Page

fetch
Read-only

Gets detailed content for documentation by ID returned from the search tool.

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": {
      "id": "<id>"
    },
    "name": "fetch"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesCanonical IDs use project/section/slug. Legacy project/slug, recipe:project/slug and ref:project/slug IDs are also accepted. For a link `/<section>/<slug>` the search tool did not return, use `<project>/<section>/<slug>`, with `<project>` taken from an ID this project already returned. A custom page link `/page/<slug>` maps to `<project>/custom_pages/<slug>`.
formatNoCustom pages can be authored in HTML. `markdown` converts an HTML custom page to Markdown; omitted or `original` returns the page as authored.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / id / description
      Previous value: -"Canonical IDs use project/section/slug. Legacy project/slug, recipe:project/slug and ref:project/slug IDs are also accepted. For a link `/<section>/<slug>` the search tool did not return, use `<project>/<section>/<slug>`, with `<project>` taken from an ID this project already returned."New value: +"Canonical IDs use project/section/slug. Legacy project/slug, recipe:project/slug and ref:project/slug IDs are also accepted. For a link `/<section>/<slug>` the search tool did not return, use `<project>/<section>/<slug>`, with `<project>` taken from an ID this project already returned. A custom page link `/page/<slug>` maps to `<project>/custom_pages/<slug>`."
  2. Changed1 schema field changed
    • addedInput schema / properties / format
      Added value: +{
      +  "description": "Custom pages can be authored in HTML. `markdown` converts an HTML custom page to Markdown; omitted or `original` returns the page as authored.",
      +  "enum": [
      +    "original",
      +    "markdown"
      +  ],
      +  "type": "string"
      +}
  3. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, and openWorldHint=false, so safety is covered by structured data. The description adds the meaningful signal that this returns fuller content than `search`, but says nothing about truncation, size limits, or what "detailed" content actually looks like. With annotation coverage this reduced burden, a 3 is appropriate.

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?

A single tight sentence with the resource and the ID provenance front-loaded, and no filler. It is appropriately sized for a two-parameter read tool, though the brevity leaves the behavioral gaps noted elsewhere unaddressed.

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 carries the burden of describing return values, and "detailed content" is not enough to tell an agent whether the result is a full document, a section, or a possibly truncated payload. For a simple read tool with full schema coverage this is adequate but visibly incomplete.

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% and the `id` field's description is unusually rich (ID formats, custom-page mapping), so the schema does the heavy lifting. The description adds no parameter-level meaning beyond pointing at `search` as the ID source, which is the expected baseline-3 outcome.

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?

The description pairs a specific verb ("Gets") with a specific resource ("detailed content for documentation") and names the source of the identifier (the `search` tool), which clearly separates it from the sibling `search`. It stops short of 5 only because "detailed content" is not concretely characterized (full page? excerpt?).

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?

It establishes the prerequisite workflow explicitly: the ID must come from `search`, implying search-then-fetch. There are no explicit when-not conditions or edge-case exclusions, keeping it below the top mark.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.