Skip to main content
Glama
mcp-synology

mcp-synology

upload_file

Destructive

Upload a file from the local machine to a specified Synology NAS folder; optionally create missing folders and replace an existing file only when overwrite is enabled.

Instructions

Upload one file from this machine (where this server runs) to a NAS folder; a local folder can't be uploaded. An existing NAS file of the same name is not replaced unless overwrite is true.

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": {
      "local_path": "<local_path>"
    },
    "name": "upload_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
filenameNoName for the file on the NAS, not a path (default: the local file's name); no whitespace at its ends, no invisible character where Unicode doesn't use one, no control or direction-changing characters, and not `#recycle` at a shared or home folder's top.
overwriteNoReplace a NAS file of the same name (default false: the call fails and the NAS file is kept).
local_pathYesThe file on this machine, inside one of the allowed local folders (/root/Downloads), or below it.
dest_folderNoNAS folder to upload into (`/video/Uploads`). Optional when a default upload folder is configured.
create_parentsNoCreate `dest_folder` and any missing folders above it (default true); with `false`, `dest_folder` must already exist.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.10.1
    • changedInput schema / properties / filename / description
      Previous value: -"Name for the file on the NAS (default: the local file's name)."New value: +"Name for the file on the NAS, not a path (default: the local file's name); no whitespace at its ends, no invisible character where Unicode doesn't use one, no control or direction-changing characters, and not `#recycle` at a shared or home folder's top."
  2. Changed6 schema fields changedv0.9.1
    • addedInput schema / properties / create_parents / description
      Added value: +"Create `dest_folder` and any missing folders above it (default true); with `false`, `dest_folder` must already exist."
    • addedInput schema / properties / dest_folder / description
      Added value: +"NAS folder to upload into (`/video/Uploads`). Optional when a default upload folder is configured."
    • addedInput schema / properties / filename / description
      Added value: +"Name for the file on the NAS (default: the local file's name)."
    • addedInput schema / properties / local_path / description
      Added value: +"The file on this machine, inside one of the allowed local folders (/root/Downloads), or below it."
    • addedInput schema / properties / overwrite / description
      Added value: +"Replace a NAS file of the same name (default false: the call fails and the NAS file is kept)."
    • changedOutput schema / (root)
      Previous value: -{
      -  "properties": {
      -    "result": {
      -      "title": "Result",
      -      "type": "string"
      -    }
      -  },
      -  "required": [
      -    "result"
      -  ],
      -  "title": "tool_upload_fileOutput",
      -  "type": "object"
      -}New value: +null
  3. Addedv0.7.1

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true, and the description sharpens that by scoping destruction to the overwrite condition, so the agent knows an upload is non-destructive by default. It does not mention response shape, size limits, or transfer duration, so context beyond the collision rule is thin.

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?

Two compact clauses, front-loaded with the action and direction, followed by the non-obvious source restriction and the collision rule. No filler, though the overwrite sentence duplicates schema content and could have carried new information instead.

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

Completeness3/5

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

Safety is covered by annotations and parameters are fully documented in the schema, but with no output schema the description says nothing about what comes back, whether large files stream or time out, or what happens to partial uploads. For a mutating transfer tool that leaves a meaningful gap.

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 coverage is 100% and each parameter is already richly described, so baseline 3 applies. The description only restates overwrite semantics (overwrite=false keeps the NAS file) without adding format, default, or interaction detail beyond the schema.

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?

States a specific verb and resource (upload one file) and pins the direction explicitly: from this machine where the server runs to a NAS folder. The phrase 'one file' implicitly separates it from bulk siblings like upload_photos, but no sibling is named outright.

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

Usage Guidelines3/5

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

Gives a real exclusion ('a local folder can't be uploaded') and a source-location constraint that tells the agent when this tool won't apply. It never states when to prefer it over upload_photos or download_file, so selection between siblings is left implicit.

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