Skip to main content
Glama
Obsidian MCP (pgvector + Ollama, self-hosted)

Obsidian MCP (pgvector + Ollama, self-hosted)

by maxkuminov

Orphan notes

find_orphans
Read-onlyIdempotent

Find notes with no incoming and no outgoing resolved links to spot disconnected vault content. Scope the orphan scan to a folder and cap results for cleanup reviews.

Instructions

Notes with zero incoming AND zero outgoing resolved links — useful for vault hygiene ("what's disconnected?") and cleanup decisions.

Args: folder: Optional vault-relative folder prefix to scope the search (e.g. "Cards/"). limit: Maximum results (default 50, hard cap 500).

Input Schema

NameRequiredDescriptionDefault
limitNo
folderNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.8.2
    • addedInput schema / additionalProperties
      Added value: +false
  2. First observed

TDQS

A4.4/5.0
Behavior4/5

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

The annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and closed-world scope, so the safety profile is covered. The description adds the non-obvious behavioral fact of a hard 500-result cap on top of the default limit, which an agent needs when sizing queries.

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 qualifying condition is front-loaded in the first sentence, followed by a compact Args block. The Args block is docstring-style but earns its place because the schema documents nothing; no filler sentences.

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?

Given a two-optional-parameter, read-only tool with rich annotations and an output schema, the description covers definition, purpose, and both parameters adequately. Only minor gaps remain, such as folder prefix matching semantics (deep vs. immediate).

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 description coverage is 0%, so the description carries the full burden and does so: folder is defined as an optional vault-relative prefix with a concrete example ('Cards/'), and limit is given a default of 50 plus a hard cap of 500. Nothing about either parameter is left ambiguous.

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 precise verb-and-resource plus the exact qualifying condition: notes with zero incoming AND zero outgoing resolved links. That definition is what separates it from link-centric siblings like get_backlinks, get_links, and get_neighborhood, which each look at one direction only.

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?

Frames the use case explicitly (vault hygiene, 'what's disconnected?', cleanup decisions), which tells an agent when this is the right tool. It stops short of naming alternatives or stating when not to use it versus find_related or get_links.

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