Skip to main content
Glama
Obsidian MCP Server
by Kynlos

attach_file

Copy an external file into the Obsidian vault attachments folder, optionally specifying a destination name, so notes can reference it.

Instructions

Copy external file into vault attachments folder

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": {
      "source_path": "<source_path>"
    },
    "name": "attach_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
dest_nameNoOptional destination filename
source_pathYesExternal file path

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv4.0.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations exist, so the description carries the full behavioral burden and largely fails to. "Copy" usefully implies the original source is left intact and that the target folder is fixed as the attachments folder, but nothing is said about overwrite behavior if dest_name already exists, required permissions, size limits, or what the call returns.

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?

A single short sentence with the destination front-loaded and no filler. It is efficient, but the terseness edges toward under-specification rather than well-structured completeness.

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 file-writing tool with no annotations and no output schema, the description is too thin. An agent cannot tell what confirmation or path is returned, whether an existing file with the same dest_name is overwritten, or whether any preconditions must hold before copying.

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 description coverage is 100%, so the baseline is 3. The description does add a small amount beyond the schema by establishing that the destination is always the vault attachments folder, which clarifies how dest_name is interpreted, but it adds no format, path, or conflict-handling detail.

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?

"Copy external file into vault attachments folder" gives a specific verb (Copy) and a specific resource plus destination (external file → vault attachments folder). It is clear enough to distinguish from the sibling note/canvas tools, though it never names a contrast case explicitly.

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?

There is no explicit when-to-use or when-not-to-use guidance and no named alternative. The only guidance is implicit in the word "external", which hints the source lives outside the vault, but an agent gets no rule for choosing this over other creation/import tools.

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