Skip to main content
Glama
Nextcloud MCP Server

Nextcloud MCP Server

by a-lagutov

restore_from_trash

Restore a deleted item from the Nextcloud trash bin to its original location by providing its trash item ID.

Instructions

Restore an item from the trash bin to its original location (id from list_trash)

Input Schema

NameRequiredDescriptionDefault
trash_idYesTrash item id, e.g. 'report.pdf.d1712345678'

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4/5.0
Behavior3/5

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

With no annotations, the description carries the burden; it does disclose the key outcome (item goes back to its original location). However, it omits whether restoration fails when the original location exists, whether it requires write permissions, or whether expiry applies — meaningful gaps 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?

A single sentence with zero filler, front-loaded with the action and outcome. Nothing to trim.

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 one-parameter tool with a fully described schema and no output schema, the description covers purpose, target, and id source adequately. Only mutation edge cases (conflicts, permissions, expiry) are unaddressed.

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% and the schema already gives the id format example. The description adds only the provenance hint ('from list_trash'), which is slightly useful but marginal — baseline 3 is appropriate.

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 (item from trash), plus the destination (original location). This clearly differentiates it from siblings like list_trash, clear_trash, and delete without needing to open the 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?

The parenthetical '(id from list_trash)' tells the agent the prerequisite step for obtaining the required id, which is genuine routing guidance. It doesn't state exclusions (e.g., what to do if the original path is occupied or the item is expired), so it falls short of a 5.

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