Skip to main content
Glama

Lilia Editor

List saved versions

list_versions
Read-onlyIdempotent

A document's saved versions (its History), newest first: id, number, name, when it was saved, who saved it, autoSave (Lilia saved it on its own, e.g. before a restore), blockCount, and current (the document is exactly this version now). A version named "Before edit" is the undo point saved before that app's first change. restore_version takes the id. The newest 20 unless limit says otherwise; total says how many there are.

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": {
      "documentId": "<documentId>"
    },
    "name": "list_versions"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoHow many to return, newest first, 1 to 50. Default 20.
documentIdYesThe document id.

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint and openWorldHint=false, so safety is covered. The description goes further by disclosing ordering (newest first), the default/maximum window (20, up to 50) and the meaning of autoSave and current flags — useful traits beyond the annotations, though it says nothing about permissions or failure modes.

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 resource and scope, then the field meanings, then the restore hand-off and paging rules. Dense but nearly all of it earns its place; the parenthetical explanations make it slightly heavy but never wasteful.

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?

There is no output schema, and the description compensates by naming and explaining every returned field, including the interpretive ones (autoSave, current, undo-point naming). Combined with the paging rules, nothing needed to call or interpret this tool is missing.

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%, so both parameters are already documented. The description only restates the limit default ('newest 20 unless limit says otherwise') and adds no format or range detail beyond the schema's '1 to 50. Default 20'.

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 resource and scope: 'A document's saved versions (its History), newest first', then enumerates exactly what each version record contains. An agent knows precisely what it gets back 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?

Explains the downstream flow by naming that 'restore_version takes the id', and gives interpretive guidance for picking the right entry ('Before <app> edit' is the undo point before that app's first change). No explicit when-not-to-use, but the context for use 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.

Resources