Skip to main content
Glama
triliumnext-mcp

triliumnext-mcp

by perfectra1n

Create revision snapshot

create_revision

Snapshot a note's current content as a revision so later edits can be undone and earlier versions restored.

Instructions

Snapshot a note's current content as a revision so later edits can be undone. List and read revisions with get_revisions; roll back with restore_revision.

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": {
      "noteId": "<noteId>"
    },
    "name": "create_revision"
  }
}

Input Schema

NameRequiredDescriptionDefault
noteIdYesID of the note to snapshot.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv0.4.0
    • removedInput schema / properties / format
      Removed value: -{
      -  "default": "html",
      -  "description": "Format hint forwarded to the ETAPI revision endpoint (default: html). The revision always snapshots the note's current stored content.",
      -  "enum": [
      -    "html",
      -    "markdown"
      -  ],
      -  "type": "string"
      -}
    • changedInput schema / properties / noteId / description
      Previous value: -"ID of the note to create a revision for"New value: +"ID of the note to snapshot."
    • addedInput schema / properties / noteId / maxLength
      Added value: +128
    • addedInput schema / properties / noteId / pattern
      Added value: +"^[A-Za-z0-9_]+$"
  2. First observedv1.0.0

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, and idempotentHint=false, so safety and repeat-call behavior are covered structurally. The description adds genuine semantic context (it captures the current content and enables undo) but says nothing about whether repeated calls create duplicate revisions or whether unchanged content produces a new revision.

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?

Two sentences, zero filler, with the core action front-loaded and the sibling routing in the follow-up sentence. Every clause carries information an agent needs.

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 one-parameter, low-complexity mutation with annotations covering the safety profile and no output schema, the description is nearly sufficient. The only gap is that it does not say what comes back (e.g., a revision identifier), which the absent output schema leaves unaddressed.

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?

There is a single parameter at 100% schema description coverage, so the schema already explains noteId and its format constraints. The description adds no extra meaning about ID resolution or accepted forms, which is the expected baseline when the schema does the work.

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 ('Snapshot a note's current content as a revision') plus the effect ('so later edits can be undone'). It also names the two closest siblings, get_revisions and restore_revision, so an agent can separate this write-from-now tool from the read and rollback ones 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?

Explicitly routes the agent: use get_revisions to list/read and restore_revision to roll back, while the phrase 'so later edits can be undone' implies taking a snapshot before making edits. It stops short of saying whether to snapshot unconditionally or only before risky changes, so it is clear context without full when/when-not rules.

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