Skip to main content
Glama

uploadFile

Uploads a local file to Google Drive, auto-detects its MIME type, and returns the Drive file ID and URL for access or sharing.

Instructions

Uploads a local file from the filesystem to Google Drive. Auto-detects MIME type from file extension. Returns the uploaded file's Drive ID and URL.

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

Input Schema

NameRequiredDescriptionDefault
nameNoCustom name for the file in Drive. If not provided, uses the local filename.
mimeTypeNoMIME type override. If not provided, auto-detected from file extension.
localPathYesAbsolute path to the local file to upload.
parentFolderIdNoID of the Drive folder to upload into. If not provided, uploads to the root of My Drive.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv4.0.0-rc.1

TDQS

B3.3/5.0
Behavior3/5

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

With no annotations at all, the description carries the full disclosure burden. It does add useful behavior detail beyond the name: MIME type is auto-detected from the extension, and the call returns a Drive ID and URL. It omits mutation risks an agent needs, such as overwrite/duplicate handling, permission requirements, and failure modes for missing paths.

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?

Three short, front-loaded sentences: action, then behavior note, then return value. Nothing is redundant and no sentence needs rereading.

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?

All parameters are documented and the return values are stated, which compensates for the missing output schema. For a write operation with zero annotations, however, the description should say what happens on name collisions and whether permissions or scopes are needed to write into parentFolderId.

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 all four parameters (name, mimeType, localPath, parentFolderId) are already documented with defaults. The description's mentions of MIME auto-detection and local filesystem path add only slight reinforcement, which matches the baseline 3 for a fully documented schema.

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: 'Uploads a local file from the filesystem to Google Drive'. This clearly separates it from siblings like downloadFile, copyFile, and readFile without needing to name them. It stops short of any explicit sibling contrast, 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 Guidelines2/5

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

There is no guidance on when to choose this over copyFile (server-side duplicate) or readFile, and no prerequisites such as authentication, folder-write permissions, or size limits. The phrase 'local file from the filesystem' implies the source constraint but is never framed as a decision rule.

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