Skip to main content
Glama

list_revisions

Read-only

Lists available revisions of a Google Drive file in chronological order with revision ID, timestamp, and editor. Use the revision ID to export and read historical Sheets or Docs versions.

Instructions

List available revisions for a Google Drive file (Sheets, Docs, or any file).

Returns every revision in chronological order with its ID, timestamp, and the user who made the change. Use the revision ID with export_revision to read a historical version of a spreadsheet (cell data) or a Google Doc (Markdown).

Retention differs by file type:

  • Binary (uploaded) files: Drive purges a revision 30 days after newer content replaces it, unless keepForever is set (at most 200 per file).

  • Google Docs, Sheets, and Slides: not subject to that purge, and keepForever doesn't apply to them (always false). Drive may still merge older edits into fewer revisions, so not every edit has its own.

Args: file_id: The Google Drive file ID.

Returns: List of revisions, each with revisionId, modifiedTime, modifiedBy, keepForever.

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": {
      "file_id": "<file_id>"
    },
    "name": "list_revisions"
  }
}

Input Schema

NameRequiredDescriptionDefault
file_idYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.9.6

TDQS

A4.2/5.0
Behavior4/5

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

Goes well beyond the readOnlyHint annotation by disclosing ordering (chronological), per-file-type retention rules, the 30-day purge for binary files, the 200-revision keepForever cap, and the fact that Google Docs/Sheets/Slides always report keepForever=false. It also warns that edits may be merged, so results are not guaranteed one-to-one with edits. Missing only pagination behavior, which is minor.

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-loads the purpose in the first sentence, then layers retention caveats in a scannable bulleted block. The trailing Returns section largely restates what the output schema already provides, which is mild redundancy.

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?

Covers scope, ordering, downstream usage, and file-type-specific retention semantics, which is everything an agent needs to call it and interpret results. With an output schema present, the extra Returns line is harmless rather than load-bearing.

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 0% (only a bare "File Id" title), and the description adds only "The Google Drive file ID" for the single parameter. That is enough to disambiguate which ID is expected, but it adds no format or acquisition detail; a baseline 3 fits a single obvious parameter with thin schema support.

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 available revisions for a Google Drive file") and scopes it to Sheets, Docs, or any file. An agent can immediately tell this apart from export_revision, which is named as the downstream reader.

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 tells the agent to use the returned revision ID with export_revision to read a historical version of a Sheet or Doc, which is real routing guidance. It stops short of stating when not to use this tool (e.g., for file listings or activity logs), so it is not a full when/when-not pair.

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

Deploy Server

Other Tools