Skip to main content
Glama
Obsidian MCP Server
by Kynlos

cleanup_broken_references

Fixes or removes broken links in an Obsidian vault, letting you clean dangling references by either deleting them or commenting them out.

Instructions

Remove/fix broken links

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": "cleanup_broken_references"
  }
}

Input Schema

NameRequiredDescriptionDefault
fix_modeNoHow to handle broken links

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv4.0.0

TDQS

C2.4/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden, and it discloses almost nothing. It does not state that this mutates note content, whether changes are reversible, what happens to a link's surrounding text or display name, whether the operation is vault-wide and potentially bulk-destructive, or what is returned. For a write operation with zero annotation coverage this is a serious gap.

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

Conciseness2/5

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

Two words is not conciseness, it is under-specification; there is no front-loaded statement of scope, safety, or effect. The slash construction "Remove/fix" also blurs the two distinct behaviors instead of separating them.

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?

The tool is structurally simple (one optional enum parameter, no output schema, no nested objects), which lowers the bar, but as an unannotated mutating tool it still needs to say what is modified and how the two modes differ. Neither is present, so an agent could invoke it and destroy link text without warning.

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% and the single enum parameter is fully documented in the schema, so the baseline of 3 applies. The description's "Remove/fix" wording faintly echoes the remove/comment modes but adds no clarification of what "comment" does to the note versus what "remove" deletes.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

"Remove/fix broken links" names a verb pair and a resource, so the agent knows it acts on broken-link findings rather than creating or listing them. However, "fix" is undefined in the description (the schema's enum is the only clue that the options are removal or commenting out), and the sibling tool "broken_links" is never named, so the detection-vs-remediation split must be inferred.

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 guidance on when to call this versus "broken_links" (presumably the detection step), no stated precondition that links be scanned first, and no note on whether it operates on the whole vault or only previously reported links. The agent is left to guess the sequencing.

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