Skip to main content
Glama
markdown-vault-mcp

markdown-vault-mcp

by pvliesdonk

List Documents

list_documents
Read-onlyIdempotent

Browse notes and attachments with their paths, titles, and frontmatter—without loading body text. Filter by folder, glob pattern, or frontmatter values to locate documents for later reading or editing.

Instructions

List notes, and optionally attachments, with path, title and frontmatter but no body text.

Use search to find notes by what they say.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "list_documents"
  }
}

Input Schema

NameRequiredDescriptionDefault
folderNoOnly notes in this folder and its sub-folders, such as `"Journal"`; `""` for top-level notes only; omit for the whole vault.
filtersNoFrontmatter values to match, all of them, such as `{"tags": "craft"}`; any key works, a list field matches when it holds the value, and attachments never match. On an OKF bundle, status (draft, stable or deprecated; stable includes notes with none), stale (`"true"` or `"false"`) and trust_tier (unverified, machine-confirmed or human-reviewed) filter too, and `{"type": null}` matches notes with no type, the untyped_count of stats, never index.md or log.md.
patternNoGlob matched against paths, such as `"Journal/*.md"` or `"**/*meeting*.md"`.
include_attachmentsNoAlso list non-note files, marked kind=`"attachment"` with their mime_type. Default false.
wait_for_pending_writesNoWait for recent index writes. On timeout, answer from the current index with _meta.index_stale=true. Default false.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv7.1.0
    • changedInput schema / properties / filters / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": {
      -      "type": "string"
      -    },
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / properties / filters / description
      Previous value: -"Frontmatter values to match, all of them, such as `{\"tags\": \"craft\"}`;\nany key works, a list field matches when it holds the value, and\nattachments never match. On an OKF bundle, status (draft, stable or\ndeprecated; stable includes notes with none), stale (`\"true\"` or `\"false\"`)\nand trust_tier (unverified, machine-confirmed or human-reviewed) filter\ntoo."New value: +"Frontmatter values to match, all of them, such as `{\"tags\": \"craft\"}`;\nany key works, a list field matches when it holds the value, and\nattachments never match. On an OKF bundle, status (draft, stable or\ndeprecated; stable includes notes with none), stale (`\"true\"` or `\"false\"`)\nand trust_tier (unverified, machine-confirmed or human-reviewed) filter\ntoo, and `{\"type\": null}` matches notes with no type, the untyped_count\nof stats, never index.md or log.md."
  2. Changed4 schema fields changedv6.1.0
    • changedInput schema / properties / filters / description
      Previous value: -"Frontmatter equality filters, ANDed (e.g.\n{\"tags\": \"craft\"}); any frontmatter key works and list\nfields match by membership. On an OKF bundle three keys\ncarry OKF semantics: status (\"draft\"/\"stable\"/\"deprecated\";\n\"stable\" also matches notes without a status field), stale\n(\"true\"/\"false\" — stale_after reached), and trust_tier\n(\"unverified\"/\"machine-confirmed\"/\"human-reviewed\"). Use\n{\"status\": \"deprecated\"} or {\"stale\": \"true\"} to build\ntriage listings. Any filter excludes attachments (they\ncarry no frontmatter)."New value: +"Frontmatter values to match, all of them, such as `{\"tags\": \"craft\"}`;\nany key works, a list field matches when it holds the value, and\nattachments never match. On an OKF bundle, status (draft, stable or\ndeprecated; stable includes notes with none), stale (`\"true\"` or `\"false\"`)\nand trust_tier (unverified, machine-confirmed or human-reviewed) filter\ntoo."
    • changedInput schema / properties / folder / description
      Previous value: -"Return only documents in this folder (e.g. \"Journal\").\nUse folder=\"\" for root-level (top-level) documents only."New value: +"Only notes in this folder and its sub-folders, such as `\"Journal\"`;\n`\"\"` for top-level notes only; omit for the whole vault."
    • changedInput schema / properties / include_attachments / description
      Previous value: -"When True, also returns non-.md files (PDFs,\nimages, etc.) that match the configured allowlist. Each\nattachment entry includes kind=\"attachment\" and mime_type.\nDefault False (notes only)."New value: +"Also list non-note files, marked kind=`\"attachment\"` with\ntheir mime_type. Default false."
    • changedInput schema / properties / pattern / description
      Previous value: -"Unix glob matched against relative paths (e.g.\n\"Journal/*.md\", \"**/*meeting*.md\")."New value: +"Glob matched against paths, such as `\"Journal/*.md\"` or\n`\"**/*meeting*.md\"`."
  3. Changed2 schema fields changedv5.0.0
    • changedInput schema / properties / filters / description
      Previous value: -"Frontmatter equality filters, ANDed (e.g.\n{\"tags\": \"craft\"}); any frontmatter key works and list\nfields match by membership. On an OKF bundle three keys\ncarry OKF semantics: status (\"draft\"/\"stable\"/\"deprecated\";\n\"stable\" also matches notes without a status field), stale\n(\"true\"/\"false\" — stale_after passed), and trust_tier\n(\"unverified\"/\"machine-confirmed\"/\"human-reviewed\"). Use\n{\"status\": \"deprecated\"} or {\"stale\": \"true\"} to build\ntriage listings. Any filter excludes attachments (they\ncarry no frontmatter)."New value: +"Frontmatter equality filters, ANDed (e.g.\n{\"tags\": \"craft\"}); any frontmatter key works and list\nfields match by membership. On an OKF bundle three keys\ncarry OKF semantics: status (\"draft\"/\"stable\"/\"deprecated\";\n\"stable\" also matches notes without a status field), stale\n(\"true\"/\"false\" — stale_after reached), and trust_tier\n(\"unverified\"/\"machine-confirmed\"/\"human-reviewed\"). Use\n{\"status\": \"deprecated\"} or {\"stale\": \"true\"} to build\ntriage listings. Any filter excludes attachments (they\ncarry no frontmatter)."
    • changedInput schema / properties / wait_for_pending_writes / description
      Previous value: -"When True, wait until your recent\ndocument mutations have been applied to the\nindex before answering, so the results reflect those changes.\nUse it right after modifying notes when this read must see\nthem (e.g. right after a document mutation whose\neffect this read should reflect). Default\nFalse answers immediately from the current index — almost\nalways already up to date; inspect the response's\n``_meta.index_stale`` field to tell whether a write was still\nin flight. Bounded by a server timeout (default 60s); on\ntimeout it answers from the current index rather than waiting\nlonger."New value: +"Wait for recent index writes. On timeout, answer from the current index with _meta.index_stale=true. Default false."
  4. Changed2 schema fields changedv4.0.0
    • addedInput schema / properties / filters
      Added value: +{
      +  "anyOf": [
      +    {
      +      "additionalProperties": {
      +        "type": "string"
      +      },
      +      "type": "object"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Frontmatter equality filters, ANDed (e.g.\n{\"tags\": \"craft\"}); any frontmatter key works and list\nfields match by membership. On an OKF bundle three keys\ncarry OKF semantics: status (\"draft\"/\"stable\"/\"deprecated\";\n\"stable\" also matches notes without a status field), stale\n(\"true\"/\"false\" — stale_after passed), and trust_tier\n(\"unverified\"/\"machine-confirmed\"/\"human-reviewed\"). Use\n{\"status\": \"deprecated\"} or {\"stale\": \"true\"} to build\ntriage listings. Any filter excludes attachments (they\ncarry no frontmatter)."
      +}
    • changedInput schema / properties / wait_for_pending_writes / description
      Previous value: -"When True, wait until your recent\nwrite/edit/delete/rename operations have been applied to the\nindex before answering, so the results reflect those changes.\nUse it right after modifying notes when this read must see\nthem (e.g. right after a write/edit/delete/rename whose\neffect this read should reflect). Default\nFalse answers immediately from the current index — almost\nalways already up to date; inspect the response's\n``_meta.index_stale`` field to tell whether a write was still\nin flight. Bounded by a server timeout (default 60s); on\ntimeout it answers from the current index rather than waiting\nlonger."New value: +"When True, wait until your recent\ndocument mutations have been applied to the\nindex before answering, so the results reflect those changes.\nUse it right after modifying notes when this read must see\nthem (e.g. right after a document mutation whose\neffect this read should reflect). Default\nFalse answers immediately from the current index — almost\nalways already up to date; inspect the response's\n``_meta.index_stale`` field to tell whether a write was still\nin flight. Bounded by a server timeout (default 60s); on\ntimeout it answers from the current index rather than waiting\nlonger."
  5. First observedv3.1.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already establish readOnly, idempotent and non-destructive, so the safety profile is covered. The description adds genuinely useful behavior beyond that: results are metadata-only, body text is excluded, and attachments are opt-in. It does not mention the stale-index fallback behavior that wait_for_pending_writes can trigger, but the schema documents that.

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 short sentences, no filler. The payload-defining fact (no body text) is front-loaded and the disambiguation follows immediately.

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?

All parameters are optional, the schema is fully documented, and an output schema exists so return shape needn't be restated. The only mild gap is that nothing indicates ordering or result-volume behavior for a whole-vault listing, though no pagination parameters exist to explain.

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% and each of the five optional parameters carries a detailed description (folder scoping, frontmatter matching, glob patterns, attachment flag, pending-write waiting). The description adds essentially nothing about parameters beyond noting attachments are optional, so the baseline 3 applies.

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?

Specific verb plus resource ('List notes, and optionally attachments') and it states exactly what each entry carries (path, title, frontmatter) and what it deliberately omits (no body text). The closing sentence explicitly separates it from search, so an agent can route without opening either schema.

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 search to find notes by what they say' names a concrete alternative and the condition that selects it, which covers the most likely confusion. It stops short of stating when to prefer this tool (enumerating a folder, matching frontmatter/glob) or that aggregation/counting belongs to aggregate_documents or count_documents.

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