Skip to main content
Glama
GeminiDesk MCP
by LZ7TOP

Copy File or Directory

fs_copy

Copies a file or recursively copies an entire folder to a destination path, with optional overwrite when the target already exists.

Instructions

复制文件或递归复制整个文件夹到目标路径。

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": {
      "source": "<source>",
      "destination": "<destination>"
    },
    "name": "fs_copy"
  }
}

Input Schema

NameRequiredDescriptionDefault
sourceYes源路径
overwriteNo目标已存在时是否覆盖
destinationYes目标路径

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations were provided, so the description carries the full behavioral burden and covers only one trait: recursion into directories. It says nothing about what happens when the destination already exists (the overwrite flag's default of false is only implicit in the schema), whether parent directories are created, whether symlinks or metadata are preserved, or whether partial copies are rolled back.

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?

A single front-loaded sentence with no wasted words. It is economically phrased, but it is also the reason the definition is thin — there is room to add the missing behavioral context without bloat.

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

Completeness3/5

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

For a destructive-capable filesystem mutation with no annotations and no output schema, the definition is under-specified: overwrite semantics, parent-directory creation, and failure behavior are left to inference. The recursion note helps, but the safety and side-effect profile an agent needs before calling is largely absent.

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% — all three parameters, including overwrite with its default, are documented in the schema. The description adds no syntax, path format, or edge-case meaning beyond what the schema already states, so the baseline of 3 applies.

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?

The description states a specific verb and resource — copying a file, or recursively copying a whole folder, to a destination path. That much is clear enough to distinguish it from siblings such as fs_move_or_rename or fs_write_file, though it never names or contrasts those alternatives.

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

Usage Guidelines2/5

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

There is no guidance on when to use copy versus move/rename, no prerequisites (permissions, disk space, same-filesystem constraints), and no stated exclusions. The only implied usage is the trivial 'you want a copy'.

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