Skip to main content
Glama
markdown-vault-mcp

markdown-vault-mcp

by pvliesdonk

Rename Note

rename

Move a note or attachment to a new path in a Markdown vault and optionally update links in other notes so references follow it.

Instructions

Rename or move a note or attachment; with update_links, links to it in other notes follow it.

For a note, always pass update_links=True. Parent folders are created as needed.

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": {
      "old_path": "<old_path>",
      "new_path": "<new_path>"
    },
    "name": "rename"
  }
}

Input Schema

NameRequiredDescriptionDefault
if_matchNoEtag from read of old_path; still accepted when the only changes since are link rewrites the server made.
new_pathYesNew path, such as `"projects/idea.md"`, where nothing exists yet.
old_pathYesCurrent path, such as `"drafts/idea.md"` or `"assets/old.png"`.
update_linksNoRewrite links to old_path in other notes so they point at new_path; attachment references are not tracked. Default false; pass true for every note. The moved note's own links may change; read new_path for its current etag before a guarded write.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv7.1.0
    • changedInput schema / properties / update_links / description
      Previous value: -"Rewrite links to old_path in other notes so they point at\nnew_path; attachment references are not tracked. Default false; pass\ntrue for every note."New value: +"Rewrite links to old_path in other notes so they point at\nnew_path; attachment references are not tracked. Default false; pass\ntrue for every note. The moved note's own links may change; read\nnew_path for its current etag before a guarded write."
  2. Changed4 schema fields changedv6.1.0
    • changedInput schema / properties / if_match / description
      Previous value: -"Optional etag obtained from a previous 'read' call\nfor old_path. When provided, the rename only proceeds if\nthe file has not been modified since that read (optimistic\nconcurrency). Omit to rename unconditionally."New value: +"Etag from read of old_path; still accepted when the only\nchanges since are link rewrites the server made."
    • changedInput schema / properties / new_path / description
      Previous value: -"Target relative path (e.g. \"projects/idea.md\"\nor \"assets/new.png\"). Fails if new_path already exists."New value: +"New path, such as `\"projects/idea.md\"`, where nothing exists yet."
    • changedInput schema / properties / old_path / description
      Previous value: -"Current relative path (e.g. \"drafts/idea.md\"\nor \"assets/old.png\")."New value: +"Current path, such as `\"drafts/idea.md\"` or `\"assets/old.png\"`."
    • changedInput schema / properties / update_links / description
      Previous value: -"When True, all .md documents that link to old_path\nare also updated so their links point to new_path. Replacement\nis best-effort — failures are logged but do not prevent the\nrename. Default False; set True whenever renaming a .md note\n(omitting this leaves backlinks pointing to the old path)."New value: +"Rewrite links to old_path in other notes so they point at\nnew_path; attachment references are not tracked. Default false; pass\ntrue for every note."
  3. Addedv4.0.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations only declare readOnly=false, idempotent=false, destructive=false; the description adds non-obvious behavior beyond that: parent folders are auto-created as a side effect, and link rewriting propagates to other notes. It does not describe failure modes (path collisions, etag conflicts), which the schema partially covers via if_match.

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, front-loaded with the core verb and immediately followed by the one non-obvious parameter rule and the folder-creation side effect. No filler or restatement of the name.

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?

With an output schema present, return values need no explanation, and the description covers the mutation's side effects and the key parameter rule. It omits what happens on etag mismatch or when the destination path already exists, which are the remaining gaps for a 4-parameter mutating tool.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, but the description adds genuine meaning: update_links causes links in other notes to follow the target, and the 'always True for a note' rule is a semantic default override the schema does not express. It adds nothing for old_path/new_path, which the schema already documents well.

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 and resource pair ('Rename or move a note or attachment') plus the link-following side effect, so the agent knows exactly what operation this performs. It stops short of differentiating itself from plausible siblings such as move_folder or edit, leaving the note-vs-folder boundary implicit.

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?

Gives an explicit conditional directive: 'For a note, always pass update_links=True,' which is a real decision rule an agent can act on. It does not name an alternative tool or state when not to use this one, so it falls short of full routing guidance.

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