Skip to main content
Glama

fix_broken_link

Repoint links that point to a missing note target to an existing note across an Obsidian vault. Preview changes by default with dry-run mode.

Instructions

Repoint every link to a missing target (e.g. "Old name") at an existing note, across the vault. 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": {
      "missing_target": "<missing_target>",
      "new_target": "<new_target>"
    },
    "name": "fix_broken_link"
  }
}

Input Schema

NameRequiredDescriptionDefault
vaultNoVault name, id or folder path (see list_vaults). Default: OBSIDIAN_VAULT or the vault open in Obsidian.
dry_runNo
new_targetYesNote path ("Folder/Note.md"), path without .md, note name, alias, or [[wikilink]]
missing_targetYesThe link text that no longer resolves

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/5.0
Behavior3/5

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

Annotations already declare a non-read-only, non-destructive, non-idempotent, closed-world mutation, and the description adds two useful facts: the operation is bulk ("every link ... across the vault") and it previews by default ("dry_run defaults to true"). It does not say whether the change is reversible, what happens to existing links that already resolve, or what a dry-run actually returns, so meaningful behavioral gaps remain.

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 compact sentences with the action and scope front-loaded and a concrete example inline. The trailing "dry_run defaults to true" is slightly bolted-on but carries real information, so nothing is wasted.

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

Completeness2/5

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

For a bulk, non-idempotent mutation with no output schema, the description should say what the call reports back (e.g. counts or a dry-run preview list) and what happens when no matching links exist. Neither is covered, leaving an agent unable to tell success from no-op apart from the call itself.

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?

With 75% schema coverage the baseline is 3, and the description contributes only one parameter detail beyond the schema – the default value of dry_run, which the schema leaves undocumented. The required parameters (missing_target, new_target, vault) are fully specified in the schema, so no further compensation is needed.

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 concrete verb ("Repoint") plus resource (links to a missing target) and scope ("across the vault"), with an example clarifying what a missing target looks like. It implicitly contrasts with the sibling find_broken_links (find vs. fix) without naming it, so differentiation is only partial.

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 – you run this to repair links that no longer resolve – and the mention that dry_run defaults to true signals a preview-first workflow. There is no explicit "use this instead of X" routing, no statement that find_broken_links should be run first to identify targets, and no guidance on when a repair should be skipped.

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