Skip to main content
Glama

updateRevision

Modify metadata for a specific Drive file revision to keep it indefinitely or control publishing settings for Google Docs and Slides.

Instructions

Updates metadata for a specific revision of a Drive file. Use this to pin a revision so it is kept forever (never auto-deleted by Drive), or to control publishing settings for Google Docs/Slides.

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": {
      "fileId": "<fileId>",
      "revisionId": "<revisionId>"
    },
    "name": "updateRevision"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileIdYesThe ID of the Drive file.
publishedNoWhether this revision is published. Only applies to Google Docs and Slides.
revisionIdYesThe revision ID to update (from listRevisions).
keepForeverNoIf true, this revision is kept indefinitely and will not be automatically deleted. Only applies to files with a binary content type; Google Docs revisions are always kept.
publishAutoNoWhether subsequent revisions are automatically republished. Only applies to Google Docs and Slides.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv4.0.0-rc.1

TDQS

A3.8/5.0
Behavior3/5

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

With no annotations, the description carries the full disclosure burden, and it does add real substance: keepForever means the revision is never auto-deleted, and publishing only applies to Docs/Slides. It does not say whether updates are partial or replacing, what permissions/scope are needed, or whether the operation is idempotent — meaningful gaps for a mutation tool.

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?

Two sentences, front-loaded with the core action and immediately followed by the two motivating use cases. No filler or repetition of the schema.

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?

For a 5-parameter mutation tool with a fully documented schema and no output schema, the definition covers intent, scope restrictions, and the behavioral consequence of the key flags. It leaves out permissions and the effect of omitted optional fields, which keeps it just short of complete.

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 every parameter is already well documented, including the keepForever nuance for binary content types and the 'from listRevisions' hint on revisionId. The description only summarizes the parameter groups and adds no syntax or interaction detail beyond the schema, so baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific verb and resource — 'Updates metadata for a specific revision of a Drive file' — and then enumerates the two concrete purposes (pinning a revision vs. controlling publishing). It is clearly distinct from the read-side getRevision, though it never explicitly contrasts with that sibling.

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?

'Use this to pin a revision... or to control publishing settings for Google Docs/Slides' gives clear when-to-use context tied to the caller's intent. There are no explicit exclusions or pointers to alternative tools, so it stops short of a 5.

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