Skip to main content
Glama

Upload a local file to Google Drive

upload

Uploads a local file to Google Drive and returns its URL, converting office files to native Google Docs, Sheets, or Slides with formatting preserved.

Instructions

Upload a local file to Google Drive and return its URL. By default (convert: auto) spreadsheets (xlsx/csv/tsv/ods) become Google Sheets, documents (docx/md/txt/html/rtf/odt) become Google Docs, and slides (pptx/odp) become Google Slides via Drive's own import, which carries over most formatting. Other files are stored as-is. Files go to My Drive root unless folder_id is given. If drivelift is not set up, the error carries next_steps to relay to the user.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameNoName in Drive. Default: the file name (extension dropped when converting)
pathYesLocal file path (absolute, or relative to the server's working directory)
convertNoauto (default) / none / spreadsheet / document / presentation
folder_idNoDestination folder ID (the part after /folders/ in the folder URL). Caution: with the drive.file scope, folders that drivelift did not create are usually invisible to it and Drive returns 404; omit it to upload to My Drive root.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, and openWorldHint=true. The description adds valuable behavioral context: conversion rules for various file types, default destination, and error behavior with next_steps. It does not contradict the annotations and provides meaningful detail beyond them, though it could mention potential side effects like overwriting existing files (though it doesn't, which is fine as it's not destructive).

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?

The description is concise yet comprehensive, with each sentence adding distinct value. It is front-loaded with the core action and return value, then logically progresses to conversion behavior, destination, and error handling. No wasted words; every sentence earns its place.

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 tool with 4 parameters, all documented, and no output schema, the description is complete. It explains return value (URL), conversion behavior, folder handling, and error handling. The complexity is moderate, but the description covers all necessary aspects for an agent to invoke it correctly, including edge cases like folder_id visibility.

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

Parameters5/5

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

Schema coverage is 100%, so all parameters have descriptions. The description significantly enhances this by explaining the convert enum in detail (what happens with auto, which file types map to which Google format), cautioning about folder_id with drive.file scope (404 risk), and clarifying the name default (extension dropped when converting). This goes well beyond the schema's terse descriptions.

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 description clearly states the action (upload a local file), the target (Google Drive), and the outcome (return its URL). It also details conversion behavior for different file types, which distinguishes it from any potential sibling upload tools. The verb 'upload' is specific and the resource is unambiguous.

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?

The description provides clear context on default behavior (My Drive root) and when to use folder_id, and it explains error handling when drivelift is not set up. While it doesn't explicitly state when not to use this tool or name alternatives, the sibling tools are all auth/setup related, so the usage context is clear. It could be more explicit about prerequisites (e.g., auth required), but the mention of drivelift setup covers that.

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