Skip to main content
Glama
mcp-synology

mcp-synology

copy_files

Destructive

Copies files or folders into an existing destination folder while keeping the sources in place; same-name items are skipped and listed unless overwrite is enabled.

Instructions

Copy files or folders into a destination folder; a folder is copied with everything in it, and the sources stay in place. To move instead, use move_files. dest_folder must already exist; it isn't created. With overwrite=false (default), items whose name is already at the destination are skipped and listed, and the rest are copied. With overwrite=true, two sources that would replace each other are refused, and a replaced file may not be in the recycle bin. If any source is missing, nothing is copied. A long copy keeps running on the NAS and returns a handle for file_task. While this user's running task is landing the same name there, the call is refused if either one replaces. That can miss another account's task or a start at the same moment from another server process, and DSM's tasks if its task list fails; overwrite=false never replaces.

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": {
      "paths": "<paths>",
      "dest_folder": "<dest_folder>"
    },
    "name": "copy_files"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathsYesFiles or folders to copy (`/video/Downloads/clip.mkv`).
overwriteNoReplace items already at the destination; a replaced file may not be in the recycle bin (default false: they're skipped and listed).
dest_folderYesThe existing folder to copy into (`/video/Archive`).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.10.1
    • changedInput schema / properties / overwrite / description
      Previous value: -"Replace items already at the destination (default false: they're skipped and listed)."New value: +"Replace items already at the destination; a replaced file may not be in the recycle bin (default false: they're skipped and listed)."
  2. Changed4 schema fields changedv0.9.1
    • addedInput schema / properties / dest_folder / description
      Added value: +"The existing folder to copy into (`/video/Archive`)."
    • addedInput schema / properties / overwrite / description
      Added value: +"Replace items already at the destination (default false: they're skipped and listed)."
    • addedInput schema / properties / paths / description
      Added value: +"Files or folders to copy (`/video/Downloads/clip.mkv`)."
    • changedOutput schema / (root)
      Previous value: -{
      -  "properties": {
      -    "result": {
      -      "title": "Result",
      -      "type": "string"
      -    }
      -  },
      -  "required": [
      -    "result"
      -  ],
      -  "title": "tool_copy_filesOutput",
      -  "type": "object"
      -}New value: +null
  3. Addedv0.7.1

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only flag destructive=true; the description goes far beyond that by explaining that overwritten files may not be in the recycle bin, that a long copy continues on the NAS and returns a handle for file_task, and that the overwrite=true collision check has real blind spots (other accounts, simultaneous starts, failed DSM task list). That is substantial behavioral context an agent cannot get from the annotation.

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

Conciseness3/5

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

The opening sentences are front-loaded and efficient, but the closing passage on concurrent task detection ('That can miss another account's task or a start at the same moment from another server process, and DSM's tasks if its task list fails') is dense and hard to parse on first read. The content earns its place, but the ordering and sentence shape could be tightened considerably.

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 mutating file-operation tool with no output schema, the definition covers preconditions, defaults, partial-failure behavior, async continuation, and concurrency limits. The only real gap is the shape of the returned result beyond 'skipped and listed' and the task handle, which an agent would need in order to parse the response.

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; the description adds genuine meaning on top, notably the existence requirement for dest_folder and the asymmetric failure modes of overwrite=false versus overwrite=true. It doesn't add path syntax or examples beyond what the schema already shows, so it stops short of a 5.

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 first clause states a specific verb and resource ('Copy files or folders into a destination folder') and immediately adds the key scope detail that sources stay in place and folders copy recursively. It also names the sibling move_files as the contrasting operation, so the agent can distinguish the two without reading either schema.

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?

It gives an explicit alternative ('To move instead, use move_files') plus the condition for each mode: overwrite=false to skip existing names, overwrite=true to replace. Preconditions are spelled out ('dest_folder must already exist; it isn't created') and the all-or-nothing failure case ('if any source is missing, nothing is copied') is stated.

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