Skip to main content
Glama
axross-headless-mcp

axross-headless-mcp

Copy folder tree

copy_tree
DestructiveIdempotent

Copies a folder tree or one file to another path on the same backend, creating folders and skipping existing files unless overwrite is enabled. Use it to duplicate or merge folders.

Instructions

Copy a folder tree (or one file) to another path on the same backend. Use when: duplicating or merging a folder on one backend. Instead: copy_file for a single file; copy_path_to_backend across backends, or for files or trees that take over 5 min (resumable=true). Behavior: breadth-first; src's entries land in dst, folders are created. Existing files are skipped unless overwrite=true (destructive). A repeat with overwrite=true rewrites the same files. Locally mode and mtime are kept. Symlinked files are copied as plain files; symlinked folders and secret files give error entries. A rerun finishes a truncated or timed-out copy (copied files are skipped). Time limit: 5 min. Returns: {entries, truncated, complete}; 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_tree"
  }
}

Input Schema

NameRequiredDescriptionDefault
dstNoThe copy (absolute, or relative to the MCP root): for a file the new file, for a folder the folder that becomes the copy, made if missing. Required unless dst_b64 is given.
srcNoThe file or folder to copy (absolute, or relative to the MCP root). Required unless src_b64 is given.
backendNoBackend id from list_backends; omit for the default.
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_depthNoLevels to visit, counted from 1: 1 = src's own entries. Deeper folders get a 'max-depth' record.
max_filesNoMost files to copy; truncated=true when there were more.
overwriteNotrue: replace files that exist at the destination. false: skip them (reason 'exists').
max_file_bytesNoFiles larger than this many bytes are skipped (default 10 GiB).

Output Schema

NameRequiredDescriptionDefault
entriesYes
completeYes
truncatedYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.15.181

TDQS

A4.7/5.0
Behavior5/5

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

Beyond the annotations (destructive=true, idempotent=true), it discloses traversal order (breadth-first), skip-versus-overwrite semantics with the concrete 'exists' reason, mtime preservation, symlink handling including error entries for symlinked folders and secret files, resumability of truncated runs, and a hard 5-minute limit. This is exactly the operational context annotations cannot carry.

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?

Purpose, use-when, and alternatives are front-loaded with labeled clauses, followed by dense behavioral facts with no filler. The 'Returns' sentence is short and defers detail to outputSchema, so it does not duplicate structured data at length.

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 a nine-parameter mutating tool the description covers safety, traversal, overwrite semantics, failure modes, and timeout — the things an agent must know before calling it — while an output schema handles return-value detail. Nothing material for correct invocation is missing.

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 100%, so the schema already documents all nine parameters, including max_depth and max_file_bytes, which the description never mentions. The description adds real meaning only for overwrite (destructive, rewrites the same files) and implicitly for max_files via truncation; the rest is baseline.

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 first sentence gives a specific verb and resource (copy a folder tree), names the scope constraint (same backend), and notes the single-file variant. It is immediately distinguishable from copy_path_to_backend and copy_file, which the description names.

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?

It has explicit 'Use when' and 'Instead' clauses that route the agent: copy_file for a single file, copy_path_to_backend for cross-backend or long-running/resumable copies. The only minor friction is the header saying 'or one file' while a single file is later routed to copy_file, but the resumable/time-limit rationale resolves it.

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