Skip to main content
Glama

links

Read-only

Retrieve outgoing and incoming references for a note, including deeper reachable notes, to map connections and dependencies in an Obsidian-compatible vault.

Instructions

Outgoing links, backlinks and (depth > 1) reachable notes of a note.

Property links (supersedes, related, up…) carry their key as kind; body links are "body". Unresolved links have path null and resolved false.

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

Input Schema

NameRequiredDescriptionDefault
noteYesVault-relative path (with or without .md) or a note name / alias.
depthNo1-3; above 1 also lists notes reachable via outgoing links.
directionNo"out", "in" or "both".both

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.16.0

TDQS

A3.8/5.0
Behavior4/5

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

The readOnlyHint annotation already signals a safe read operation, and the description adds meaningful return semantics beyond that: property links carry a kind, body links are labeled 'body,' and unresolved links have path null and resolved false. These details are especially valuable because no output schema exists, though the description does not cover ordering or pagination behavior.

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?

The description is two short sentences with zero wasted words and a front-loaded summary of what is returned. Each sentence carries distinct, useful information about result categorization and unresolved-link status.

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

Completeness4/5

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

For a simple three-parameter read tool with no output schema, the description supplies the most important return-value semantics: link kinds, body links, and unresolved-link representation. It is nearly complete, lacking only minor details such as result ordering or pagination, which are not critical here.

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 the schema already documents note, depth, and direction thoroughly, including the default depth and direction values. The description adds some meaning about depth enabling reachable-note traversal but does not add syntax or semantic detail beyond what the schema provides, so the baseline score of 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 clearly identifies the resource as the outgoing links, backlinks, and depth-reachable notes of a note, which is a specific and understandable purpose. It does not explicitly distinguish itself from sibling tools like search or read, so it falls short of the top score.

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 implied by the phrase 'links ... of a note,' suggesting exploration of a note's connections, but the description offers no explicit guidance on when to choose this tool over alternatives. There are no exclusions or alternative recommendations, leaving the agent to infer appropriate use.

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