Skip to main content
Glama

Restore files from the recycle bin

zspace_recycle_restore

Restore items from the personal recycle bin to their original locations.

Instructions

Restore items from the personal recycle bin to their original locations.

Paths must be the in-bin paths reported by zspace_recycle_list, not the original locations. Returns {restored, failed}. Restores data rather than removing it, so this is the recovery path after an accidental zspace_remove -- but it only works while the bin has not been emptied.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathsYesIn-bin paths from zspace_recycle_list, e.g. ["/sata11/.recycle/my/photo.jpg"]

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.1.13

TDQS

A4.6/5.0
Behavior4/5

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

Annotations only carry openWorldHint, so the description must disclose the mutation profile and does: it clarifies the operation restores data rather than deleting it, and states a hard precondition (bin must not be emptied). It does not cover permissions required or behavior when a destination path already exists, leaving a modest gap for a mutation tool.

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 sentences, purpose front-loaded, followed by the critical path constraint and then recovery context. No redundant restatement of the name or schema; every sentence carries information.

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?

An output schema exists, so the brief 'Returns {restored, failed}' is supplementary rather than required. For a mutation tool with near-empty annotations, it discloses the non-destructive nature and precondition but omits auth requirements and destination-overwrite behavior.

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 coverage is 100%, so baseline is 3, but the description adds real semantic value beyond the schema's example: paths must be in-bin paths from zspace_recycle_list, not original locations. That constraint is the main way an agent would get this wrong, and the description prevents it.

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 (restore) and resource (items from the personal recycle bin to their original locations). Easily distinguished from sibling recycle tools (list, purge, empty) whose names imply different operations.

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

Usage Guidelines5/5

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

Explicitly frames this as the recovery path after an accidental zspace_remove, names the precondition ('only works while the bin has not been emptied'), and points to zspace_recycle_list as the source of valid paths. When-to-use, when-not-to-use, and the related sibling are all covered.

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