Skip to main content
Glama
triliumnext-mcp

triliumnext-mcp

by perfectra1n

Get revisions

get_revisions
Read-onlyIdempotent

List revisions for a note by noteId or read one revision body by revisionId; file and image revisions return metadata only.

Instructions

Read note revisions (content snapshots of one note). Pass noteId to list its revisions (metadata: revisionId, title, type, dates, content length), or revisionId to read one revision's body (file/image revisions return metadata only). For a change log across many notes use get_note_history instead.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_revisions"
  }
}

Input Schema

NameRequiredDescriptionDefault
noteIdNoList all revisions of this note (metadata only).
revisionIdNoFetch one revision; its body is returned unless include_content=false.
include_contentNoWith revisionId: true (default) returns the revision body; false returns its metadata (revisionId, title, type, dates, content length).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed9 schema fields changedv0.4.0
    • changedInput schema / properties / include_content / description
      Previous value: -"Only meaningful with \"revisionId\". Defaults to true — returns the HTML body of the revision snapshot. Set to false to return revision metadata only (revisionId, title, type, dates, content length)."New value: +"With revisionId: true (default) returns the revision body; false returns its metadata (revisionId, title, type, dates, content length)."
    • changedInput schema / properties / noteId / description
      Previous value: -"If provided, returns an array of all revisions (metadata) for this note. Each entry includes revisionId, title, type, dates, and content length."New value: +"List all revisions of this note (metadata only)."
    • addedInput schema / properties / noteId / maxLength
      Added value: +128
    • addedInput schema / properties / noteId / minLength
      Added value: +1
    • addedInput schema / properties / noteId / pattern
      Added value: +"^[A-Za-z0-9_]+$"
    • changedInput schema / properties / revisionId / description
      Previous value: -"If provided, returns a single revision with its HTML body included by default. Pass include_content=false to skip the body when you only need revision metadata."New value: +"Fetch one revision; its body is returned unless include_content=false."
    • addedInput schema / properties / revisionId / maxLength
      Added value: +128
    • addedInput schema / properties / revisionId / minLength
      Added value: +1
    • addedInput schema / properties / revisionId / pattern
      Added value: +"^[A-Za-z0-9_]+$"
  2. First observedv1.0.0

TDQS

A4.7/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, and closed-world, so the safety profile is covered. The description adds real behavioral context beyond that: which mode returns bodies versus metadata, that file/image revisions return metadata only, and which metadata fields come back. It stops short of pagination or size limits for large revision lists.

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, both load-bearing: the first states scope and the two modes, the second handles the sibling handoff. The mode distinction is front-loaded rather than buried.

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?

With no output schema, the description compensates by enumerating the returned metadata fields and the file/image exception. For a three-parameter read tool whose annotations already cover safety, nothing an agent needs to call it correctly is missing.

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 100%, so baseline is 3, but the description adds cross-parameter semantics not spelled out in the schema: noteId is metadata-only regardless, and file/image revisions never return a body even with revisionId. That clarifies actual behavior beyond the individual property descriptions.

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?

The description names a specific verb and resource ('Read note revisions') and immediately disambiguates the two modes: noteId lists metadata, revisionId reads a single body. It also names the sibling get_note_history so an agent can separate revision reads from change-log 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?

Explicit routing: use noteId to list, revisionId to read one body, and 'For a change log across many notes use get_note_history instead' names both the alternative and the condition that selects it. No inference is required.

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