Skip to main content
Glama

get_link_graph

Read-onlyIdempotent

Export a vault's link graph as JSON, Mermaid, or DOT to visualize connections between notes, scoped by vault, folder, or tag.

Instructions

Export the link graph (nodes + edges) for the vault, a folder or a tag — as JSON, a Mermaid diagram, or DOT.

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": "get_link_graph"
  }
}

Input Schema

NameRequiredDescriptionDefault
tagNo
vaultNoVault name, id or folder path (see list_vaults). Default: OBSIDIAN_VAULT or the vault open in Obsidian.
folderNoLimit to this folder (vault-relative)
formatNo
max_nodesNoMax results (default 200)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, closed-world), so the bar is lower. The description adds genuinely useful behavior — output content is nodes + edges and can be rendered as JSON, Mermaid or DOT — but it stays silent on a significant trait: results are capped by max_nodes (default 200 of up to 10000), so partial graphs are possible and truncation is never mentioned.

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 sentence, front-loaded with the action and resource, then scope options, then formats. Every clause earns its place and there is no filler.

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?

With no output schema, the description must carry the return-value burden, and it only says "nodes + edges" without indicating what properties a node or edge carries. Combined with the unmentioned truncation cap in a 5-parameter, 0-required tool, the definition is adequate but leaves meaningful gaps.

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 coverage is 60%, so the baseline is 3. The description enumerates the three scoping dimensions and the three formats, matching the enum, but adds nothing about max_nodes or whether vault/folder/tag are intersected or mutually exclusive — the schema doesn't clarify that either.

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+resource pair ("Export the link graph") and defines what is exported (nodes + edges) plus the available serializations. It does not explicitly distinguish itself from siblings like get_graph_neighbors or get_backlinks, so an agent must infer that this is the whole-graph export rather than a local traversal.

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 context is implied by the enumeration of scope options (vault, folder, tag) and formats, which tells the agent this is the bulk-export tool. However, there is no explicit when-to-use / when-not-to-use statement and no routing to a narrower sibling for neighborhood queries.

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