Skip to main content
Glama
Universal Docs MCP

Universal Docs MCP

by solmonger

get_official_docs

Read-onlyIdempotent

Fetch cataloged, versioned official documentation from a specified source and version, optionally searching relevant sections to answer coding questions.

Instructions

Fetch cataloged, versioned official documentation as untrusted data, optionally searching relevant sections.

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": {
      "source_id": "<source_id>",
      "version": "<version>"
    },
    "name": "get_official_docs"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryNo
sectionNo
versionYes
source_idYes
max_tokensNo
force_refreshNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint, and destructiveHint=false. The description adds important context that the documentation is returned as untrusted data, but does not explain caching, force-refresh behavior, auth, or output shape beyond what annotations and output schema provide.

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?

The definition is a single front-loaded sentence with no filler. It puts the core action first and adds the untrusted-data constraint efficiently.

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

Completeness2/5

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

For a six-parameter tool with no parameter descriptions and no output guidance needed only because an output schema exists, the description is too thin. It covers purpose and security context but leaves most parameter meanings and sibling differentiation to inference.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% across six parameters. The description implies query and section behavior via 'searching relevant sections', but it does not explain source_id, version, max_tokens, or force_refresh, leaving required parameters and refresh behavior underspecified.

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 states a specific verb and resource: fetch cataloged, versioned official documentation. It also mentions optional section searching. It is clear, though it does not explicitly differentiate itself from siblings such as get_package_docs.

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?

The phrase 'official documentation' and 'optionally searching relevant sections' implies when to use it, but there is no explicit guidance on when to choose it over get_package_docs, get_docs_outline, or when not to use it. Usage is only implied.

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