Skip to main content
Glama

get_backlinks

Finds all memories linking to a specified memory via [[wikilinks]], enabling you to trace incoming references across local, global, or all scopes.

Instructions

Finds all memories that link TO the given memory_id via [[wikilinks]].

Args: memory_id: Target memory ID (e.g. 'mem_a1b2c3d4'). workspace_dir: Workspace root directory. scope: Lookup scope ('local', 'global', or 'all').

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": {
      "memory_id": "<memory_id>"
    },
    "name": "get_backlinks"
  }
}

Input Schema

NameRequiredDescriptionDefault
scopeNolocal
memory_idYes
workspace_dirNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.1.2

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden. It discloses the link direction and wikilink syntax, but says nothing about ordering, whether unresolved or non-existent memory_ids error or return empty, whether traversal is transitive, or how scope affects results.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The lead sentence is tight and front-loaded, but the Args section largely restates parameter names with almost no added meaning ('workspace_dir: Workspace root directory'). It is short without being dense.

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?

An output schema exists, so return values need not be explained, and the three-parameter surface is small. The remaining gap is error/empty-result behavior and scope semantics, which for a read-only lookup tool is a moderate rather than fatal omission.

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 0%, so the Args block is the only parameter documentation, and it is thin. It does add value by giving the memory_id format example ('mem_a1b2c3d4') and by enumerating the scope values 'local', 'global', 'all' that the schema leaves as a plain string, but it never explains what those scopes mean or what workspace_dir changes.

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 specific verb (finds), resource (memories), and a precise relational direction (link TO the given memory_id via [[wikilinks]]), which clearly separates it from forward-search or read tools. No sibling is named, so it stops short of explicit differentiation.

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

Usage Guidelines2/5

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

There is no statement of when to call this instead of search_memory, recall_memory, or read_memory, and no prerequisites. The only usage signal is implicit in the phrase 'link TO', leaving the agent to infer that this is graph-traversal rather than content lookup.

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