Skip to main content
Glama

copy_file

Copy one file (not folders) to a free path in the same unlocked vault, encrypted and never decrypted; the change is logged and can be undone.

Instructions

Copy one file to a new path in the same open vault, which must be one that may be changed. It's copied encrypted, never decrypted. Files only, not folders; the new path must be free and its folder must exist, so nothing is overwritten. Use move to rename instead. The change is logged; undo puts the copy in the trash while it's unchanged. Returns both paths and the change id.

Input Schema

NameRequiredDescriptionDefault
toYesThe path for the copy in the same vault, for example 'Taxes/receipts copy.md'. It must be free.
pathYesA path inside the vault, from its top, for example 'Taxes/2025/receipts.md'.
vaultYesThe vault's name, as listed by the vaults tool, for example 'Taxes'.
purposeYesA few words on why, shown to the user or kept in the vault's change log.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv0.1.4
    • addedInput schema / properties / path / description
      Added value: +"A path inside the vault, from its top, for example 'Taxes/2025/receipts.md'."
    • addedInput schema / properties / purpose / description
      Added value: +"A few words on why, shown to the user or kept in the vault's change log."
    • addedInput schema / properties / to / description
      Added value: +"The path for the copy in the same vault, for example 'Taxes/receipts copy.md'. It must be free."
    • addedInput schema / properties / vault / description
      Added value: +"The vault's name, as listed by the vaults tool, for example 'Taxes'."
  2. First observedv0.1.3

TDQS

A4.9/5.0
Behavior5/5

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

Beyond the annotations (non-readonly, non-destructive, non-idempotent), the description discloses encryption-at-rest behavior ('copied encrypted, never decrypted'), overwrite safety ('nothing is overwritten'), logging, and undo semantics ('undo puts the copy in the trash while it's unchanged'). This is materially richer than the structured hints alone.

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?

Roughly four sentences, all front-loaded with the constraint and the routing hint before the return-value note. Every clause carries operational information with no filler.

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?

An output schema exists, yet the description still briefly notes the return shape (both paths and the change id) at no real cost. Combined with the preconditions, alternative routing, and undo behavior, nothing an agent needs to invoke this correctly 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 baseline is 3, but the description adds meaning beyond the schema: the vault must be one that may be changed, the new path's parent folder must exist, and nothing is overwritten. It lightly reinforces the schema's 'must be free' constraint on 'to' rather than adding new syntax, keeping it just short of 5.

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 and resource (copy one file to a new path in the same vault) and immediately bounds the scope (files only, not folders). It explicitly distinguishes itself from the sibling 'move' tool by naming the rename use case, so an agent can route without opening either 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?

Gives explicit conditions and exclusions: same vault, vault must be changeable, files not folders, target path must be free and its parent folder must exist, and 'Use move to rename instead' as a named alternative. The when/when-not guidance is essentially complete.

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