Skip to main content
Glama
Vault Cortex Obsidian MCP Server

Vault Cortex Obsidian MCP Server

Find Orphans

vault_find_orphans
Read-onlyIdempotent

Finds notes with no incoming links from other notes or canvases, surfacing orphans so you can link them back into your vault graph.

Instructions

Find notes with no incoming links from other notes or canvases. A note that only links to itself still counts as an orphan.

Example: vault_find_orphans({}) Example: vault_find_orphans({ exclude_folders: ["Templates", "Archive"], limit: 20 })

When to use: Vault maintenance — surfacing notes to integrate into the graph. Link an orphan by mentioning it from a relevant note with vault_patch_note. Prefer vault_get_backlinks to check the connectivity of one specific note rather than scanning the whole vault.

Parameters:

  • exclude_folders replaces the defaults — list a default yourself to keep it (when the vault has a daily notes folder, vault_get_daily_note's path starts with it). Pass [] for no exclusions. Each entry names a whole folder, subfolders included: "Projects" covers "Projects/Archive" but not "ProjectsOld/", ignoring ASCII letter case. Excluded notes are left out of the results; links from them still count as incoming links.

  • limit applies after exclusions and sorting; nothing in the response signals truncation; raise limit for more.

Behavior: Results can lag a file change by a few seconds. An empty array means no orphans were found (after exclusions), not an error.

Errors:

  • "too many excluded folders" — pass at most 994 exclude_folders entries, then retry.

  • "[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.

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": "vault_find_orphans"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMax results (default 50)
exclude_foldersNoFolder paths to exclude (e.g. Projects; default: the daily notes folder (none when Obsidian's Daily Notes folder setting is the vault root or blank), "Templates", "About Me")

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.57.1
    • changedInput schema / properties / exclude_folders / description
      Previous value: -"Folder paths to exclude (e.g. Projects; default: the daily notes folder, \"Templates\", \"About Me\")"New value: +"Folder paths to exclude (e.g. Projects; default: the daily notes folder (none when Obsidian's Daily Notes folder setting is the vault root or blank), \"Templates\", \"About Me\")"
  2. Changed1 schema field changedv0.54.16
    • addedInput schema / additionalProperties
      Added value: +false
  3. Changed1 schema field changedv0.54.13
    • changedInput schema / properties / exclude_folders / description
      Previous value: -"Folder paths to exclude (e.g. Projects; default: daily notes folder, Templates, \"About Me\")"New value: +"Folder paths to exclude (e.g. Projects; default: the daily notes folder, \"Templates\", \"About Me\")"
  4. Changed1 schema field changedv0.54.9
    • changedInput schema / properties / exclude_folders / description
      Previous value: -"Folders to exclude — replaces the defaults ([\"Daily Notes\",\"Templates\",\"About Me\"]), not merged"New value: +"Folder paths to exclude (e.g. Projects; default: daily notes folder, Templates, \"About Me\")"
  5. Changed4 schema fields changedv0.50.0
    • addedInput schema / properties / limit / default
      Added value: +50
    • 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"
  6. Changed1 schema field changedv0.22.1
    • addedInput schema / properties / exclude_folders / items / minLength
      Added value: +1
  7. Changed1 schema field changed
    • changedInput schema / properties / exclude_folders / description
      Previous value: -"Folders to exclude (default: [\"Daily Notes\",\"Templates\",\"About Me\"])"New value: +"Folders to exclude — replaces the defaults ([\"Daily Notes\",\"Templates\",\"About Me\"]), not merged"
  8. Added

TDQS

A4.9/5.0
Behavior5/5

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

Annotations already cover read-only, idempotent, non-destructive, closed-world, but the description adds substantial context beyond them: results can lag a file change by a few seconds, an empty array is not an error, excluded notes are omitted yet their links still count as incoming, and nothing in the response signals truncation. It also documents two concrete error classes and tells the agent whether the index or the call failed.

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-loaded with the core definition and clearly sectioned (examples, when to use, parameters, behavior, errors, returns). It runs long, and the two call examples add little beyond what the parameter section already says, but no section is filler given the missing output schema.

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?

With no output schema, the definition carries the full burden of describing returns and does so field by field, including fallback semantics (title from file name, folder top-level, nulls for missing dates) and sort order. Combined with documented errors and lag behavior, an agent has everything needed to call and interpret results correctly.

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?

Even at 100% schema coverage the description adds real meaning: exclude_folders REPLACES the defaults rather than appending (with a pointer to vault_get_daily_note for discovering the daily-notes default), [] means no exclusions, entries cover whole folders including subfolders with ASCII case-insensitive matching, and limit applies after exclusion and sorting. None of that is recoverable from the schema alone.

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 ('Find notes with no incoming links from other notes or canvases') and pins down an ambiguous edge case ('A note that only links to itself still counts as an orphan'). An agent can distinguish it from link-graph siblings like vault_get_backlinks 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?

Provides an explicit 'When to use' framing (vault maintenance, surfacing notes to integrate into the graph), names the follow-up action (link it via vault_patch_note), and names the alternative plus the condition selecting it ('Prefer vault_get_backlinks to check the connectivity of one specific note rather than scanning the whole vault').

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