Skip to main content
Glama
sync2nas-mcp

sync2nas-mcp

by mirkcale

upload-file

Transfers a single local file to a specified path on a NAS over SMB/CIFS, enabling direct storage of local files on network-attached storage.

Instructions

上传单个文件到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>",
      "remotePath": "<remotePath>"
    },
    "name": "upload-file"
  }
}

Input Schema

NameRequiredDescriptionDefault
localPathYes本地文件路径
remotePathYesNAS上的目标路径

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?

With no annotations, the description carries the full behavioral burden, yet it says nothing about overwriting an existing remote file, creating missing remote directories, authentication requirements, rate limits, or what is returned. For a write operation to external storage, this leaves the agent unable to predict the consequences of a call.

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?

One short, front-loaded sentence with no wasted words. It is concise but borders on under-specification rather than being efficiently structured.

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?

A two-parameter write tool with no annotations and no output schema needs more than a five-word purpose statement. Critical operational details, including overwrite semantics, error behavior, and path handling, are absent.

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 both parameters are documented in the schema, namely the local path and the target NAS path. The description adds no meaning beyond that baseline.

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, namely uploading a single file to the NAS. The wording "单个文件" subtly distinguishes it from sibling sync-files, but it does not name any sibling 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 guidance, no prerequisites, and no mention of when to prefer sync-files or other siblings. The only implicit guidance comes from "单个" (single), which suggests one-off uploads rather than a batch.

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