Skip to main content
Glama

copy-files

Destructive

Copies named files between SSH hosts or from a Windows share while leaving existing files untouched unless overwrite is enabled; supports optional age encryption.

Instructions

dbabrain common.cli copy-files: Named files copied from one host to another, removing nothing - a repository copy. Changes or removes something. A command on the emergency-operations list takes confirm: "yes" and a reason in its request, as on the command line. Request fields (pass them as request):

  • files: The files, each {source, target, file_name, size_bytes, sha256} - all five required (0.37.0): source as the source host (or the share) names it, target an absolute path on the target host (a drive path on a windows ta...

  • overwrite (required): false: a target name that already holds a file is left exactly as it is (the source is not read, the line fails saying so), and a copy lands only by a rename that refuses an existing name. true: the target name is rep...

  • source: The SSH host the files are on: {host, port, username, password|key_file}. Or give source_share.

  • source_share: Instead of source: a Windows share {host, share, username, password, domain?}, read with smbclient (or the UNC path on a Windows node); each file's source is then its path under the share.

  • target: The SSH host the files go to: {host, port, username, password|key_file, platform}. Nothing there is ever removed but this copy's own partial file. platform windows (0.39.0): a Windows OpenSSH host - each file written ...

  • timeout_seconds: Seconds the whole command may take; default 21600. A read or write that stalls for 300 s gives up its file, not the command.

  • stall_seconds: Seconds one read or write may stop moving before its file is given up; default 300.

  • transfer (required): How the bytes travel over SSH: cat (a plain cat channel with a large window, the source read ahead in a thread) or sftp (paramiko SFTP, read ahead and pipelined). Required - never assumed (0.37.0).

  • encrypt: Encrypt on the way (0.38.0, 1.330): {recipients: [age1... public keys], key_id, key_expires_at}. Each file lands as .age and its plain bytes never reach the target; they are held to the line's size_bytes and s...

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "copy-files"
  }
}

Input Schema

NameRequiredDescriptionDefault
requestNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and openWorldHint=true, but the description adds material behavior beyond them: nothing on the target is ever removed except this copy's own partial file, `overwrite: false` fails rather than clobbering, `transfer` is mandatory and never assumed, and stalled reads/writes give up only their own file at 300 s rather than the whole command. The encryption note also discloses that plaintext never reaches the target. The generic "Changes or removes something" line is loose boilerplate but does not contradict the destructive 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 first sentence is well front-loaded and the per-field bullet list is a sensible structure for a large request object. But the description is very long, several bullets are cut off mid-word, and the generic emergency-operations preamble plus "Changes or removes something" repeat low-value boilerplate for a tool whose core action is a copy.

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 complex remote-copy command with a near-opaque schema, the description covers the important operational facts: auth on both endpoints, transfer mode being mandatory, overwrite semantics, timeouts, partial-failure behavior, and optional encryption. An output schema exists, so return values need not be explained. Truncated field text is the main residual gap.

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 description coverage is 0% and the schema exposes only an opaque `request` object, so the description carries the full burden and largely meets it: it enumerates files, overwrite, source, source_share, target, timeout_seconds, stall_seconds, transfer, and encrypt, and explains requiredness and semantics for most. It loses a point because several entries are visibly truncated mid-sentence (e.g. the files and target entries), leaving the shape of nested values partly unresolved.

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 opening sentence names a specific verb and resource: named files copied from one host to another, with the explicit scope qualifier that it is a repository copy that removes nothing. An agent can tell this apart from delete-verified-files or pack-files on the copy/transfer axis. It stops short of 5 because the immediately following boilerplate sentence ("Changes or removes something") muddies the clean copy-only framing instead of sharpening it.

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

Usage Guidelines3/5

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

The description discloses a real prerequisite: this command is on the emergency-operations list, so the request must carry `confirm: "yes"` and a `reason`. That is useful when-to-invoke context. However, it never says when to choose copy-files over siblings such as copy-schema or pack-files, nor does it state when-not to use it, so selection guidance is only implied.

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

Deploy Server

Other Tools