Skip to main content
Glama

Restore files and folders from the recovery bin

tarkle_restore_from_bin
Idempotent

Bring up to 20 files and folders back from the bin (ids from tarkle_list_bin). Each returns to the folder it was in, if that folder still exists (otherwise restore the folder first: PARENT_UNAVAILABLE), and only within the plan's bin retention (EXPIRED). A name that is now taken is refused. Owners and Admins; other members only for files they uploaded themselves (folders: Owners and Admins). A file that is protected (team folder, file request, system folder), sold, or held by a share link is refused with the reason.

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": {
      "workspaceId": "<workspaceId>"
    },
    "name": "tarkle_restore_from_bin"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileIdsNoFiles to restore, each a fileId from tarkle_list_bin.
folderIdsNoFolders to restore, each a folderId from tarkle_list_bin.
llm_modelNoThe model identifier you are running as, for example "claude-opus-4-8" or "gpt-5.2". Pass "unknown" if you are not certain. Recorded for the server developer's analytics.
workspaceIdYesThe workspace's id from tarkle_list_workspaces.

Output Schema

NameRequiredDescriptionDefault
restoredNo
notRestoredNo

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A4.4/5.0
Behavior5/5

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

Annotations only say the call mutates state, is not destructive, and is idempotent; the description adds far more: files return to their original folder, restores are constrained by plan bin retention (EXPIRED), name collisions are refused, and protected/sold/share-linked files are refused with a reason. The permission model (Owners/Admins; uploader-only for other members; folder restore limited to Owners/Admins) is disclosed, which no annotation conveys.

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?

Front-loaded with the action and the cap, then layers error codes and permissions in descending importance. It is dense but every clause carries operational information; the nested parentheticals make it slightly harder to scan than it needs to be.

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?

For a mutation with a required workspaceId and two optional id arrays, the description covers permissions, retention limits, parent-folder dependency, name collisions and protected-file refusals. Since an output schema exists, the absence of return-value detail is not a gap.

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 documents fileIds, folderIds, workspaceId and llm_model. The description only reinforces the 20-item cap and the tarkle_list_bin provenance, adding no format, ordering, or partial-failure semantics for the id arrays beyond what the schema supplies.

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 ('bring ... back from the bin') plus the per-call batch ceiling of 20 and where the ids come from (tarkle_list_bin). An agent can distinguish this from tarkle_restore_version without consulting any 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?

Explicitly points to tarkle_list_bin as the id source and dictates a prerequisite ordering ('restore the folder first: PARENT_UNAVAILABLE') for the case where the parent is gone. It does not name a sibling alternative or state when not to use bin restore, so it stops short of full routing guidance.

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.