Skip to main content
Glama
obsidian-memory-mcp

obsidian-memory-mcp

by BoiDG

get_linked_context

Traverse outgoing wikilinks and incoming backlinks around a note, returning compact summaries within a strict character budget for graph-aware context.

Instructions

Traverse outgoing [[wikilinks]] and incoming backlinks around a note with compact summaries.

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": {
      "note": "<note>"
    },
    "name": "get_linked_context"
  }
}

Input Schema

NameRequiredDescriptionDefault
noteYesNote stem, [[wikilink]], or path to inspect links around.
depthNoGraph traversal depth (1 or 2).
max_charsNoStrict character budget (default 6000).

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

B3.2/5.0
Behavior3/5

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

No annotations are supplied, so the description bears the full behavioral burden. It does disclose that both link directions are traversed and that results come as 'compact summaries', but it says nothing about truncation behavior, ordering, or what happens when the note is missing or has no links.

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?

A single well-formed sentence with the traversal direction front-loaded and no filler. It is efficient, though the double-bracket syntax and the trailing 'with compact summaries' make it slightly dense.

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?

An output schema exists and all three parameters are documented, so the remaining gap is guidance rather than structure. The description never explains when to prefer this over the other retrieval tools, which matters given several close siblings.

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 note, depth, and max_chars are already fully documented in the schema. The description adds no extra meaning about how depth affects output or how the character budget is applied, so it sits at the baseline.

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?

States a specific verb ('Traverse') and resource ('outgoing [[wikilinks]] and incoming backlinks around a note'), which clearly separates it from sibling lookup tools like get_note_section or search_memory. It stops short of naming any sibling explicitly, so the differentiation is inferred rather than stated.

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?

There is no when-to-use guidance, no exclusions, and no mention of how this differs from search_memory or get_note_section. An agent must guess that this is the tool for graph/link context rather than content lookup.

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