Skip to main content
Glama

Upload to Drive

drive_upload

Upload local files or folders to Proton Drive with end-to-end encryption, recursing through folders and handling file/folder conflicts via skip, rename, replace, or new-revision strategies.

Instructions

Upload a local file or folder to Proton Drive with end-to-end encryption; folders upload recursively. Returns {uploaded, skipped, failed} counts and fails the call if failed > 0 (e.g. quota exceeded, destination not found). File and folder conflict strategies are separate (CLI v0.8.0+), both default to 'skip'. The destination folder must exist (drive_mkdir creates it). To write text directly use drive_write_file. The server asks the user to approve this itself when a conflict strategy is 'replace' or 'create-new-revision' (overwrites existing items).

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": {
      "localPath": "<localPath>",
      "remotePath": "<remotePath>"
    },
    "name": "drive_upload"
  }
}

Input Schema

NameRequiredDescriptionDefault
confirmedNoOptional and ignored: the server asks the user to approve this itself. You do not need to send it.
localPathYesAbsolute local path of the file or folder to upload.
remotePathYesAbsolute remote destination folder, e.g. /my-files/Reports.
skipThumbnailsNoSkip thumbnails.
fileConflictStrategyNo'skip' keeps the existing remote file (default). 'create-new-revision' overwrites with a new version, keeping history. 'rename' uploads under a unique name. 'replace' trashes the remote file first — confirm with user.
folderConflictStrategyNo'skip' keeps the existing remote folder (default). 'merge' merges contents into it. 'rename' uploads under a unique name. 'replace' trashes the remote folder first — confirm with user.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.13.0
    • changedInput schema / properties / fileConflictStrategy / description
      Previous value: -"'skip' keeps the existing remote file (default). 'create-new-revision' uploads as a new version, keeping history. 'rename' uploads under a unique name. 'replace' trashes the remote file first — confirm with user."New value: +"'skip' keeps the existing remote file (default). 'create-new-revision' overwrites with a new version, keeping history. 'rename' uploads under a unique name. 'replace' trashes the remote file first — confirm with user."
  2. Changed1 schema field changedv1.12.0
    • changedInput schema / properties / confirmed / description
      Previous value: -"Must be true; only after the user approved this exact action."New value: +"Optional and ignored: the server asks the user to approve this itself. You do not need to send it."
  3. Changed1 schema field changedv1.8.0
    • addedInput schema / properties / skipThumbnails
      Added value: +{
      +  "description": "Skip thumbnails.",
      +  "type": "boolean"
      +}
  4. Changed5 schema fields changedv1.2.0
    • changedInput schema / properties / confirmed / description
      Previous value: -"Must be true. Only set after the user explicitly approved this exact action."New value: +"Must be true; only after the user approved this exact action."
    • changedInput schema / properties / fileConflictStrategy / description
      Previous value: -"'skip' leaves an existing remote file unchanged (default). 'create-new-revision' uploads as a new version of the existing file, keeping history. 'rename' adds a unique suffix to the uploaded file's name. 'replace' trashes the remote file and uploads the local copy in its place — confirm with user first."New value: +"'skip' keeps the existing remote file (default). 'create-new-revision' uploads as a new version, keeping history. 'rename' uploads under a unique name. 'replace' trashes the remote file first — confirm with user."
    • changedInput schema / properties / folderConflictStrategy / description
      Previous value: -"'skip' leaves an existing remote folder unchanged (default). 'merge' merges the uploaded folder's contents into the existing one. 'rename' adds a unique suffix to the uploaded folder's name. 'replace' trashes the remote folder and uploads the local copy in its place — confirm with user first."New value: +"'skip' keeps the existing remote folder (default). 'merge' merges contents into it. 'rename' uploads under a unique name. 'replace' trashes the remote folder first — confirm with user."
    • changedInput schema / properties / localPath / description
      Previous value: -"Absolute local filesystem path of the file or folder to upload (must start with '/')."New value: +"Absolute local path of the file or folder to upload."
    • changedInput schema / properties / remotePath / description
      Previous value: -"Absolute remote Drive destination folder path (must start with '/'). E.g. /my-files/Reports"New value: +"Absolute remote destination folder, e.g. /my-files/Reports."
  5. Changed1 schema field changedv1.0.38
    • addedInput schema / properties / confirmed
      Added value: +{
      +  "description": "Must be true. Only set after the user explicitly approved this exact action.",
      +  "type": "boolean"
      +}
  6. Changed3 schema fields changedv1.0.32
    • removedInput schema / properties / conflictStrategy
      Removed value: -{
      -  "description": "'skip' leaves existing remote files unchanged (default). 'replace' permanently overwrites the remote file — confirm with user first. 'keep-both' uploads with a unique name to avoid conflicts. 'merge' merges folder contents instead of failing (folders only).",
      -  "enum": [
      -    "skip",
      -    "replace",
      -    "keep-both",
      -    "merge"
      -  ],
      -  "type": "string"
      -}
    • addedInput schema / properties / fileConflictStrategy
      Added value: +{
      +  "description": "'skip' leaves an existing remote file unchanged (default). 'create-new-revision' uploads as a new version of the existing file, keeping history. 'rename' adds a unique suffix to the uploaded file's name. 'replace' trashes the remote file and uploads the local copy in its place — confirm with user first.",
      +  "enum": [
      +    "skip",
      +    "create-new-revision",
      +    "rename",
      +    "replace"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / folderConflictStrategy
      Added value: +{
      +  "description": "'skip' leaves an existing remote folder unchanged (default). 'merge' merges the uploaded folder's contents into the existing one. 'rename' adds a unique suffix to the uploaded folder's name. 'replace' trashes the remote folder and uploads the local copy in its place — confirm with user first.",
      +  "enum": [
      +    "skip",
      +    "merge",
      +    "rename",
      +    "replace"
      +  ],
      +  "type": "string"
      +}
  7. Changed2 schema fields changedv1.0.28
    • changedInput schema / properties / conflictStrategy / description
      Previous value: -"'skip' leaves existing remote files unchanged (default). 'overwrite' permanently replaces the remote file — confirm with user first. 'rename' uploads with a unique name to avoid conflicts."New value: +"'skip' leaves existing remote files unchanged (default). 'replace' permanently overwrites the remote file — confirm with user first. 'keep-both' uploads with a unique name to avoid conflicts. 'merge' merges folder contents instead of failing (folders only)."
    • changedInput schema / properties / conflictStrategy / enum
      Previous value: -[
      -  "skip",
      -  "overwrite",
      -  "rename"
      -]New value: +[
      +  "skip",
      +  "replace",
      +  "keep-both",
      +  "merge"
      +]
  8. Changed3 schema fields changedv0.1.2
    • changedInput schema / properties / conflictStrategy / description
      Previous value: -"What to do if the file already exists. Default: skip."New value: +"'skip' leaves existing remote files unchanged (default). 'overwrite' permanently replaces the remote file — confirm with user first. 'rename' uploads with a unique name to avoid conflicts."
    • changedInput schema / properties / localPath / description
      Previous value: -"Absolute local path to upload."New value: +"Absolute local filesystem path of the file or folder to upload (must start with '/')."
    • changedInput schema / properties / remotePath / description
      Previous value: -"Remote Drive destination path. E.g. /my-files/Reports"New value: +"Absolute remote Drive destination folder path (must start with '/'). E.g. /my-files/Reports"
  9. First observedv0.1.0

TDQS

A4.8/5.0
Behavior5/5

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

Goes well beyond the annotations: it discloses the return shape ({uploaded, skipped, failed}), the failure contract (call fails if failed > 0, e.g. quota exceeded or missing destination), and that 'replace'/'create-new-revision' overwrite existing items with server-side user approval. That approval gating is exactly the context needed to reconcile the destructive-looking modes with destructiveHint=false.

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-loaded with the core action and scope, then prerequisites, then alternatives, then the approval warning — a sensible order. It is dense and multi-clause within a single block, but each sentence carries non-redundant information; only the return-shape sentence overlaps slightly with what a caller would learn at runtime.

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?

For a 6-parameter upload tool with no output schema, the definition covers prerequisites, conflicting-mode semantics, failure behavior, return counts, and approval flow. There is no annotation coverage of the recursive-upload or overwrite behavior, so this description is doing the necessary heavy lifting and does it well.

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

Parameters4/5

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

Schema coverage is already 100%, so the baseline would be 3, but the description adds cross-cutting meaning the schema does not: file and folder conflict strategies are separate knobs (CLI v0.8.0+), both default to 'skip', and the 'confirmed' parameter is explicitly ignored because the server handles approval. Minor miss: it never mentions skipThumbnails or why one would set it.

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 opening clause states a specific verb and resource ('Upload a local file or folder to Proton Drive') plus scope details that matter (end-to-end encryption, folders upload recursively). It also names the sibling it is not ('To write text directly use drive_write_file'), so an agent can discriminate it from the write/read tools without opening a schema.

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?

Explicit routing: use drive_write_file for text, use drive_mkdir to create the destination, and the destination folder must pre-exist. Defaults are stated (both conflict strategies default to 'skip') and the when-deciding condition for switching strategies is implied through the enum meanings. This covers when to use, when not to, and the prerequisite step.

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