Skip to main content
Glama

trace_path

Finds the shortest wikilink path connecting two notes in your Obsidian vault, revealing how any two ideas are linked through the note graph.

Instructions

Find the shortest wikilink path connecting two notes (like six degrees of separation).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "from": "<from>",
      "to": "<to>"
    },
    "name": "trace_path"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYesVault-relative path or note stem to find.
fromYesVault-relative path or note stem to start from.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.0.0

TDQS

B3.3/5.0
Behavior2/5

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

No annotations exist, so the description carries the full behavioral burden, and it discloses only that the path is 'shortest' — it says nothing about what happens when no path exists, whether wikilinks are treated as directed or undirected, how ties between equally short paths are broken, or what the response contains. For a graph query with no output schema and no annotations, these omissions are significant.

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?

One tightly written sentence that front-loads the verb and resource, with the parenthetical analogy adding real clarification at negligible length cost. Nothing is wasted and nothing is buried.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a two-parameter read-only query this covers the core purpose, but with no annotations and no output schema the definition should at least sketch the shape of the result (ordered list of notes? links?) and the no-path case. An agent could select it but would have to call it blind regarding the response.

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%, with both 'from' and 'to' documented as vault-relative path or note stem, so the baseline of 3 applies. The description adds no further meaning about parameter interaction, ordering, or whether the endpoints are inclusive.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific verb ('Find') and a precise resource ('the shortest wikilink path connecting two notes'), which is clearly distinct from single-note link tools in the sibling list such as get_backlinks or get_outgoing_links. The 'six degrees of separation' analogy reinforces the graph-traversal concept, though it never names an alternative tool in so many words.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is only implied: an agent can infer you call this when you want to know how two notes are connected, but there is no explicit 'use this when...' statement, no mention of when a simpler single-hop tool would suffice, and no stated prerequisites (e.g., both notes must exist in the vault).

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