Skip to main content
Glama

Get backlinks

get_backlinks

Retrieve notes that link to a specified Obsidian note, with aliases and unresolved links resolved correctly for accurate backlink analysis.

Instructions

Notes that link to the given note, resolved by Obsidian itself so aliases and unresolved links are handled correctly.

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_backlinks"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileNoNote name, resolved like a wikilink. No folder path, no extension.
pathNoExact path from the vault root, e.g. "Projects/Roadmap.md".
countsNoInclude per-file link counts.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.5/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It does add real value by disclosing that resolution is performed by Obsidian, meaning aliases and unresolved links are handled — a non-obvious behavioral trait. However, it says nothing about behavior when the note is missing, ambiguity between file and path, or the read-only nature of the call.

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 tight sentence with zero filler, front-loading what the tool returns before the resolution caveat. Nothing could be removed without losing information.

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 annotations and no output schema, the description should say more about what comes back — a list of note names, paths, or objects, and how the counts flag changes that shape. It also leaves the all-optional parameter set unexplained. Adequate for a simple lookup, but with visible 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 description coverage is 100%, so the schema already explains file, path, and counts in detail. The description adds no parameter-level meaning beyond that, such as whether file and path are mutually exclusive or what happens when both are omitted (all three parameters are optional). Baseline 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?

Names a specific resource and direction: "Notes that link to the given note," which implicitly separates it from the outgoing-links sibling. It does not explicitly name get_outgoing_links as the inverse, so an agent must infer the contrast rather than read it.

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 directional phrasing, but there is no explicit when-to-use statement, no mention of prerequisites, and no pointer to get_outgoing_links or get_note_info as alternatives. An agent can infer the case but is given no routing rule.

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