Skip to main content
Glama

list_versions

Read-only

List a document's versions, newest first: each one's number, author, message and time, like git log.

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

Input Schema

NameRequiredDescriptionDefault
limitNoHow many to return, up to 100; 50 when absent.
beforeNoOnly versions before this one: the `next` of the previous page.
document_idYesThe document, `doc_…`.

Output Schema

NameRequiredDescriptionDefault
idYesThe document, `doc_…`.
nextNoPass as `before` for the page of older versions; absent on the last page.
aliasesYesWhere each alias points, `latest` included.
versionsYesThis page of versions, newest first.
newest_versionYesIts newest version: the document has every version from 1 to it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=false, so safety is covered. The description adds useful behavior beyond that—sort order and the per-item shape—but says nothing about pagination behavior or total counts, which matters for a paged listing.

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?

One sentence, front-loaded with the operation and scope, with the ordering and return fields packed in efficiently. The git log analogy replaces several sentences of explanation at no cost.

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?

An output schema exists, so return values need no explanation, and params are fully described in schema. For a simple read-only paged listing this is nearly complete; only the pagination story is left implicit in the description.

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%; all three parameters including limit default and the 'before' cursor semantics are fully documented in the schema. The description adds no parameter-level meaning beyond what the schema already provides, so 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 ('List a document's versions') plus ordering ('newest first') and the fields returned (number, author, message, time). The 'like git log' analogy makes it immediately distinguishable from sibling list_* tools that enumerate other resources.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The scope ('a document's versions') implies you need a document_id and version history, which is adequate context, but it never states when to choose this over alternatives or any exclusions. No explicit when-to-use or when-not sentence.

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