Skip to main content
Glama

File Upload

file_upload

Upload local files to an fnOS NAS directory, with conflict handling to skip, replace, or rename existing files; pre-check target status first.

Instructions

上传本地文件到 NAS 目录(写操作)。

overwrite 决定远端同名文件冲突策略:skip 跳过、replace 覆盖、 rename 保留旧文件并给新文件改名。上传前可先用 file_check_upload 预检目标状态。

Input Schema

NameRequiredDescriptionDefault
hostNoNAS 主机地址(IP 或域名)
portNoNAS 端口,如 5667(HTTPS)/5666(HTTP)/443
schemeNo传输协议
profileNo独立 session profile 名称,默认使用 default
overwriteNoreplace
local_fileYes本地文件路径(服务器所在机器)
remote_dirYesNAS 目标目录,如 /vol1/1000/文档

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.2

TDQS

A4.2/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It does disclose the key behavioral trait that this is a write operation and explains the remote-name conflict policy (skip/replace/rename), which is genuinely useful. However, it omits permission/auth requirements, whether missing directories are created, failure modes, and concurrency behavior.

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?

Three tight sentences, purpose front-loaded first, then the conflict policy, then the pre-check hint. No filler or repetition.

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

Completeness4/5

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

For a 7-param write tool with an output schema present, the description covers purpose, the ambiguous enum parameter, and a related pre-check tool, so return values need not be explained. Minor gaps around auth/permissions keep it from a 5.

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

Parameters4/5

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

Schema description coverage is high (86%), so the schema already documents most params, establishing a baseline of 3. The description adds real value beyond the schema by explaining the semantic meaning of each overwrite enum value (skip=跳过, replace=覆盖, rename=保留旧文件并改名), which the schema leaves as a bare enum.

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

Purpose5/5

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

States a specific verb (上传/upload) and resource (本地文件到 NAS 目录) and explicitly says it is a write operation (写操作). This distinguishes it from siblings like file_download_url and file_check_upload without opening any schema.

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

Usage Guidelines4/5

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

It names an alternative tool and the condition for using it: run file_check_upload to pre-check target state before uploading. That is concrete routing guidance. It lacks explicit when-not guidance, but context is clear.

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