Skip to main content
Glama

list_document_revisions

Read-only

Lists a document's kept revisions — title, length, date, author, writerKind — without the content (see get_document_revision). writerKind says WHO WROTE the rewrite that triggered the snapshot: human (typed by a person in the interface) or agent (the chat or an MCP client, under the identity of the person who launched it); null = a revision kept before this field existed. A revision is a snapshot taken before a rewrite (coalesced if the same author, through the same kind of writer, rewrites within 10 minutes; a change of writer, human then agent or the reverse, does create one): a document never rewritten, or rewritten only by the same author and writer within that window, may have no revision. Sorted from most recent to oldest; the list is never truncated. ⚠️ A kind: "html" document has NO history at all — the call is REFUSED by naming it, rather than returned as an empty list that would be mistaken for "never rewritten".

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_document_revisions"
  }
}

Input Schema

NameRequiredDescriptionDefault
documentIdYesDocument identifier, obtained via list_documents.
expectedProjectIdNoUUID of the project THIS call targets (overrides the session project).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / expectedProjectId / description
      Previous value: -"UUID of the project THIS call targets (overrides the session project). No access: refused, nothing changed."New value: +"UUID of the project THIS call targets (overrides the session project)."
  2. Changed1 schema field changed
    • changedInput schema / properties / expectedProjectId / description
      Previous value: -"UUID of the project targeted by THIS call. ACTUALLY targets this project instead of the session project. Refused without changing anything if access is not granted."New value: +"UUID of the project THIS call targets (overrides the session project). No access: refused, nothing changed."
  3. Changed2 schema fields changed
    • changedInput schema / properties / documentId / description
      Previous value: -"Identifiant du document, obtenu via list_documents."New value: +"Document identifier, obtained via list_documents."
    • changedInput schema / properties / expectedProjectId / description
      Previous value: -"UUID du projet visé par CET appel. Cible RÉELLEMENT ce projet au lieu du projet de session. Refusé sans rien modifier si l'accès n'est pas accordé."New value: +"UUID of the project targeted by THIS call. ACTUALLY targets this project instead of the session project. Refused without changing anything if access is not granted."
  4. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, openWorldHint=false, destructiveHint=false, so safety is covered; the description still adds substantial behavior beyond that: sorting (most recent to oldest), guaranteed non-truncation, revision coalescing rules within 10 minutes and the human/agent writer switch, and the explicit refusal (with the kind named) for html documents. The only thing it doesn't spell out is whether the refusal surfaces as an error or a distinct payload shape.

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?

It is a dense paragraph rather than a bulleted block, but the essential purpose and the get_document_revision cross-reference are front-loaded, and each sentence carries non-redundant information (writerKind semantics, coalescing window, truncation, html refusal). The writerKind explanation is the longest piece, but it defines an unfamiliar return field, so it earns its space.

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?

For a two-parameter read tool with no output schema, the description covers return fields, ordering, completeness guarantees, an unfamiliar field's meaning, and the one failure mode that would otherwise be misread. Nothing an agent needs to invoke it correctly or interpret an empty/refused result 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% and both parameters are documented in-schema, including that documentId comes from list_documents and that expectedProjectId overrides the session project. The description adds no parameter-level meaning (e.g., what happens if expectedProjectId mismatches the document's project), so the 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 (lists a document's kept revisions) and enumerates the returned fields (title, length, date, author, writerKind) while explicitly excluding content with a pointer to get_document_revision. That contrast is enough to separate it from the read sibling without opening either schema.

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?

Names the alternative (get_document_revision) for content, and gives conditions under which this tool yields nothing: a document never rewritten, or rewritten only by the same author and writer kind within the 10-minute window, may have no revision, and an html document is refused rather than returned empty. The agent knows both when to call it and how to interpret a non-result.

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.