Skip to main content
Glama
contextqmd-mcp

contextqmd-mcp

by darkamenosa

Get Doc

get_doc
Read-only

Reads a bounded excerpt from a locally installed markdown page by document path or page UID, using line ranges or a context window around a target line.

Instructions

Read a bounded slice from a locally installed markdown page. Use doc_path or page_uid, and either from_line/max_lines or around_line/before/after.

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": {
      "library": "<library>"
    },
    "name": "get_doc"
  }
}

Input Schema

NameRequiredDescriptionDefault
afterNoLines to include after around_line (default: 60)
beforeNoLines to include before around_line (default: 30)
libraryYesLibrary slug
versionNoVersion (defaults to latest installed)
doc_pathNoCanonical markdown doc path (for example reference/react/useRef.md)
page_uidNoInternal page UID fallback
from_lineNo1-based inclusive line number to start from
max_linesNoMaximum lines to return (default: 60)
around_lineNoAnchor line for a bounded context window
line_numbersNoInclude line numbers in the returned excerpt text

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.9

TDQS

A3.7/5.0
Behavior3/5

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

The readOnlyHint annotation already establishes that this is a safe read operation. The description adds that access is to a locally installed markdown page and is bounded by line ranges, but it does not explain return shape, missing-page behavior, or truncation behavior. With annotations covering safety, this is adequate but not rich.

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 description is two sentences, front-loaded with purpose and followed by compact parameter-selection guidance. There is no redundant or wasted wording.

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

Completeness4/5

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

For a 10-parameter read-only local document tool with complete schema descriptions and readOnlyHint, the description covers the core selection modes an agent needs. It does not explicitly describe the returned excerpt, which is a minor gap because there is no output schema, but 'bounded slice' and the line-window parameters make the return behavior inferable.

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 the baseline is 3. The description adds useful grouping semantics not directly encoded in the schema: use doc_path or page_uid, and use either from_line/max_lines or around_line/before/after.

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: 'Read a bounded slice from a locally installed markdown page.' It is clear what the tool does, but it does not explicitly distinguish itself from sibling retrieval tools such as search_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?

It explains how to invoke the tool by choosing doc_path or page_uid and one of the line-window modes, but it does not say when to use this tool instead of search_docs, list_installed_docs, or other siblings. The usage context is implied by the resource, not explicitly routed.

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