Skip to main content
Glama

get_backlinks

Find every note that links to a given note through [[wikilinks]], returning ids, titles, folder paths and link snippets so you can map incoming references and trace how ideas connect.

Instructions

Notes that link to this one via [[Title]] wikilinks, by id or title. Each comes back as id/title/folder_path plus a snippet around the link; include_content:true returns their full text instead, which is expensive when many notes link here — prefer get_note on the ids you actually want. offset and limit count notes, not characters.

Input Schema

NameRequiredDescriptionDefault
idNoUUID of the note whose incoming links you want
limitNoLinking notes per page. Several links from the same note count as one
titleNoAlternative to id; resolved like get_note (exact, then prefix, then substring)
offsetNoSkip this many linking notes — pass back next_offset from the previous page
include_contentNoReturn each linking note's full text instead of a snippet around the link. Expensive when many notes link here

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changedv1.3.1
    • addedInput schema / anyOf
      Added value: +[
      +  {
      +    "required": [
      +      "id"
      +    ]
      +  },
      +  {
      +    "required": [
      +      "title"
      +    ]
      +  }
      +]
    • addedInput schema / properties / id / description
      Added value: +"UUID of the note whose incoming links you want"
    • removedInput schema / properties / id / pattern
      Removed value: -"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
    • addedInput schema / properties / include_content / description
      Added value: +"Return each linking note's full text instead of a snippet around the link. Expensive when many notes link here"
    • addedInput schema / properties / limit / description
      Added value: +"Linking notes per page. Several links from the same note count as one"
    • addedInput schema / properties / offset / description
      Added value: +"Skip this many linking notes — pass back next_offset from the previous page"
    • addedInput schema / properties / title / description
      Added value: +"Alternative to id; resolved like get_note (exact, then prefix, then substring)"
  2. First observedv1.3.0

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses the return shape (id/title/folder_path plus a snippet), the cost profile of include_content, and that pagination counts notes rather than characters. Missing are ordering guarantees and permission prerequisites, but the mutation-free nature is clear from the read verb.

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?

Two dense sentences, front-loaded with the identity of the tool before the cost caveat and pagination note. Nothing is redundant, though the em-dash clause makes the second sentence long enough to slow scanning slightly.

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 five-parameter read tool with no output schema and no annotations, the description supplies what an agent actually needs: what comes back, what the expensive flag does, and how paging units behave. The schema already covers type and range constraints, so nothing critical is left unstated.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description earns extra by clarifying that offset and limit count notes, not characters, and that include_content swaps snippets for full text. The id-vs-title alternative is restated with the actual resolution order being left to the schema, which is fine.

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?

States a precise verb+resource: notes that link to this one via [[Title]] wikilinks, resolved by id or title. It is specific about the linking mechanism (wikilinks), which distinguishes it from a generic search. It never names the closest sibling, get_neighbors, so an agent must infer the boundary itself.

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?

Gives a concrete when-not plus an alternative: include_content:true is expensive when many notes link here, so prefer get_note on the ids you actually want. That is actionable routing guidance. It does not address when to use this versus get_neighbors or get_graph, which is the one remaining selection ambiguity.

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