Skip to main content
Glama

midnight-fetch-docs

Read-onlyIdempotent

Retrieves current documentation pages in real-time from midnight.network. Use to get full page content or extract specific sections when you know the page path.

Instructions

🌐 LIVE FETCH: Retrieve latest documentation directly from docs.midnight.network (SSG-enabled).

Unlike midnight-search-docs which uses pre-indexed content, this tool fetches LIVE documentation pages in real-time. Use when you need: • The absolute latest content (just updated docs) • A specific page you know the path to • Full page content rather than search snippets

COMMON PATHS: • /develop/faq - Frequently asked questions • /getting-started/installation - Installation guide • /getting-started/create-mn-app - Create an MN app • /compact - Compact language reference • /develop/tutorial/building - Build guide • /develop/reference/midnight-api - API documentation • /learn/what-is-midnight - What is Midnight • /blog - Dev diaries

USAGE GUIDANCE: • Use extractSection to get only a specific heading (e.g., "Developer questions") • Prefer midnight-search-docs for discovery, use this for known pages • Content is truncated at 15KB for token efficiency

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYesDocumentation page path (e.g., '/develop/faq', '/getting-started/installation')
extractSectionNoOptional: Extract only a specific section by heading text

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
titleYesPage title
pathYesNormalized path
urlNoFull URL
contentYesExtracted page content
headingsNoPage headings/table of contents
lastUpdatedNoLast update timestamp
truncatedNoWhether content was truncated
Behavior4/5

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

Annotations already indicate readOnlyHint, idempotentHint, openWorldHint are true. Description adds useful behavioral context beyond annotations: content is truncated at 15KB for token efficiency, and it's a live fetch. No contradictions with annotations.

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?

Description is well-structured with sections (common paths, usage guidance), and front-loaded with purpose. However, the list of common paths makes it slightly verbose; could be trimmed without losing value.

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?

Given the tool's complexity, presence of output schema, and rich annotations, the description is complete. It explains function, limitations (15KB truncation), distinguishes from sibling, and provides usage context.

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%, so baseline is 3. Description adds value beyond schema by listing common paths and providing usage guidance for the extractSection parameter, which helps the agent use parameters correctly.

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 fetches live documentation from docs.midnight.network, with a specific verb ('fetch') and resource ('docs'). It distinguishes itself from the sibling midnight-search-docs by emphasizing real-time fetching vs pre-indexed content.

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?

Provides explicit guidance on when to use this tool versus midnight-search-docs (discovery vs known pages). Lists specific use cases like latest content, specific page, and full page content. Also offers usage guidance for extractSection.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Olanetsoft/midnight-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server