Skip to main content
Glama
axross-headless-mcp

axross-headless-mcp

Copy path to backend

copy_path_to_backend
DestructiveIdempotent

Copy files or folder trees to another backend, or resume interrupted large copies within the same backend. Use for cross-backend transfers and resumable bulk copies.

Instructions

Copy a file or folder tree to another backend, or resumably within one. Use when: data must cross backends, or a big copy should be resumable. Instead: copy_tree within one backend; move_file_to_backend to move a file. Requires: --mcp-tools transfer. Behavior: never changes the source; one backend with resumable=false is its own copy, as in copy_tree. Existing files are skipped unless overwrite=true (destructive). Local links to files are copied as files, as copy_tree does; other links and special files are skipped. Each skipped entry has a reason; a secret file's is outside-root. resumable=true with the same arguments continues an interrupted run. Mode and mtime are not kept. Time limit: 30 min. Returns: {src, dst, copied, truncated, complete, entries}; entry fields and reasons explained in outputSchema.

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_path_to_backend"
  }
}

Input Schema

NameRequiredDescriptionDefault
dstNoDestination on dst_backend (absolute, or relative to the MCP root): the file, or for a source folder the folder that becomes its copy. Parents are created. Required unless dst_b64 is given.
srcNoSource path on src_backend (absolute, or relative to the MCP root). Required unless src_b64 is given.
dst_b64Nodst as base64 of its raw bytes, for non-UTF-8 names; replaces dst.
src_b64Nosrc as base64 of its raw bytes, for non-UTF-8 names; replaces src.
max_filesNoCopy at most this many files; more sets truncated=true.
overwriteNoReplace destination files that exist (false: skip them, reason exists).
resumableNoCopy in 4 MiB segments that a repeated call can resume after an interruption.
dst_backendNoBackend id of the destination, from list_backends; omit for the default backend.
src_backendNoBackend id of the source, from list_backends, e.g. 'profile:nas'; omit for the default backend.
max_file_bytesNoSkip files larger than this many bytes (reason too-large), also when a source sends more than it reported. Default 10 GiB.
subfolder_levelsNoSubfolder levels, counted from 0: 0 = src's own files, 1 = also its subfolders'.

Output Schema

NameRequiredDescriptionDefault
dstYes
srcYes
copiedYes
entriesYes
completeYes
truncatedYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.15.181

TDQS

A4.9/5.0
Behavior5/5

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

Goes well beyond the annotations: source is never modified, single-backend non-resumable calls behave as self-copies, existing files are skipped unless overwrite=true (tied to destructiveness), symlink and special-file handling is spelled out, skip reasons are recorded, and mode/mtime are not preserved. It also discloses a 30-minute time limit and resumption semantics for resumable=true, all of which the annotations do not convey.

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?

Front-loaded with the action, then labeled sections (Use when, Instead, Requires, Behavior, Returns) that let an agent scan selectively. The Behavior paragraph is dense but every clause carries a distinct operational fact; nothing is redundant.

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?

For an 11-parameter, open-world tool with real destructive potential, the definition covers preconditions, source safety, skip semantics, resumption, limits, and fidelity loss. Return values are correctly deferred to the existing output schema rather than restated.

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 baseline is 3; the description adds value by framing overwrite=true as destructive and by explaining that resumable=true with the same arguments continues an interrupted run, which the schema alone does not state. It does not add meaning for the base64 path variants, max_files, or subfolder_levels, but those are fully documented in the schema.

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?

Names a specific verb and resource plus scope: copy a file or folder tree to another backend, or resumably within one. It immediately distinguishes itself from copy_tree (single backend) and move_file_to_backend (move, not copy), so an agent can route correctly without opening a 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?

Explicitly labeled 'Use when' gives the two selecting conditions (cross-backend data, or large resumable copy), and 'Instead' names the alternative tools and when they apply. It also states the prerequisite 'Requires: --mcp-tools transfer', removing a common failure mode.

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