Skip to main content
Glama

drive.revisions.delete

Permanently delete a specific binary file revision in Google Drive to remove unwanted image or video versions; irreversible, and unsupported for Docs, Sheets, or the last remaining version.

Instructions

Permanently deletes a file version. You can only delete revisions for files with binary content in Google Drive, like images or videos. Revisions for other files, like Google Docs or Sheets, and the last remaining file version can't be deleted. For more information, see Manage file revisions [HTTP DELETE] — removes the resource; irreversible unless the API documents a trash/undo flow; refused under --readonly safety profiles. Returns the post-delete resource state (or empty) as JSON — request bodies are built from the typed parameters (typed flags win over the params map), or read whole from body_file Siblings over the same resource: get, list, update.

Input Schema

NameRequiredDescriptionDefault
queryNoExtra KEY=VALUE query pairs for endpoints whose parameters Discovery does not describe.
fileIdYes[URL path segment] The ID of the file.
paramsNoParameter map merged into the request; typed parameters win.
dry_runNoReturn the request that would be sent, without sending it.
body_fileNoRead the request body from this file ('-' for stdin) instead of building one from the parameters.
revisionIdYes[URL path segment] The ID of the revision.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / fileId / description
      Previous value: -"The ID of the file."New value: +"[URL path segment] The ID of the file."
    • changedInput schema / properties / revisionId / description
      Previous value: -"The ID of the revision."New value: +"[URL path segment] The ID of the revision."
  2. First observed

TDQS

A4.3/5.0
Behavior5/5

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

With no annotations provided, the description carries the full burden and does so well: it states the operation is permanent, notes irreversibility unless the API documents a trash/undo flow, mentions refusal under --readonly safety profiles, and describes the return value as the post-delete resource state or empty JSON.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The key deletion behavior and restrictions are front-loaded effectively. However, the description includes generic wrapper text about request-body construction that is largely irrelevant for a DELETE operation, plus a terse sibling list, making it longer and less focused than it could be.

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?

Given no annotations and no output schema, the description provides the behavioral context an agent needs: it explains the destructive and irreversible nature, the safety-profile refusal, the restrictions on deletable revisions, and the return value. Parameter details are fully covered by the schema, so no critical gap remains.

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%, so fileId, revisionId, and the wrapper parameters are already documented in the schema. The description adds no parameter-specific meaning beyond repeating generic behavior about typed parameters winning over the params map and body_file handling, which is already covered by the schema.

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 opens with a specific verb and resource: 'Permanently deletes a file version.' It also clarifies the scope by stating that only binary-content revisions can be deleted and that Google Docs/Sheets and the last remaining version cannot, which distinguishes this tool from siblings like get, list, and update.

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?

The description gives clear when-not conditions: non-binary files and the final remaining revision cannot be deleted. It names sibling tools over the same resource (get, list, update), but it does not explicitly say when to prefer those alternatives, so it falls short of a full when-to-use/when-not/alternatives statement.

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