Skip to main content
Glama
Vault Cortex Obsidian MCP Server

Vault Cortex Obsidian MCP Server

Search by Folder

vault_search_by_folder
Read-onlyIdempotent

Browse notes in a folder with full metadata to explore a vault’s contents, optionally including subfolders and limiting to recently modified notes.

Instructions

Browse notes in a folder with full metadata.

Example: vault_search_by_folder({ folder: "Projects" }) Example: vault_search_by_folder({ folder: "About Me", recursive: false, limit: 10 }) — the folder's own notes, 10 most recent

When to use: Exploring a folder's contents with full context for vault orientation. Prefer vault_list_notes when you only need paths. Prefer vault_search when you have a text query. Use vault_get_backlinks or vault_get_outgoing_links to explore how notes in a folder connect to the rest of the vault.

Parameters:

  • folder names a whole folder, subfolders included: "Projects" covers "Projects/Archive" but not "ProjectsOld/", ignoring ASCII letter case; a trailing slash is ignored.

  • limit keeps the most recently modified notes; nothing in the response signals truncation; raise limit for more.

Behavior: Results can lag a file change by a few seconds. An empty or nonexistent folder returns an empty array, not an error. Notes in hidden (dot-prefixed) folders never appear.

Errors:

  • "[SqliteError]: …" / "[IndexIntegrityError]: …" — the index failed, not the call; the message says what to do

Returns: JSON array of note metadata: path, title (the title property; file name without .md when missing or not text), tags (the tags property; vault_update_properties edits it), body_tags (#tags in the note's text, one per spelling; vault_replace_in_note edits them; absent when none), related ([] when missing), folder (top-level, "" at the root), type (null when missing or not text), created (null when missing or not an ISO date), modified (ISO 8601 file time), bytes (on-disk size), and when present leading_callout (the opening callout, { type, title, body }) and additional_properties (every property but title, type, created, related and tags). Sorted by most recently modified, then by path.

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": {
      "folder": "<folder>"
    },
    "name": "vault_search_by_folder"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMax results (default 20)
folderYesFolder path (e.g. "Projects", "About Me")
recursiveNoInclude subfolders (default: true)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.55.4
    • changedInput schema / properties / recursive / description
      Previous value: -"Include subfolders (default: true); false lists only the folder's top level"New value: +"Include subfolders (default: true)"
  2. Changed1 schema field changedv0.54.16
    • addedInput schema / additionalProperties
      Added value: +false
  3. Changed1 schema field changedv0.54.9
    • changedInput schema / properties / recursive / description
      Previous value: -"Include subfolders (default: true)"New value: +"Include subfolders (default: true); false lists only the folder's top level"
  4. Changed5 schema fields changedv0.50.0
    • addedInput schema / properties / limit / default
      Added value: +20
    • addedInput schema / properties / limit / maximum
      Added value: +9007199254740991
    • addedInput schema / properties / limit / minimum
      Added value: +1
    • changedInput schema / properties / limit / type
      Previous value: -"number"New value: +"integer"
    • addedInput schema / properties / recursive / default
      Added value: +true
  5. Addedv0.32.1
  6. Removedv0.32.0
  7. Changed1 schema field changedv0.22.1
    • addedInput schema / properties / folder / minLength
      Added value: +1
  8. Added

TDQS

A4.9/5.0
Behavior5/5

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

Annotations already declare read-only, idempotent, non-destructive, closed-world, so the bar is lower, yet the description still adds non-obvious behavior: results can lag a file change by a few seconds, an empty or nonexistent folder returns an empty array rather than an error, hidden dot-prefixed folders never appear, and truncation is not signaled in the response. It also distinguishes index-level errors ("[SqliteError]" / "[IndexIntegrityError]") from call failures, which an agent cannot infer from 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?

Front-loads the purpose and examples, then sections When-to-use, Parameters, Behavior, Errors, and Returns — a structure an agent can parse quickly. The Returns sentence is a dense multi-clause enumeration, but with no output schema it largely earns its space; only minor tightening is possible.

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 three-parameter read tool with no output schema, the definition covers everything needed to call it correctly: folder matching semantics, limit/truncation behavior, staleness, empty-folder handling, hidden-folder exclusion, sort order, and a full field-by-field return description. Annotations supply the safety profile, so no gap remains.

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?

Schema coverage is 100%, so baseline is 3, but the description adds real meaning beyond the schema: "folder" implicitly includes subfolders ("Projects" covers "Projects/Archive" but not "ProjectsOld"), is ASCII-case-insensitive, and ignores a trailing slash. It also explains that "limit" keeps the most recently modified notes and that nothing in the response signals truncation, which is actionably more than the schema's "Max results (default 20)".

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?

States a specific verb and resource ("Browse notes in a folder with full metadata") and backs it with two concrete invocation examples. The "Prefer vault_list_notes when you only need paths" line makes the boundary against the nearest sibling explicit, so an agent can select this tool without opening any schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives an explicit when-to-use statement ("Exploring a folder's contents with full context for vault orientation") plus named alternatives for the two adjacent cases: vault_list_notes for paths only and vault_search when a text query exists. It also routes connection-exploration to vault_get_backlinks and vault_get_outgoing_links, covering when NOT to use this tool.

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