Skip to main content
Glama

restore_node

Idempotent

Restore a trashed file or folder and its deleted children back into the catalog.

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": {
      "nodeId": "<nodeId>"
    },
    "name": "restore_node"
  }
}

Input Schema

NameRequiredDescriptionDefault
nodeIdYes

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A3.5/5.0
Behavior4/5

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

Annotations already declare readOnly=false, destructive=false, and idempotent=true, so the bar is lower, but the description adds real value by disclosing that restoring a folder recursively restores its deleted children — a non-obvious cascade effect. It stops short of explaining destination (original location vs. root) or conflict handling on restore.

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 front-loaded sentence with the cascade behavior appended in the same clause; no filler, no repetition of the tool name or annotations.

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 annotations and no output schema, the core action and cascade are covered. What's missing is the operational detail an agent needs to call it correctly: how to obtain a valid trashed nodeId and what happens on naming conflicts or missing parents.

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

Parameters2/5

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

One parameter with 0% schema description coverage, so the description carries the full burden and says nothing about nodeId — not whether it is the trashed node's id, whether it accepts a path, or what format it takes. Only the word 'trashed' indirectly hints that the id refers to a trashed item.

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?

Specific verb (restore) plus resource (trashed file or folder) and scope (its deleted children, back into the catalog). An agent can distinguish this from delete_node, list_trash, or move_node without opening any schema, though no sibling is named explicitly.

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 only implied: it's clearly the inverse of trashing, and 'trashed' signals that the item must already be in the trash. There is no explicit when-to-use framing, no pointer to list_trash for finding a nodeId, and no statement of when restore will fail (e.g., parent gone or name conflict).

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.