Skip to main content
Glama
pvliesdonk

markdown-vault-mcp

by pvliesdonk

Search Vault

search
Read-onlyIdempotent

Find documents in a markdown vault using keyword, semantic, or hybrid search. Filter by folder and frontmatter fields, and get result snippets.

Instructions

Find documents matching a query using full-text or semantic search.

Search the vault. Default mode is "keyword" (FTS5/BM25). Pass mode="hybrid" when 'stats' shows semantic_search_available=True — hybrid fuses keyword and vector results for best quality. Use mode="semantic" for pure vector similarity.

The 'content' field in each result is a snippet by default, not the full document. Use read(path, section=heading) to retrieve the full text of a specific section.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modeNo"keyword" uses FTS5/BM25 for exact terms. "semantic" uses vector similarity (requires embeddings). "hybrid" fuses both via reciprocal rank fusion — best quality when available.keyword
limitNoMaximum results to return (default 10).
queryYesNatural language or keyword query string.
folderNoRestrict to documents under this folder path (e.g. "Journal"). Must match a value from 'list_folders'. Use folder="" for root-level (top-level) documents only.
filtersNoFilter by indexed frontmatter field values, e.g. {"cluster": "craft", "tags": "pacing"}. Only fields listed in indexed_frontmatter_fields (see 'stats') can be filtered. Multiple filters are ANDed. For list fields (e.g. tags), this checks membership — {"tags": "pacing"} matches any document where "pacing" appears in the tags list.
snippet_wordsNoWidth of the snippet window in words. Omit to use the server default. Set to 0 to return full chunk content. Use read(path, section=heading) for full section recovery.
chunks_per_fileNoMaximum number of sections to return per file (default 2). Set to 1 to get only the top-ranked section per file. Must be >= 1.
wait_for_pending_writesNoWhen True, wait until your recent write/edit/delete/rename operations have been applied to the index before answering, so the results reflect those changes. Use it right after modifying notes when this read must see them (e.g. right after a write/edit/delete/rename whose effect this read should reflect). Default False answers immediately from the current index — almost always already up to date; inspect the response's ``_meta.index_stale`` field to tell whether a write was still in flight. Bounded by a server timeout (default 60s); on timeout it answers from the current index rather than waiting longer.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior5/5

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

Despite annotations already indicating readOnlyHint and idempotentHint, the description discloses important behavioral details: the 'content' field is a snippet, not the full document; how folder restriction works; that filters are ANDed; the effect of snippet_words and chunks_per_file; and the wait_for_pending_writes mechanism. 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?

The description is well-structured with clear paragraphs for purpose, mode selection, and snippet limitation. It front-loads the essential information. While it is somewhat long, every sentence adds value. Minor redundancy exists (e.g., default mode stated twice), but overall it is efficient for a complex tool.

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 (8 parameters, multiple modes, output schema exists), the description comprehensively covers all critical aspects: mode selection logic, folder filtering, filter semantics, snippet control, chunk limits, and write-aware waiting. It references complementary tools (stats, list_folders, read) and notes that output schema documents return values. Nothing essential is omitted.

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

Parameters5/5

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

With 100% schema coverage, baseline is 3, but the description adds significant value beyond the schema. For 'mode', it explains when to use each value. For 'folder', it clarifies that it must match a value from 'list_folders' and how to target root. For 'filters', it explains ANDing and list field membership. For 'snippet_words', it explains the default and setting 0. 'wait_for_pending_writes' gets a thorough explanation. This greatly aids correct parameter selection.

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's purpose: 'Find documents matching a query using full-text or semantic search.' It specifies the default mode (keyword) and how to use alternative modes (hybrid, semantic). It distinguishes itself from sibling tools like 'read' (by noting the snippet limitation) and 'list_documents' (by its search focus).

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 provides explicit guidance on when to use each search mode: default 'keyword', 'hybrid' when semantic_search_available=True, and 'semantic' for pure vector similarity. It also advises using 'wait_for_pending_writes' right after modifications. However, it does not explicitly list alternative tools for different use cases (e.g., when to use 'get_similar' instead).

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/pvliesdonk/markdown-vault-mcp'

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