Skip to main content
Glama
mcp-server-docs-search

mcp-server-docs-search

search_docs

Searches local project documentation by keyword or natural-language question, returning matching sections with file paths, headings, line numbers, and snippets to answer project questions.

Instructions

Search the project's local documentation (Markdown, MDX, reStructuredText, text) by keywords. Returns the best-matching sections with path, heading, line numbers and a snippet. Use before answering questions about how this project works.

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
queryYesKeywords or a natural-language question
top_kNoNumber of results (default 5)
path_globNoOnly search docs matching this glob, e.g. 'guides/*'

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden and does disclose the return shape (path, heading, line numbers, snippet), which is genuinely useful. It does not mention whether the search is read-only-safe in terms of scope limits, what happens with zero matches, or whether results are ranked/paginated beyond top_k.

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?

Two sentences, front-loaded with the core action and return format, followed by the usage trigger. No filler or redundancy.

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?

This is a simple three-parameter read tool with no output schema, and the description covers both what it searches and what it returns, which is most of what an agent needs. Minor gaps remain around ranking semantics and no-match behavior, but nothing blocks correct invocation.

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

Parameters3/5

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

Schema description coverage is 100%: query, top_k with min/max and default, and path_glob with a concrete glob example are all documented in the schema. The description adds no syntax, ranking, or matching-behavior detail beyond that, so the baseline of 3 applies.

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 ("Search the project's local documentation") and even enumerates supported file formats, so the agent knows exactly what corpus is queried. It does not explicitly contrast itself with list_docs or read_doc, so sibling differentiation rests on the tool names rather than the text.

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?

"Use before answering questions about how this project works" gives a clear triggering condition, which is stronger than most definitions. It stops short of stating when not to use it or naming list_docs/read_doc as the alternative for enumerating or reading a whole document.

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

Deploy Server

Other Tools