Skip to main content
Glama

drive_upload_file

Destructive

Upload a local file to Google Drive with human approval: the first call returns a preview and request_id, then a human approves and a second call executes to create the file.

Instructions

Upload a local file to the user's Google Drive. TWO-PHASE, HUMAN-APPROVED: the first call (no request_id) executes nothing — it returns status=approval_required with a preview of exactly what would happen and a request_id. A human approves out of band (GigaMail console, CLI or Telegram, behind Windows Hello / Touch ID); the second call with that request_id executes the payload that was approved (the approved arguments, not the ones passed the second time). Requests expire (default 15 min); identical pending requests are deduplicated; more than 20 requests/hour per tool are refused (status=rate_limited). Every phase is written to the audit log. Approval is required because a file on Drive can be shared onward and leaves the machine. The preview shows the local path, the name it will get and the destination folder. Returns the created file ({id, name, link, ...}) on execution. Requires a connected Google account.

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

Input Schema

NameRequiredDescriptionDefault
nameNoName to give it on Drive. Empty = keep the local file name.
folder_idNoDestination folder id. Empty = the Drive root.
local_pathYesAbsolute path of the file to upload.
request_idNoOmit on the first call. On the first call the tool does NOT execute: it returns status=approval_required, a preview and a request_id. A human must approve that request_id out of band (GigaMail console, `gigamail approvals approve`, or Telegram — all behind Windows Hello / Touch ID / Linux PIN). Then call again with the same request_id to execute. The agent cannot approve; repeating the call without approval just returns awaiting_approval.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.6.8
    • changedInput schema / properties / request_id / description
      Previous value: -"Omit on the first call. On the first call the tool does NOT execute: it returns status=approval_required, a preview and a request_id. A human must approve that request_id out of band (GigaMail console, `gigamail approvals approve`, or Telegram — all behind Windows Hello / Touch ID). Then call again with the same request_id to execute. The agent cannot approve; repeating the call without approval just returns awaiting_approval."New value: +"Omit on the first call. On the first call the tool does NOT execute: it returns status=approval_required, a preview and a request_id. A human must approve that request_id out of band (GigaMail console, `gigamail approvals approve`, or Telegram — all behind Windows Hello / Touch ID / Linux PIN). Then call again with the same request_id to execute. The agent cannot approve; repeating the call without approval just returns awaiting_approval."
  2. Addedv0.3.3

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true and openWorldHint=true, but the description adds substantial context beyond them: the two-phase approval gate, that the agent cannot self-approve, the 15-minute default expiry, dedup of identical pending requests, a 20-requests/hour cap returning status=rate_limited, audit logging of every phase, and the exact contents of the preview. It also explains why approval exists (files can be shared onward and leave the machine).

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?

It is front-loaded with the two-phase rule before any detail, and every sentence carries operational information. Some material about request_id duplicates the schema's own request_id description, which is the main source of redundancy in an otherwise dense paragraph.

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 four-parameter mutating tool with no output schema, the description covers the full invocation lifecycle, the return value ({id, name, link, ...} on execution), the failure statuses, and the prerequisite of a connected Google account. Nothing an agent needs to call it correctly is missing.

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 100%, so the baseline is 3, but the description adds real semantics beyond the schema — notably that the second call executes the approved arguments rather than the ones passed the second time, which is not stated in the schema. It also confirms the preview surfaces local_path, name and folder_id, tying the three content parameters to observable behavior.

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 sentence names a specific verb and resource — 'Upload a local file to the user's Google Drive' — which is immediately distinguishable from siblings like drive_read_file, drive_list_files and drive_delete_file. It also states the effect ('leaves the machine', can be shared onward), so the agent knows what class of action this is.

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?

It gives an explicit call protocol: first call without request_id, human approval out of band, second call with the request_id, plus failure modes (expiry, dedup, rate limit). What it does not do is route between sibling tools (e.g., why upload here versus create_folder or move_message), so there is no explicit alternatives/exclusion statement.

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