Skip to main content
Glama

copy_file

Duplicate a note or attachment to a new path in your Obsidian vault without altering existing links. Use it to create copies for templates, backups, or variants while keeping original references intact.

Instructions

Duplicate a note or attachment to a new path (links are not changed).

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": {
      "from": "<from>",
      "to": "<to>"
    },
    "name": "copy_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYesDestination path (or folder)
fromYes
vaultNoVault name, id or folder path (see list_vaults). Default: OBSIDIAN_VAULT or the vault open in Obsidian.
overwriteNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3/5.0
Behavior3/5

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

Annotations already declare this is a non-read-only, non-destructive, non-idempotent write. The description contributes one genuinely useful trait beyond that: links are not updated, so the copy is not wired into the graph like the original. It says nothing about what happens when the destination exists (the overwrite parameter), whether parent folders are created, or whether an identical-path copy fails.

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?

A single front-loaded sentence with no filler; the parenthetical caveat is compact and placed where it is immediately visible. Nothing to trim and nothing reordered.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a mutation tool with four parameters, no output schema, and an undocumented overwrite flag, the definition is too thin — the highest-risk question (what happens if the target path already exists) is unanswered. An agent would have to guess at collision behavior and at the meaning of "from" before calling safely.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is only 50% and the description does not compensate: the required "from" parameter has no schema description and no explanation here, "overwrite" is completely undocumented in both places, and "vault" resolution is left to the schema note about list_vaults. The phrase "to a new path" only loosely gestures at the "to" parameter.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

"Duplicate a note or attachment to a new path" names a specific verb (duplicate) and the resources it applies to, and the verb itself distinguishes it from move_file/rename_file since the source is preserved. It stops short of explicitly contrasting with those siblings, which keeps it below a 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

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

No statement of when to pick copy_file over move_file, rename_file, or add_attachment — an agent must infer the distinction purely from the verb. The only conditional information given is an outcome caveat (links unchanged), not usage routing.

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

Deploy Server

Other Tools