Skip to main content
Glama

move_doc

Move or rename a document, file, or folder and rewrite every [[wikilink]] pointing at it in a single attributed commit. Use dry_run=true to preview the links a move would rewrite.

Instructions

Move or rename a document, a file (a PDF, an image) or a folder with everything in it, rewriting the [[wikilinks]] that point at what moved, in one commit attributed to you. Refuses if the target exists. dry_run=true lists the links a document move would rewrite.

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": {
      "from": "<from>",
      "to": "<to>",
      "ai": "<ai>"
    },
    "name": "move_doc"
  }
}

Input Schema

NameRequiredDescriptionDefault
aiYesYour AI family in lowercase (claude, chatgpt, gemini), not the model name. Attributes the change.
toYesNew path (same folder, new name: a rename; for a folder, its new path).
fromYesCurrent path, e.g. notes/draft.md, or a folder, e.g. projects/old.
dry_runNoReport what it would rewrite; move nothing.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.7.0

TDQS

A4.4/5.0
Behavior4/5

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

Goes well beyond the annotations by disclosing the atomic one-commit behavior, the wikilink rewriting across other documents, the refusal on existing targets, and the attribution requirement via the 'ai' parameter. It does not state what the response returns (new path, commit reference, list of rewritten links) or what happens to backlinks, so it is rich but not exhaustive.

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?

Three compact sentences, front-loaded with the core action and scope, then preconditions, then the preview mode. No filler and no repetition of schema text.

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 no output schema, it covers scope, safety precondition, attribution, and dry-run behavior adequately. The remaining gap is the result shape after a successful move, which the agent must discover by calling the 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?

With 100% schema coverage the baseline is 3, but the description adds real meaning: dry_run is scoped to listing the links a document move would rewrite, letting the agent know the preview is partial for file and folder moves. The 'ai' attribution purpose is also reinforced in prose ('in one commit attributed to you').

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 set (move/rename) plus the exact resource scope (document, file such as PDF or image, or folder with contents) and the defining side effect of rewriting [[wikilinks]] in one commit. That side-effect detail separates it from edit_doc, create_doc, and delete_doc without needing to name them.

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 a clear precondition ('Refuses if the target exists') and a dry_run path for previewing, which tells the agent how to call it safely. It does not name an alternative for cases the tool can't handle (e.g., copying or creating a new document), so it stops short of explicit when-not guidance.

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