Skip to main content
Glama
triliumnext-mcp

triliumnext-mcp

by perfectra1n

Restore revision

restore_revision
Destructive

Restores a note to a chosen revision by writing that revision's content and title back to the live note, while optionally snapshotting the current state first to keep the change reversible.

Instructions

Restore a note to one of its revisions: writes the revision's content (and, by default, title) back onto the live note. By default the current state is snapshotted first with create_revision, so the restore is reversible. Find revision IDs with get_revisions {noteId}; preview one with get_revisions {revisionId}. Protected notes cannot be restored through ETAPI.

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": {
      "revisionId": "<revisionId>"
    },
    "name": "restore_revision"
  }
}

Input Schema

NameRequiredDescriptionDefault
revisionIdYesRevision to restore (from get_revisions {noteId}).
restore_titleNoAlso restore the title the note had in that revision (default true).
snapshot_currentNoSnapshot the note's CURRENT state as a new revision before restoring (default true), so the restore itself can be undone. Only disable this if the user explicitly does not want it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.4.0
    • changedInput schema / properties / revisionId / description
      Previous value: -"ID of the revision to restore (from get_revisions with a noteId)."New value: +"Revision to restore (from get_revisions {noteId})."
    • addedInput schema / properties / revisionId / maxLength
      Added value: +128
    • addedInput schema / properties / revisionId / pattern
      Added value: +"^[A-Za-z0-9_]+$"
  2. First observedv1.0.0

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true / idempotentHint=false, and the description goes beyond that by explaining *why* the operation is recoverable: the current state is snapshotted via create_revision first, making restore reversible, and that this can be disabled only on explicit user request. It also discloses the ETAPI limitation for protected notes — real behavioral context, not restatement.

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?

Three tight sentences, each earning its place: what it does, how to find inputs, and the safety/limitation caveat. The core action is front-loaded and no sentence is redundant.

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 destructive mutation with no output schema, this covers the essentials: reversibility mechanism, defaults, input discovery path, and an environment-level restriction. The only minor gap is that it does not say what a successful restore returns or how the new snapshot ID is surfaced, though with no output schema that is a small omission.

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 description coverage is 100%, so all three parameters (including defaults for restore_title and snapshot_current with their 'only disable if the user explicitly does not want it' guidance) are already documented in the schema. The description only echoes the title default parenthetically and adds no syntax or constraint detail beyond the structured fields; baseline 3 applies.

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 a note to one of its revisions') and immediately clarifies the mechanics: the revision's content is written back onto the live note, with title included by default. This clearly distinguishes it from create_revision (which snapshots) and get_revisions (which reads).

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 routes the agent: get revision IDs with get_revisions {noteId}, preview a single one with get_revisions {revisionId}. It also names a hard constraint (protected notes cannot be restored through ETAPI) and states the default snapshot behavior, so the agent knows the precondition and the outcome before calling.

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