Skip to main content
Glama

Move or Copy Files

move
Destructive

Relocate, rename, or copy files and directories within allowed roots; missing parent folders are created automatically.

Instructions

Move, rename, or copy files and directories inside the roots. Use when you need to rename, relocate, or duplicate (copy: true). Do not use to change contents (edit, patch) or remove paths (delete). Missing parents are created. An existing destination asks to confirm; declining cancels the call, skipping drops that pair. Only copies can bypass the prompt (overwrite: true). A directory move never merges into a non-empty directory; a copy merges. Pairs that share a destination or overlap another pair fail; run dependent moves separately. Returns a summary line per pair and failure, plus moves[{ from, to }], failures?, skipped?, and an undo id for undo (30 minutes) or undoUnavailable. The call is an error only if every pair failed.

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": {
      "moves": "<moves>"
    },
    "name": "move"
  }
}

Input Schema

NameRequiredDescriptionDefault
copyNoCopy and leave sources in place instead of moving
movesYesPairs run independently, with no rollback; a declined overwrite still cancels them all
overwriteNoCopy only: replace existing destinations without confirmation

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changedv2.20.0
    • changedInput schema / properties / copy / description
      Previous value: -"Copy instead of move; sources are left in place"New value: +"Copy and leave sources in place instead of moving"
    • changedInput schema / properties / moves / description
      Previous value: -"Operations to perform (max 100)"New value: +"Pairs run independently, with no rollback; a declined overwrite still cancels them all"
    • changedInput schema / properties / moves / items / properties / destination / description
      Previous value: -"Destination path"New value: +"Full target path including the new name, not a parent folder"
    • changedInput schema / properties / moves / items / properties / source / description
      Previous value: -"Path of the file or directory to move or copy"New value: +"Existing file, directory, or symlink"
    • changedInput schema / properties / overwrite / description
      Previous value: -"Copy mode only: overwrite existing destinations without confirmation"New value: +"Copy only: replace existing destinations without confirmation"
  2. Changed1 schema field changedv2.4.1
    • addedInput schema / $schema
      Added value: +"https://json-schema.org/draft/2020-12/schema"
  3. Addedv2.0.0

TDQS

A4.8/5.0
Behavior5/5

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

Goes well beyond the destructiveHint/readOnlyHint annotations: missing parents are created, an existing destination triggers a confirmation whose decline cancels the whole call, overwrite bypass applies only to copies, directory moves never merge into non-empty dirs while copies do, overlapping destination pairs fail, partial failure is not an error, and an undo id is valid for 30 minutes. That is exactly the operational context an agent needs before a destructive multi-pair call.

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

Conciseness4/5

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

Front-loaded with purpose, then usage exclusions, then behavior, then return shape. Dense and every clause carries information, though the run of semicolon-separated edge cases makes it heavier than strictly necessary.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a destructive, multi-pair tool with no output schema, the description supplies the return shape (summary line per pair, moves/failures/skipped, undo id) and the failure semantics (error only if every pair failed). Nothing material is left for the agent to infer.

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% and already defines copy, moves, overwrite and the source/destination pair semantics, so the baseline is 3. The description adds real value on interaction rules the schema cannot express — overwrite is copy-only, a declined overwrite cancels all pairs, and shared/overlapping destinations cause failure — pushing it slightly above baseline.

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?

Opens with a specific verb set and resource: 'Move, rename, or copy files and directories inside the roots.' This immediately separates it from edit/patch (contents) and delete (removal), which are named explicitly later.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives both sides of the routing decision: use for rename/relocate/duplicate with copy: true, and 'Do not use to change contents (edit, patch) or remove paths (delete)'. The named alternatives and the condition selecting each are unambiguous.

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