Skip to main content
Glama
sync2nas-mcp

sync2nas-mcp

by mirkcale

sync-files

Synchronize local folders with a NAS over SMB/CIFS in either direction, including bidirectional sync, file filtering, and custom path mapping.

Instructions

同步本地文件夹到NAS或从NAS同步到本地

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": {
      "localPath": "<localPath>"
    },
    "name": "sync-files"
  }
}

Input Schema

NameRequiredDescriptionDefault
shareNoSMB共享名称(不传则使用默认配置)
syncModeNo同步模式local-to-nas
localPathYes本地文件夹路径
fileFilterNo只同步指定文件名,如 ["demo.txt", "config.json"]
remotePathNoNAS上的远程路径/
customPatternNo自定义目录映射,如 "{1}/{3}" 表示保留第1、3层目录,文件名自动附加。支持 -1 表示父目录
deleteOrphanedNo是否删除目标端孤立文件
ignorePatternsNo忽略的文件模式

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full burden: it never states that deleteOrphaned can destroy files on the target, what permissions or SMB share/auth are required, whether syncs are resumable, or how conflicts resolve in bidirectional mode. For a mutation tool with a destructive option, this is a substantial gap.

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 front-loaded sentence with no filler, stating the tool's scope in one line. It is efficient, though it is efficient partly by omission rather than by tight editing of rich content.

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 an 8-parameter synchronization tool with no annotations and no output schema, the description covers only the broad direction of copying. It omits destructive behavior (deleteOrphaned), the meaning of a sync result or conflict handling, and prerequisites such as an existing share or credentials.

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 every one of the 8 parameters (including the syncMode enum and the customPattern syntax) is already documented in the schema. The description adds no extra meaning such as typical syncMode choices or fileFilter vs ignorePatterns interaction, so the baseline 3 applies.

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 (本地文件夹 ↔ NAS), so the agent knows this is a folder synchronization tool. It does not distinguish itself from siblings such as upload-file, download-file, or compare-files, which a one-clause contrast would have fixed.

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 guidance on when to choose sync-files over upload-file/download-file for a one-off transfer, or over compare-files to preview differences. The description merely restates the two sync directions, leaving tool selection to inference from the name alone.

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