Skip to main content
Glama

Restore from trash

restore_files
DestructiveIdempotent

Bring items back from the trash to where they were.

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

Input Schema

NameRequiredDescriptionDefault
fileIdsYesFile or folder ids

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare the safety profile (destructiveHint=true, idempotentHint=true, readOnlyHint=false), so the description's main added value is the claim that items return to their original location. It does not cover what happens if the original parent no longer exists or a name collision occurs, nor any batch limit, so it adds modest context beyond 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?

A single short sentence with the destination behavior front-loaded and no wasted wording. It is efficient, though the terseness leaves useful behavioral detail unstated rather than being an over-length problem.

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

Completeness3/5

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

For a simple one-parameter mutation with full annotation coverage and full schema coverage, minimal description is acceptable, and no output schema means return values need not be described. Still, edge cases central to a restore operation (missing original parent, name conflicts, partial failures when restoring up to 1000 ids) are left entirely unexplained.

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 there is a single parameter, so the schema already explains fileIds with its pattern and maxItems of 1000. The description adds nothing beyond "items" — no note that ids must be currently trashed or that folder ids are accepted.

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?

"Bring items back from the trash" states a specific verb (bring back / restore) and the source resource (trash), and "to where they were" clarifies the destination is the original parent. It is clear what the tool does, though it never says explicitly that these are files/folders managed by the sibling set (trash_files, list_trash), and "items" is slightly generic.

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

Usage Guidelines3/5

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

Usage is implied rather than stated: an agent can infer this is the inverse of trashing and should be used on previously deleted items. There is no explicit when/when-not guidance, no pointer to list_trash for discovering restorable ids, and no mention of trash_files as the counterpart operation.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources