Skip to main content
Glama

copy_path

Copy a file or directory, keeping the source intact. Never overwrites or merges an existing destination and does not follow symbolic links. Up to 2 GB/10000 entries. Returns copyId immediately; poll copy_status with the same workSessionId for byte/file progress and completion. An interrupted copy may leave a partial destination; inspect it before retrying.

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>"
    },
    "name": "copy_path"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYes
fromYes
deviceIdNoComputer name or id
workSessionIdNoFrom create_work_session

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • changedInput schema / properties / deviceId / description
      Previous value: -"Computer name or id; optional with one computer or a default"New value: +"Computer name or id"
    • removedInput schema / properties / from / maxLength
      Removed value: -4096
    • removedInput schema / properties / from / minLength
      Removed value: -1
    • removedInput schema / properties / to / maxLength
      Removed value: -4096
    • removedInput schema / properties / to / minLength
      Removed value: -1
  2. Changed2 schema fields changed
    • changedInput schema / properties / deviceId / description
      Previous value: -"Computer name or id from list_devices. Optional with one computer online or a default set."New value: +"Computer name or id; optional with one computer or a default"
    • changedInput schema / properties / workSessionId / description
      Previous value: -"Work session from create_work_session. Pass the same ID on every call in this conversation; omit for legacy unscoped work."New value: +"From create_work_session"
  3. Added

TDQS

A4.5/5.0
Behavior5/5

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

Annotations only say this is a non-readonly, non-destructive, non-open-world operation; the description goes much further by disclosing no-overwrite/no-merge semantics, no symlink following, hard limits (2 GB / 10000 entries), asynchronous return of copyId, and the risk of a partial destination after interruption.

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?

Five short sentences, each carrying a distinct fact: purpose, overwrite/symlink behavior, limits, async contract, and failure recovery. The most decision-relevant information (purpose and non-destructive copy semantics) is front-loaded.

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?

With no output schema, the description carries the return contract itself (copyId returned immediately, progress via copy_status) and adds capacity limits plus failure-mode guidance. For a 4-parameter async copy tool, an agent has everything needed to invoke and follow up correctly.

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 coverage is 50% (deviceId and workSessionId are documented inline), so the baseline is 3. The description adds one useful semantic link — that workSessionId must be reused with copy_status — but says nothing about from/to path formats or whether they must be on the same device.

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 description opens with a specific verb and resource ("Copy a file or directory") and immediately scopes it with "keeping the source intact," which distinguishes it from the sibling move_path without needing to open 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 Guidelines4/5

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

It clearly routes the agent to the follow-up tool ("poll copy_status with the same workSessionId") and states the retry condition, giving real usage context. It stops short of explicitly naming when to prefer move_path or remove_path instead, so no exclusions are stated.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources