Skip to main content
Glama
aliasunder

Vault Cortex Obsidian MCP Server

Find Orphans

vault_find_orphans
Read-onlyIdempotent

Locate notes with no incoming links to surface disconnected orphans in your vault. Exclude folders and cap results to focus on recently modified files.

Instructions

Find notes with no incoming links from other notes — orphans are disconnected from the knowledge graph and may be forgotten or need linking. A note that only links to itself still counts as an orphan (self-links are ignored).

Example: vault_find_orphans({ exclude_folders: ["Daily Notes","Templates","About Me"] })

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 (["Daily Notes","Templates","About Me"]), it does not add to them — include the defaults yourself to keep them. Matched by folder prefix, recursing into subfolders ("Projects" also excludes "Projects/Archive").

  • limit (default 50) caps results after sorting by most-recently-modified.

Errors:

  • An empty array means no orphans were found (after exclusions), not an error.

Returns: JSON array of note metadata (path, title, tags, related, folder, type, created, modified, bytes, leading_callout?, additional_properties), sorted by most recently modified. bytes is the on-disk file size.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoMax results (default 50)
exclude_foldersNoFolders to exclude — replaces the defaults (["Daily Notes","Templates","About Me"]), not merged

Schema Changelog

Changes observed during successful MCP inspections.

  1. 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"
  2. Changed1 schema field changedv0.22.1
    • addedInput schema / properties / exclude_folders / items / minLength
      Added value: +1
  3. 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"
  4. Added

TDQS

A5/5.0
Behavior5/5

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

Annotations already declare readOnlyHint, idempotentHint, and non-destructive behavior, so the description adds valuable context beyond them: self-links are ignored, exclude_folders is matched by prefix and recurses, empty results are a valid outcome, and results are sorted by most-recently-modified. This gives the agent an accurate behavioral model without contradiction.

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?

The description is well-organized and front-loaded: it opens with the core definition, then provides an example, usage guidance, parameter details, error semantics, and return shape. Every section earns its place, and bullet-style formatting makes the information easy to scan.

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 that there is no output schema, the description fully compensates by listing the returned fields, sorting behavior, and the empty-array meaning. It also covers edge cases (self-links, folder prefix recursion) and gives actionable follow-up guidance with vault_patch_note. Nothing needed to invoke the tool correctly is missing.

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?

Although the schema already describes both parameters, the description adds significant meaning: exclude_folders replaces rather than augments the defaults, includes the exact default list, explains prefix matching and recursion, and clarifies that limit caps after sorting. This goes well beyond the schema's short descriptions.

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 uses a specific verb+resource: 'Find notes with no incoming links from other notes,' and further defines what counts as an orphan (self-links ignored). It is clearly distinguishable from siblings, especially vault_get_backlinks, by scoping to graph-wide orphan detection rather than single-note connectivity.

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?

The description explicitly states when to use the tool ('Vault maintenance — surfacing notes to integrate into the graph') and names the alternative for the one-note case ('Prefer vault_get_backlinks to check the connectivity of one specific note'). This leaves no ambiguity about tool selection.

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