Skip to main content
Glama
Obsidian MCP Server
by Kynlos

link_graph

Retrieves graph data of note connections to analyze link structures and relationships between notes, with adjustable traversal depth.

Instructions

Get graph data of note connections

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "link_graph"
  }
}

Input Schema

NameRequiredDescriptionDefault
max_depthNoMaximum depth to traverse (default: 2)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv4.0.0

TDQS

C2.6/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full disclosure burden, and it discloses almost nothing. "Get" weakly implies a read-only operation, but the description never states the scope of the graph (entire vault or a given note), whether traversal follows links directionally, or that max_depth governs cost.

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 short sentence with no filler and the core object front-loaded. It is efficient, though efficiency here shades into under-specification rather than disciplined brevity.

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

Completeness2/5

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

With no annotations, no output schema, and an optional-only parameter set, the description is the only source of context and it omits the graph's scope and result shape. For a traversal tool whose output structure is unknown, that leaves an agent guessing before invoking it.

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?

Only one parameter exists and schema description coverage is 100%, with max_depth already documented including its default of 2. The description adds nothing about what depth means in practice (hops? backlinks only?), so the baseline 3 applies.

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

Purpose3/5

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

"Get graph data of note connections" names a verb and a resource, so the general intent is readable. But "graph data" is underspecified (nodes? edges? adjacency list?), and nothing distinguishes it from siblings like generate_graph_data or search_by_link_type, which plausibly return related data.

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 at all: no statement of whether this is for whole-vault topology versus a single note's neighborhood, and no pointer to an alternative. The agent must guess between this and generate_graph_data or calculate_note_centrality.

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

Deploy Server

Other Tools