Skip to main content
Glama

Find shortest wikilink path between two notes

obsidian_find_path
Read-onlyIdempotent

Finds the shortest path between two notes by traversing wikilinks in an Obsidian vault. Returns the sequence of notes with optional alternative paths and embed following.

Instructions

Multi-hop graph traversal: BFS from from to to over the wikilink graph, returning the shortest path (sequence of notes connected by wikilinks) up to max_depth hops. Each step in the returned path carries the wikilink text used to traverse to it. With include_alternatives=true, returns up to 10 same-length paths so the agent can compare. Embeds (![[…]]) are followed by default; pass follow_embeds=false to skip them. Read-only.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fromNoVault-relative path of the source note
from_titleNoSource note title (alternative to `from`)
toNoVault-relative path of the destination note
to_titleNoDestination note title (alternative to `to`)
max_depthNoMaximum BFS depth (default 5). Each hop is one wikilink edge.
include_alternativesNoReturn up to 10 same-length alternative paths (default false)
follow_embedsNoTreat ![[embeds]] as graph edges (default true)
Behavior5/5

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

Annotations already indicate read-only and idempotent behavior. The description adds details: BFS algorithm, max_depth limits, follow_embeds defaulting to true, and the return of path with wikilink text and alternative paths. No contradictions.

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 concise (3 sentences), front-loaded with key information, and every sentence adds value. No wasted words.

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?

Despite no output schema, the description adequately describes the return value (path with steps and wikilink text, alternative paths). It covers key behaviors for a graph traversal tool with 7 parameters.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so baseline is 3. The description adds context beyond schema: BFS algorithm, max_depth bounds (default 5, max 10), follow_embeds explains embed handling, include_alternatives explains result limits. This adds value.

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 clearly states the tool finds the shortest wikilink path between two notes using BFS, distinguishing it from siblings like obsidian_find_similar or obsidian_get_backlinks.

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?

The description explains the BFS traversal, max_depth, and options like include_alternatives and follow_embeds, but doesn't explicitly state when to use this tool over others. However, the purpose is clear enough.

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/oomkapwn/enquire-mcp'

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