Skip to main content
Glama
Claude File Manager MCP

Claude File Manager MCP

by wafuv

Restore from the trash

restore_path

Restores a file or folder from the trash to its original location. Get the id from list_trash or from the delete_path response.

Instructions

Restores a file or folder from the trash to its original location. Get the id from list_trash or from the delete_path response.

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": {
      "id": "<id>"
    },
    "name": "restore_path"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesTrash entry id
overwriteNoReplace the item if the original path is occupied (the replaced item goes to the trash)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.5.1
    • changedInput schema / properties / overwrite / description
      Previous value: -"Replace the item if the original path is occupied"New value: +"Replace the item if the original path is occupied (the replaced item goes to the trash)"
  2. First observedv1.3.0

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 must carry the full behavioral burden. It usefully discloses that restoration targets the original location, but omits what happens if that location no longer exists, permission/auth requirements, and any side effects; the overwrite side effect (replaced item going to trash) is only conveyed by the schema, not the description.

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?

Two short sentences, no padding, with the core action stated first and the id-acquisition hint second. Every sentence earns its place.

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 simple two-parameter, single-required-field tool with a fully documented schema and no output schema, the description covers the action and the id source sufficiently. The main residual gap is behavior on missing parent paths or errors, which is minor at this complexity.

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 the schema already defines both parameters, including the overwrite default and its side effect. The description still adds value by explaining the provenance of the required id, which the schema only labels 'Trash entry id'.

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 ('Restores'), the resource ('a file or folder'), the source ('from the trash') and the destination ('to its original location'), which cleanly separates it from delete_path, list_trash and copy_path/move_path siblings.

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?

Gives concrete prerequisite guidance by naming where the required id comes from ('list_trash or from the delete_path response'), which routes the agent from the discovery/delete tools into this one. It does not state exclusions or failure conditions, so it stops short of a full when/when-not treatment.

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