Skip to main content
Glama

Restore an earlier version of a file

tarkle_restore_version

Make an earlier version (versionId from tarkle_list_versions) the current file again (Pro). Nothing is lost: the file as it is now is kept as a version, and the restored copy counts toward storage. Needs a role that may edit files. A file used by a share link is refused (CONFLICT) unless updateShareLinks is true, because the link then delivers the restored version: ask the person first. Asks for confirmation first: the first call changes nothing; ask the user, then call again with the same inputs and the confirmationCode from the first answer.

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>",
      "fileId": "<fileId>",
      "versionId": "<versionId>"
    },
    "name": "tarkle_restore_version"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileIdYesThe file's fileId, from tarkle_list_files or 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.
versionIdYesThe version to restore, from tarkle_list_versions for the same file.
workspaceIdYesThe workspace's id from tarkle_list_workspaces.
confirmationCodeNoThe confirmationCode from the first answer of this tool for the same inputs. Send it only after the user approved.
updateShareLinksNotrue: also change what share links holding this file deliver. Only after the person agreed.

Output Schema

NameRequiredDescriptionDefault
fileNo
restoredNo
versionIdNo

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A4.6/5.0
Behavior5/5

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

Goes well past the annotations: it discloses that current content is preserved as a version, that the restored copy counts toward storage, the CONFLICT refusal for share-linked files, and the two-phase confirmation where the first call changes nothing. The non-destructiveHint=false annotation is corroborated rather than contradicted by the "nothing is lost" explanation.

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 core action and compact for the amount of behavioral detail conveyed. It is dense with parentheticals, which slightly hurts scannability, but no sentence is expendable.

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 multi-step, permission-gated mutation, the definition covers plan requirement, authorization, conflict handling, confirmation protocol, and storage side effects, and an output schema exists so return values need not be documented.

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

Parameters4/5

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

Schema coverage is already 100%, so the baseline is 3. The description still adds real meaning: it ties versionId to a specific listing tool, explains the updateShareLinks consequence in terms of what the link will then deliver, and clarifies that the second call must reuse identical inputs plus the confirmationCode.

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 ("Make an earlier version ... the current file again") and immediately anchors where the versionId comes from (tarkle_list_versions). An agent can distinguish this from tarkle_restore_from_bin and tarkle_list_versions without opening 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?

Gives concrete preconditions (Pro plan, a role that may edit files) and a conditional path for share-linked files, including the requirement to ask the person first. It does not explicitly compare against the sibling tarkle_restore_from_bin, but the version-restore context is unambiguous.

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.