Skip to main content
Glama
mdvault-mcp
by 0xmortuex

rename_note

Rename or move a note while updating every link to it across the vault, including wikilinks, embeds, and relative Markdown links. Preview all changes first with dry-run.

Instructions

Rename or move a note and update every link to it across the vault: [[wikilinks]] (keeping #headings, ^blocks and |aliases), ![[embeds]] and relative markdown. new_name is a bare name ('New Title', stays in the same folder) or a vault path ('Archive/New Title.md', moves it). A moved note's own relative links are fixed too.

dry_run defaults to TRUE: it lists every file and link that would change and writes nothing; review it, then call again with dry_run=false. Never overwrites an existing note. Links that are ambiguous (several notes share the name) cannot be attributed safely and are reported rather than rewritten. The result reports broken links before and after.

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": {
      "note": "<note>",
      "new_name": "<new_name>"
    },
    "name": "rename_note"
  }
}

Input Schema

NameRequiredDescriptionDefault
noteYes
dry_runNo
new_nameYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.7/5.0
Behavior5/5

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

With no annotations present the description carries the full burden, and it does: it discloses the default dry-run behavior, that dry-run writes nothing, that existing notes are never overwritten, that ambiguous links are reported rather than rewritten, and what the result reports. These are exactly the mutation-safety facts an agent needs before committing a destructive link rewrite.

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?

Roughly six sentences, front-loaded with the action and its blast radius before the parameter details. Nothing is repeated from the schema and no sentence is filler; the parenthetical about heading, block and alias preservation is dense but load-bearing for anyone predicting what gets rewritten.

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?

For a mutation tool with three parameters, an output schema and no annotations, the definition covers safety, parameter forms and edge cases (ambiguity, no-overwrite, broken-link reporting). The minor gap is that it does not describe what the dry-run listing actually looks like or what happens if the target path already exists as a different note, though the no-overwrite rule covers most of that.

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

Parameters5/5

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

Schema description coverage is 0%, so the description must compensate, and it does for the parameters that carry risk: new_name is explained as either a bare name or a vault path including the .md suffix, with the side effect of each form, and dry_run's default and effect are specified. Only the `note` parameter is left implicit, and its meaning is unambiguous from the tool purpose.

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

Purpose5/5

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

The description states a specific verb pair and resource ('Rename or move a note') and immediately scopes the side effect that defines the tool: updating every wikilink, embed and markdown link across the vault. That link-rewriting scope is what separates it from edit_note or create_note, so an agent can route correctly without opening the schema.

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?

It gives an explicit two-step workflow: dry_run defaults to TRUE, review the list of affected files, then call again with dry_run=false. It also explains the two accepted new_name forms and when each applies (bare name stays put, vault path moves). It stops short of naming sibling tools or stating when an agent should prefer a plain edit instead, which keeps it at 4.

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