Skip to main content
Glama

Get related notes

get_related_notes
Read-only

Retrieve notes related to a specified note by following links and backlinks, with configurable depth, to map connected ideas in an Obsidian vault.

Instructions

Get notes related to a specific note through links and backlinks

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": {
      "path": "<path>"
    },
    "name": "get_related_notes"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesPath to the note
vaultNoVault name. May be omitted when only one vault is configured; see list_vaults.
maxDepthNoMaximum link depth (default: 2)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changedv2.0.1
    • addedInput schema / $schema
      Added value: +"http://json-schema.org/draft-07/schema#"
    • addedInput schema / properties / maxDepth / exclusiveMinimum
      Added value: +0
    • addedInput schema / properties / maxDepth / maximum
      Added value: +9007199254740991
    • changedInput schema / properties / maxDepth / type
      Previous value: -"number"New value: +"integer"
    • addedInput schema / properties / path / minLength
      Added value: +1
    • changedInput schema / properties / vault / description
      Previous value: -"Vault name"New value: +"Vault name. May be omitted when only one vault is configured; see list_vaults."
    • changedInput schema / required
      Previous value: -[
      -  "vault",
      -  "path"
      -]New value: +[
      +  "path"
      +]
  2. First observedv1.0.0

TDQS

B3.3/5.0
Behavior3/5

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

The annotations already declare this as a safe read operation (readOnlyHint=true, openWorldHint=false), so the bar is lower. The description contributes one real behavioral fact — that relations come from both outgoing links and incoming backlinks — but says nothing about how traversal depth interacts with direction, ordering, or truncation of results.

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?

A single front-loaded sentence with no filler, correctly leading with the resource and following with the traversal mechanism. Nothing could be removed without losing information.

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 three-parameter read-only tool with full schema coverage, the definition covers purpose and mechanism adequately. However, with no output schema, the description should indicate what is actually returned (note paths, titles, link directions), which it omits entirely.

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 path, vault fallback behavior, and maxDepth default and bounds all documented in the schema. The description adds no additional meaning about how maxDepth affects link vs. backlink expansion or what path format is expected, so baseline 3 applies.

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 states a specific verb and resource ('Get notes related to a specific note') and names the traversal mechanism ('through links and backlinks'), which lets an agent distinguish it from plain content retrieval like get_note. There is no explicit contrast drawn against similarly adjacent siblings such as get_knowledge_graph or find_path, so it stops short of a 5.

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

Usage Guidelines2/5

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

It says what the tool does but never when to prefer it: no mention of when to use this instead of search_notes, get_knowledge_graph, or find_path for graph traversal, and no prerequisites stated. An agent must infer the selection context from the description's phrasing alone.

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