Skip to main content
Glama
contextqmd-mcp

contextqmd-mcp

by darkamenosa

Search Docs

search_docs
Read-only

Search installed local library documentation by keyword or semantic query to return matching page metadata and snippets; filter by library and version, then use get_doc for full content.

Instructions

Search installed documentation locally and return matching page metadata with snippets. Use get_doc to read full page content. This tool never fetches from the network. If a requested library/version is not installed, it returns NOT_INSTALLED.

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": {
      "query": "<query>"
    },
    "name": "search_docs"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNoSearch mode: fts (keyword), vector (semantic), hybrid (combined + reranking), auto (smart routing). Default: auto
queryYesSearch query
libraryNoFilter to specific library slug
versionNoFilter to specific version
max_resultsNoMax results to return (default: 5)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.9

TDQS

A4.5/5.0
Behavior4/5

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

Annotations only declare readOnlyHint=true; the description adds substantive behavior beyond that: retrieval is local-only with no network access, results are page metadata plus snippets rather than full content, and missing library/version yields a NOT_INSTALLED sentinel. The one remaining gap is the shape of results (pagination, ordering, snippet length), which matters somewhat given there is no output schema.

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 purpose, then the sibling routing, then the offline and error guarantees. Every sentence carries distinct information with no repetition of the name or title.

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?

For a five-parameter search tool with full schema coverage and no output schema, the description covers what it returns (metadata plus snippets), where it reads from (local only), the primary alternative, and the key error case. Nothing an agent needs to call it correctly is missing.

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, but the description adds meaning the schema does not: the library/version filters can fail against installed state and produce NOT_INSTALLED. That tells the agent how those filter parameters behave in a failure mode, which the enum-free schema text does not.

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 opening sentence gives a specific verb (search), a specific resource (installed documentation), and a precise scope (locally, page metadata with snippets). It is immediately distinguishable from get_doc, which the description names as the full-content reader.

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?

The description explicitly routes the agent: use this tool to search, use get_doc to read full page content. That is a clear alternative with its selection condition. It stops short of stating when-not to use it (e.g., when you already know the exact page) or how the mode choice affects results.

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