Skip to main content
Glama

file_copy

Copy a file or folder to a destination path within or across storage; the queued operation avoids overwrites by placing name conflicts beside the target, so check its status for the final name.

Instructions

Copy a file or folder to dst - within a storage or to another one - on the server, through the operations queue (the explorer's paste). dst is where the copy lands (its folder and its name), as for file_move. Never overwrites: a taken name lands beside it (rapor-copy.txt), so read the finished operation rather than assuming the name. Needs edit rights on the source and files.create in the destination folder. An encrypted file does not leave its encrypted folder (E2E_BOUNDARY). It answers 202 with the queued operation ({op: {id, …}}): follow it with op_get {id} until its status is ok (or partial, failed, cancelled), stop it with op_cancel.

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": {
      "src": "<src>",
      "dst": "<dst>"
    },
    "name": "file_copy"
  }
}

Input Schema

NameRequiredDescriptionDefault
dstYesadapter:// path the copy lands at (folder + new name), on this storage or another one
srcYesadapter:// path of the file or folder to copy

Output Schema

NameRequiredDescriptionDefault
resultYesthe operation's JSON answer - the body its REST twin under /api/ai answers (an object)
statusYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.6/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does: it discloses never-overwrites behavior with a concrete example (rapor-copy.txt) and tells the agent to read the finished operation rather than assume the name. It also names required permissions (edit on source, files.create in destination), the E2E_BOUNDARY restriction for encrypted files, and the 202 queued-operation response shape.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The paragraph is dense but front-loaded with the core action and dst semantics before permissions, boundary rule, and follow-up flow. Every clause adds information, though the run-on structure with multiple parentheticals slightly reduces scannability.

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 two-parameter mutation tool with an output schema, the description covers everything an agent needs: what is copied, where it lands, permission prerequisites, the encrypted-file boundary, the async response, and how to follow and cancel the operation. Nothing material is left to inference.

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 baseline is 3, but the description adds meaning: dst is folder plus new name, semantically parallel to file_move, and the never-overwrite rule changes how the agent should interpret the resulting path. It does not add format or syntax detail beyond what the schema already gives.

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?

States a specific verb (copy) and resource (file or folder), plus scope: within a storage or across storages, executed through the operations queue. It explicitly parallels file_move, so an agent can distinguish copy from move 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 Guidelines4/5

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

Gives clear operating context: use the queued-operation flow, poll with op_get {id} until status is ok/partial/failed/cancelled, and stop with op_cancel. It does not state an explicit when-not-to-use versus file_move, but the cross-reference and scope make the intended use clear.

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