Skip to main content
Glama
markdown-vault-mcp

markdown-vault-mcp

by pvliesdonk

Move Folder

move_folder
Destructive

Move a folder and all its contents to a new location while rewriting internal links across the vault; notes with failed link rewrites are listed.

Instructions

Move a folder and everything under it to a new location, rewriting every link into it across the vault: rename for a whole folder.

Notes whose links could not be rewritten are listed in failed_links.

Input Schema

NameRequiredDescriptionDefault
new_dirYesDestination folder, such as `"archive/2026"`; an existing folder is merged into.
old_dirYesFolder to move, such as `"drafts"`.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv6.1.0
    • changedInput schema / properties / new_dir / description
      Previous value: -"Relative target folder prefix (e.g. \"archive/2026\").\nMay be an existing folder — files merge in; a per-file name\nclash aborts the whole move."New value: +"Destination folder, such as `\"archive/2026\"`; an existing folder is\nmerged into."
    • changedInput schema / properties / old_dir / description
      Previous value: -"Relative source folder prefix (e.g. \"drafts\")."New value: +"Folder to move, such as `\"drafts\"`."
  2. Addedv4.0.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and idempotentHint=false, so the safety bar is lower, yet the description still adds real substance: it discloses that every inbound link is rewritten vault-wide and that unrepaired links surface in failed_links, i.e. partial-failure semantics. It stops short of stating irreversibility or whether a failed rewrite leaves the vault in a half-moved state.

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 tight sentences, front-loaded with the action and scope. The colon appositive 'rename for a whole folder' gives the agent a one-glance mental model, and the failed_links sentence earns its place by flagging partial failure.

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 destructive two-parameter move, the description covers scope, the vault-wide link-rewriting consequence, and failure reporting, and an output schema exists so return values need no explanation. It could go further on ordering/atomicity and what happens to a folder already at the destination, but nothing essential for a correct call is missing.

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 both parameters are already documented with examples, including the merge-into-existing-folder behavior for new_dir. The description adds no parameter-level meaning beyond the schema, so the baseline 3 applies.

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?

States a specific verb and resource (move a folder) plus the scope ('and everything under it') and the key side effect (rewriting every link into it across the vault). The gloss 'rename for a whole folder' cleanly separates it from the sibling `rename`, which acts on a single note.

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?

The phrase 'rename for a whole folder' implies the boundary against `rename` and `write`, but usage is only implied — there is no explicit 'use this instead of X when Y' or warning about when a move is inappropriate (e.g. moving into a descendant). Guidance exists but requires inference.

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