Skip to main content
Glama
pebblehost-mcp
by numycode

Restore deleted files

restore_files
Idempotent

Restore files and folders deleted within the last 24 hours to their original paths, recovering items moved to trash by delete_files.

Instructions

Restores files or folders that delete_files moved to the trash in the last 24 hours, back to their original paths.

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": {
      "paths": "<paths>"
    },
    "name": "restore_files"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathsYesOriginal paths of the deleted files, relative to the server root.
serverNoServer identifier or UUID. Omit to use the configured server (PEBBLEHOST_SERVER_ID); other servers are refused unless PEBBLEHOST_ALLOW_ALL_SERVERS is set.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already cover safety (destructiveHint=false, idempotentHint=true, openWorldHint=true), so the bar is lower, and the description still adds substantive behavior: the trash intermediary, the 24-hour retention window, and restoration to original paths. It omits what happens if the original path is now occupied or if only some paths succeed, which keeps it below a 5.

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?

One sentence, front-loaded with the action and immediately qualified by the source and time constraint. No filler and nothing out of order.

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 two-parameter tool whose annotations carry the safety profile and whose schema documents both arguments, the description covers what to expect. Failure modes such as conflicting existing paths or partial restoration are left unaddressed, but there is no output schema burden to carry.

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%, so both paths and server are fully documented in the schema, making 3 the baseline. The description's 'back to their original paths' reinforces that the paths argument refers to original locations, but adds no format or batching detail beyond the schema.

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?

Names a specific verb (restores), the resource (files or folders), the source mechanism (moved to trash by delete_files), the time window (last 24 hours), and the outcome (back to original paths). An agent can distinguish this from restore_backup or any other sibling without opening a 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?

Usage is clearly implied as the undo path for delete_files, and the explicit 'last 24 hours' constraint tells the agent when this tool will not apply. It stops short of naming an alternative for older deletions or for server-level recovery, so it is not a full when/when-not/alternative statement.

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