Skip to main content
Glama

Copy files

copy

Transfers files or folders between the local machine and a peer using one colon-prefixed remote path; handles recursive folders and resumes interrupted large transfers.

Instructions

Copy a file or folder between this machine and the peer. Exactly one side is the peer's and starts with ':' — upload: from "./a.zip" to ":/home/u/a.zip"; download: from ":C:\logs\x.log" to "./x.log". Folders are copied recursively; big interrupted copies resume.

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

Input Schema

NameRequiredDescriptionDefault
toYes
fromYes
peerYesThe peer's 9-digit rockd ID (from `devices` / `status`), or IP:port to dial directly

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior3/5

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

With readOnlyHint=false and openWorldHint=true already declaring a cross-machine write, the description still adds real value: folder recursion and resumable interrupted copies are behaviors not in the annotations. However, it omits the operationally important traits for a copy tool — whether existing destination files are overwritten, whether parent directories are created, and whether progress is reported for large transfers.

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 clauses ordered by importance: what it does, how the endpoints are addressed, then copy semantics. Every clause, including the inline examples, carries information the agent needs to build the from/to arguments.

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 three-required-parameter, no-output-schema mutation tool, the description covers direction and ordering but leaves the post-call picture unspecified — no indication of what is returned (destination path, transferred byte count, confirmation) or how a partially resumed copy reports itself. Adequate to call correctly, incomplete for interpreting the result.

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 only 33% (only peer is documented), so the description has to carry from and to — and it does, via the ':' addressing convention and dual examples in Windows and POSIX path styles. It adds little about peer beyond what the schema already says (9-digit rockd ID or IP:port).

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?

"Copy a file or folder between this machine and the peer" names a concrete verb (copy), concrete resources (file, folder) and a clear scope (local machine to/from a remote peer). That immediately separates it from siblings like move, ls and forward, and an agent can tell it's bidirectional transfer rather than a listing or mutation of local state.

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?

The critical selection rule is stated explicitly: "Exactly one side is the peer's and starts with ':'", with a worked example for each direction (upload and download). What's absent is guidance on when to prefer this over related siblings (move, forward), so the caller must infer that copy leaves the source intact while move relocates it.

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