Skip to main content
Glama
axross-headless-mcp

axross-headless-mcp

Copy file

copy_file
Idempotent

Copy a single file to a new path on the same backend, preserving mode and mtime locally; use it to duplicate one file when the destination does not yet exist.

Instructions

Copy one file to a new path on the same backend. Use when: duplicating a single file. Instead: copy_tree for a folder tree; copy_path_to_backend across backends or for files that take over 30 s (it resumes). Behavior: only adds. A repeat fails with 'already exists'. Native copy (S3, WebDAV, cp over SSH) where possible; locally mode and mtime are kept. dst's parent must exist; a folder as src fails. Refuses secret files. Time limit: 30 s. Returns: {ok: true}.

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

Input Schema

NameRequiredDescriptionDefault
dstNoThe new file's path, including its name; must not exist yet (absolute, or relative to the MCP root). Required unless dst_b64 is given.
srcNoThe file 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.

Output Schema

NameRequiredDescriptionDefault
okYes

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?

Beyond the annotations, the description discloses that the operation is add-only, that repeats fail with 'already exists,' that native copy is used where possible, and that mode and mtime are preserved locally. It also covers key failure conditions: missing dst parent, folder src, secret files, and the 30-second time limit.

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?

The description is compact and front-loaded, with labelled sections for use case, alternatives, behavior, and returns. Every sentence adds operational information without repetition.

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?

The tool has annotations, an output schema, and full parameter descriptions; the description completes the picture with alternatives, constraints, failure modes, and timeout behavior. Nothing essential for correct invocation is missing.

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 the schema already carries the parameter definitions, including the base64 variants. The description still adds useful parameter-level constraints: dst's parent must exist, src must be a file rather than a folder, and the backend must be the same. It does not explain the b64 alternatives, but the schema does.

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 states a specific verb and resource: 'Copy one file to a new path on the same backend.' It also distinguishes the tool from copy_tree and copy_path_to_backend by scope, so an agent can select it without opening sibling schemas.

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 gives explicit when-to-use guidance ('duplicating a single file') and names alternatives for folder trees and cross-backend or long-running copies. The routing conditions are concrete, including the 30-second and resume distinction for copy_path_to_backend.

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