Skip to main content
Glama

File Trash Restore

file_trash_restore

Restores a file from the NAS recycle bin using its path. Because success messages can be unreliable, verify the restored file afterward with file_property.

Instructions

从回收站恢复文件(写操作)。

⚠️ 实测不可靠:即使返回 "Restored ",文件也常常没有回到原位 (因为 file rm 走的是硬删除,回收站里本来就没有该条目)。恢复后请 用 file_property 确认。

Input Schema

NameRequiredDescriptionDefault
hostNoNAS 主机地址(IP 或域名)
pathYesNAS 上的路径,如 /vol1/1000/文档
portNoNAS 端口,如 5667(HTTPS)/5666(HTTP)/443
schemeNo传输协议
profileNo独立 session profile 名称,默认使用 default

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.2

TDQS

A4.1/5.0
Behavior5/5

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

With no annotations, the description carries the full behavioral burden and does so unusually well: it discloses that this is a write, that it is empirically unreliable, that it may return 'Restored <path>' without the file actually reappearing, and the root cause (file rm performs a hard delete so no trash entry exists). This is exactly the kind of non-obvious failure mode an agent cannot infer from schema or annotations.

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?

The action and its write nature are front-loaded before the warning, and every clause earns its place. Slightly dense in the warning block but free of filler or repetition.

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

Completeness5/5

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

For a mutation tool with no annotations, an output schema present, and a full schema, the description supplies the missing critical context: the operation's unreliability and a verification step. Nothing an agent needs to call it correctly or interpret its result is 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 description coverage is 100% and all five parameters are documented in the schema, so the baseline is 3. The description adds no path/host/port syntax or format detail beyond what the schema already supplies.

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?

The opening sentence names a specific verb and resource ('从回收站恢复文件') and tags it as a write operation, which cleanly separates it from file_trash_list/file_trash_clear by verb. It does not explicitly name or contrast with the closest sibling (file_team_trash_restore), so a 4 rather than a 5.

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 gives a clear operational context (restore an item from the recycle bin) and actively instructs the agent to confirm the result with file_property afterwards. There is no explicit when-not-to-use guidance or statement about which sibling to prefer, but the follow-up routing is genuinely actionable.

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