Skip to main content
Glama

Ferrite developer docs on Alloy

get_doc

Read-onlyIdempotent

Read one page of the documentation as Markdown. Use it with a path from search_docs, llms.txt or the sitemap when you need the whole page rather than a snippet. Returns the path and the page's full text, the same as its .md address serves.

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

Input Schema

NameRequiredDescriptionDefault
pathYesthe page path

Output Schema

NameRequiredDescriptionDefault
pathYesThe page's own path, without a fragment.
markdownYesThe page as Markdown, starting with its title.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, and closed-world, so the safety profile is covered. The description adds behavior beyond that: it returns the path plus the full page text in Markdown and is equivalent to fetching the page's .md address, which tells the agent exactly what content to expect. It stops short of mentioning truncation, size limits, or error behavior for a bad path.

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 core action, then usage, then return behavior. Every sentence carries distinct information and none restates the title or schema.

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?

This is a simple single-parameter read tool with an output schema and full annotation coverage, so the description does not need to enumerate return fields. It still briefly characterizes the return value and where the path originates, which is everything an agent needs to call it correctly.

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% and the single path parameter is documented with an example, so the schema does the heavy lifting. The description still adds value by naming the three sources a valid path can come from, which is meaning the schema does not convey.

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?

"Read one page of the documentation as Markdown" gives a specific verb (read), a specific unit (one page), and a specific output format. It also implicitly contrasts with snippet-level retrieval, so an agent can tell it apart from search_docs without opening either 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?

It states the condition that selects this tool ("when you need the whole page rather than a snippet") and tells the agent where valid paths come from: search_docs, llms.txt, or the sitemap. That covers both when to use it and how to obtain the required input, leaving little to inference.

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.

Resources