Skip to main content
Glama

restore_drive_revision

Restore Google Drive files to previous versions by downloading and re-uploading revision content for PDFs, DOCX, images, and other binary file types.

Instructions

Restore a Drive file to a previous revision.

Downloads the revision's raw content and re-uploads it as the current version. Works for binary file types (PDFs, DOCX, images, etc.). Google-native files (Docs, Sheets, Slides) do not expose raw revision content via the API — for those, use the Google Docs "Version history" UI instead.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
user_google_emailYes
file_idYesDrive file ID.
revision_idYesID of the revision to restore (from get_drive_revisions).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It explains the underlying process ('Downloads the revision's raw content and re-uploads it as the current version'), which is crucial for understanding this mutation operation. However, it lacks details on permissions, rate limits, or error handling, leaving some behavioral aspects unclear.

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?

The description is front-loaded with the core purpose, followed by implementation details and usage constraints in three concise sentences. Every sentence adds value without redundancy, making it efficient and well-structured for quick comprehension.

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?

The description is mostly complete for a mutation tool with no annotations but with an output schema (which handles return values). It covers purpose, process, and key constraints. However, it lacks information on prerequisites (e.g., authentication needs) and potential side effects, leaving minor gaps in context.

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 67% (2 out of 3 parameters have descriptions). The description does not add any parameter-specific information beyond what the schema provides (e.g., it doesn't clarify 'user_google_email' or provide examples). Given the moderate schema coverage, the baseline score of 3 is appropriate as the description doesn't compensate for gaps.

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 clearly states the specific action ('Restore a Drive file to a previous revision') and resource ('Drive file'), distinguishing it from siblings like 'update_drive_file' or 'get_drive_revisions'. It precisely defines what the tool does without being tautological.

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?

The description explicitly provides when to use this tool ('Works for binary file types') and when not to use it ('Google-native files... use the Google Docs "Version history" UI instead'), offering clear alternatives and exclusions. This helps the agent choose correctly among related tools.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/HuntsDesk/ve-gws'

If you have feedback or need assistance with the MCP directory API, please join our Discord server