Skip to main content
Glama
Google Workspace MCP
by holms

Upload Drive File

upload_drive_file

Upload text content or local files to Google Drive by providing a file name, optional MIME type, and parent folder; use local paths for binary or large files.

Instructions

Upload a file to Google Drive. Pass content (a text string) for small text files, or local_path (a local filesystem path) for binary/large files.

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_name": "<file_name>"
    },
    "name": "upload_drive_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
contentNo
file_nameYes
mime_typeNotext/plain
local_pathNo
parent_folder_idNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.2/5.0
Behavior2/5

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

With no annotations at all, the description carries the full behavioral burden, and it discloses very little: no mention of required OAuth scopes, whether an existing file with the same name is overwritten or duplicated, what happens if both `content` and `local_path` are supplied, or any size limits. The only behavioral disclosure is the two-mode input model, which is thin for a write operation.

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 tight sentences with the core action front-loaded and the parameter guidance following immediately; nothing is redundant. Slightly more structure (e.g., separating required vs optional inputs) would improve it, but there is no wasted wording.

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?

An output schema exists, so return values need not be explained, but for a five-parameter write operation with zero annotations and zero schema descriptions, the definition should cover the mime_type default, default destination, and the mutual exclusivity of content vs local_path. It is adequate to get the call roughly right but not fully self-sufficient.

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 0% across five parameters, so the description must compensate, and it does add real meaning for the two hardest parameters: `content` as a text string and `local_path` as a filesystem path for binary/large payloads. It leaves `mime_type`'s default behavior, `parent_folder_id`'s destination semantics, and the interaction between the two content parameters entirely undocumented.

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 gives a specific verb and resource ("Upload a file to Google Drive") that is unambiguous and clearly distinct from sibling operations like delete, download, move, or share. It stops short of naming a sibling to route against, but the purpose is unmistakable from the first clause.

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?

It provides conditional guidance between the two input modes — `content` for small text files, `local_path` for binary or large files — which is genuinely useful selection advice. However, it says nothing about when to prefer this tool over other creation paths (e.g., creating a doc/sheet) or any prerequisites such as target folder or permissions.

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