Skip to main content
Glama

link_unlinked_mentions

Convert unlinked mentions of an Obsidian note into [[links]], defaulting to the first mention per note; dry runs are enabled by default to preview changes.

Instructions

Turn unlinked mentions of a note into [[links]] (first mention per note by default). dry_run defaults to true.

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": {
      "file": "<file>"
    },
    "name": "link_unlinked_mentions"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileYesNote path ("Folder/Note.md"), path without .md, note name, alias, or [[wikilink]]
vaultNoVault name, id or folder path (see list_vaults). Default: OBSIDIAN_VAULT or the vault open in Obsidian.
dry_runNo
only_inNoLimit to these notes
all_occurrencesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations only declare that this is a non-read-only, non-destructive mutation. The description adds real behavioral detail beyond that: only the first mention per note is linked by default, and dry_run is on by default, which is a meaningful safety disclosure for a vault-mutating tool. It still omits reversibility and what happens on notes with no mentions.

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?

Two short sentences, both loaded with information, and the core action is front-loaded before the defaults. Nothing is wasted and nothing is buried.

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?

For a 5-parameter mutation tool on a note vault with no output schema, the definition is minimal but workable. It leaves open the scope question (are mentions searched vault-wide or only within only_in?) and says nothing about return values or no-match behavior, which the agent needs before applying changes.

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 60%, with dry_run and all_occurrences carrying no schema descriptions at all. The description partially compensates by stating dry_run's default and that only the first mention per note is linked by default, which implicitly defines all_occurrences=false. However, it never explains what all_occurrences=true does, so the coverage gap is only half closed.

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 gives a specific verb and resource: turning unlinked mentions of a note into [[links]]. An agent can immediately tell this is the write counterpart of get_unlinked_mentions. It stops short of naming that sibling explicitly, so it earns a 4 rather than a 5.

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 only implied: 'dry_run defaults to true' hints at a preview-then-apply workflow, and the write framing implies you would call get_unlinked_mentions first. There is no explicit statement of when to use this versus inspecting mentions, and no exclusions or prerequisites.

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

Deploy Server

Other Tools