Skip to main content
Glama
AdrianV101

obsidian-pkm

by AdrianV101

vault_neighborhood

Traverse the neighborhood of a note via wikilinks, seeing connected notes grouped by distance to find clusters and related context.

Instructions

Explore the graph neighborhood around a note by traversing wikilinks. Returns notes grouped by hop distance from the starting note, with frontmatter metadata for each node. Useful for understanding clusters, finding related context, and discovering connections. Paths in this tool's output are formatted as markdown links [vault-relative-path.md](obsidian://...) so users can Cmd/Ctrl-click to open in Obsidian. Preserve the link form when relaying paths to the user; pass only the bracket text (e.g. 01-Projects/Foo/note.md) to other vault tools' path arguments, never the full markdown link.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYesPath to the starting note (supports short names, e.g. 'devlog')
depthNoTraversal depth — how many hops to follow (default: 2, max: 5)
directionNoLink direction to follow (default: both)both
semantic_limitNoMax semantic results to include (default: 5)
include_semanticNoAppend semantically related but unlinked notes (requires VAULT_PKM_OPENAI_KEY, default: false)
Behavior4/5

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

With no annotations provided, the description carries the full burden of disclosing behavior. It clearly states the output structure (grouped by hop distance, frontmatter metadata) and a significant output formatting quirk (paths as markdown links with obsidian:// URLs). This adds substantial behavioral context beyond the schema, though it doesn't cover failure modes or performance characteristics.

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 a single, well-organized paragraph of three sentences, each serving a distinct purpose: stating what the tool does, articulating its value, and providing essential formatting usage. No filler, and the critical markdown-link caveat earns its place.

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 no output schema, the description adequately explains the return format (grouped by hop distance, with frontmatter metadata) and the special link formatting. It also includes use-case context and integration guidance for other vault tools. Minor gaps include not specifying what happens for missing paths or very large result sets, but that's beyond the essential context for a read-only exploration tool.

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%, so every parameter is already well-documented in the input schema. The description adds no further parameter-specific detail; the only related note (passing bracket text to other tools) concerns output handling rather than input semantics. Baseline 3 is appropriate.

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 opens with a specific verb and resource: 'Explore the graph neighborhood around a note by traversing wikilinks.' It further differentiates the tool by stating output is 'grouped by hop distance from the starting note' with frontmatter metadata, which distinguishes it from sibling tools like vault_links or vault_search.

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?

Provides explicit use-case guidance: 'Useful for understanding clusters, finding related context, and discovering connections.' It also includes a critical practical instruction about preserving markdown link formatting when relaying paths to users and passing only bracket text to other tools. However, it doesn't explicitly name when not to use this tool or compare directly with sibling alternatives.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/AdrianV101/obsidian-pkm-plugin'

If you have feedback or need assistance with the MCP directory API, please join our Discord server