Skip to main content
Glama

restore_nodes

Restore one or more trashed items to their original folders by node ID; name conflicts are renamed instead of overwritten.

Instructions

Restore one or more items from the trash to their original folders, using IDs from list_trash. If an item with the same name now exists there, the restored item is renamed rather than overwriting it. Returns the restored nodes. All-or-nothing; for per-item results use batch_nodes. Requires files:delete; pass idempotency_key to make retries safe.

Input Schema

NameRequiredDescriptionDefault
node_idsYesnode UUIDs to process
idempotency_keyNostable retry key, maximum 128 bytes

Output Schema

NameRequiredDescriptionDefault
itemsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior3/5

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

Goes well beyond the single destructiveHint annotation by disclosing rename-on-conflict behavior, all-or-nothing semantics, required permission scope, and the retry-safety contract of idempotency_key. The only gap is that it doesn't say whether restored items retain sharing/link state or how conflicts are surfaced.

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?

Four dense sentences with no filler, front-loaded with purpose and the source of IDs. Slightly over-packed—conflict, atomicity, permission, and idempotency are compressed into one paragraph—but every clause carries information.

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

Completeness5/5

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

All the risk-relevant behavior of a mutation tool is covered: conflict handling, atomicity, permission, and retry semantics. The 'Returns the restored nodes' line is mildly redundant given the output schema, but it costs nothing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is already 100%, so the baseline would be 3; the description still adds real meaning by tying node_ids to list_trash output and by framing idempotency_key as a retry-safety mechanism rather than a generic key.

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 and resource ('Restore one or more items from the trash to their original folders') plus the source of the identifiers ('using IDs from list_trash'). It is clearly distinguishable from siblings like trash_nodes, list_trash, and batch_nodes.

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 names list_trash as the prerequisite source of IDs and names batch_nodes as the alternative when per-item results are needed, with the condition ('All-or-nothing') that selects it. Also states the required permission files:delete.

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