Skip to main content
Glama
obsidian-mcp

obsidian-mcp

by LWaetzig

Get Backlinks

obsidian_get_backlinks
Read-onlyIdempotent

Finds all notes that link to a given note using Obsidian wiki-link syntax, including aliased and folder paths, with pagination and surrounding context.

Instructions

Find all notes that link to a given note using Obsidian wiki-link syntax.

Matches [[note-name]], [[folder/note-name]], and aliased links [[note|alias]]. The search is case-insensitive. The target note itself is excluded from results.

Args:

  • path (string): Vault-relative path of the note to find backlinks for

  • limit (number): Max results per page, 1–100 (default: 20)

  • offset (number): Pagination offset (default: 0)

  • response_format: 'markdown' | 'json' (default: 'markdown')

Returns: Paginated list of notes containing wiki-links to the target note, with the matching line and surrounding context.

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

Input Schema

NameRequiredDescriptionDefault
pathYesVault-relative path of the target note
limitNoMaximum number of results to return (1–100, default 20)
offsetNoNumber of results to skip for pagination (default 0)
response_formatNoOutput format: 'markdown' for human-readable, 'json' for machine-readablemarkdown

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.1

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and closed-world, so the safety profile is covered. The description adds genuinely useful behavior beyond that: case-insensitive matching, alias-form links being counted, and the target note being excluded from its own backlinks. It does not cover ordering of results or performance on large vaults.

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?

Front-loaded purpose, then matching semantics, then args and returns -- a clean structure with no filler prose. The Args section is partly redundant with a fully documented schema, which keeps it out of 5 territory.

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

Completeness5/5

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

For a four-parameter read tool with no output schema, the description covers purpose, matching behavior, parameter meaning, and return shape including the matched line and surrounding context. Nothing an agent needs in order to call it correctly is missing.

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%, and the Args block in the description largely restates the schema text (ranges, defaults, enum values) rather than adding meaning. The only added signal is that limit/offset paginate a list of matching notes, which is inferable from the schema. Baseline 3 is appropriate.

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

Purpose5/5

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

The opening sentence names a specific verb and resource -- find notes that link to a given note -- and pins the mechanism (Obsidian wiki-link syntax). That is clearly distinct from siblings like obsidian_search_notes or obsidian_read_note, so an agent can route correctly without opening the schema.

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

Usage Guidelines4/5

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

Usage context is clear: this is the tool for reverse-link lookup, and the matching rules define exactly what counts as a hit. The description does not name an alternative or state when-not to use it (e.g. when full-text search is the better choice), so it stops short of a 5.

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