Skip to main content
Glama

Drive Update

drive_update
Idempotent

Replace a Google Drive file's contents with a local file after user confirmation, then return the updated file ID.

Instructions

Replace a Drive file's contents with a local file. Requires user confirmation before calling.

Returns dict with key: id (updated Drive file ID).

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>",
      "local_path": "<local_path>"
    },
    "name": "drive_update"
  }
}

Input Schema

NameRequiredDescriptionDefault
file_idYes
local_pathYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3/5.0
Behavior2/5

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

The confirmation requirement is useful context beyond the annotations, but "replace a Drive file's contents" describes an overwrite that irreversibly discards prior content, which sits awkwardly with destructiveHint=false. Nothing is said about whether the old content is recoverable, what content type/format the replacement keeps, or what happens on partial failure.

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?

Two short sentences, front-loaded with the action and followed by the precondition. The trailing return-value sentence is mild redundancy since an output schema already exists, but it costs little.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The output schema covers return values, and the confirmation requirement covers the main safety gate. For an overwrite mutation with two undocumented parameters, though, the definition leaves out file_id format, path expectations, and failure/irreversibility behavior.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must carry the parameter meaning. It only loosely implies the mapping ("Drive file" -> file_id, "local file" -> local_path); it never says whether file_id is an ID, name, or URL, nor whether local_path must be absolute or already exist.

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?

States a specific verb and resource: "Replace a Drive file's contents with a local file." That is precise enough to distinguish it from a plain upload (which creates rather than replaces) without needing to name a sibling. It stops short of explicitly contrasting with drive_upload, so a 4 rather than a 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

"Requires user confirmation before calling" is a genuine precondition, which is more than most definitions offer. However, it gives no guidance on when to replace versus upload or create, and no exclusions for cases like missing or read-only files, so usage is only implied.

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