Skip to main content
Glama

upload_file_to_drive

Upload files to Google Drive by converting base64-encoded data into documents, spreadsheets, or other file types with specified names and formats.

Instructions

Upload a file to Google Drive from base64-encoded data.

Accepts file data in base64 format and uploads it to Google Drive. Supports any file type. Returns the file ID and web link.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
file_dataYesBase64-encoded file data
nameYesName for the file in Drive
mime_typeYesMIME type of the file (e.g., 'application/pdf', 'text/plain')
parent_folder_idNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior2/5

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

With no annotations provided, the description carries full burden but offers minimal behavioral insight. It mentions 'Supports any file type' and return values, but lacks critical details like authentication requirements, rate limits, error handling, or whether the upload is synchronous/asynchronous. For a mutation tool with zero annotation coverage, this leaves significant gaps in understanding operational behavior.

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?

The description is efficiently structured in three brief sentences that cover core functionality, format support, and return values. There's no wasted text, though it could be slightly more front-loaded with key distinctions from sibling tools.

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?

Given the tool has an output schema (which handles return value documentation) and moderate schema coverage, the description provides basic context but is incomplete for a mutation tool. It lacks permission requirements, error conditions, and differentiation from similar upload tools, making it minimally adequate but with clear gaps.

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 75%, providing good baseline documentation for parameters. The description adds marginal value by explicitly mentioning 'base64-encoded data' (already in schema) and implying file type support, but doesn't clarify parameter interactions or provide examples beyond what the schema describes.

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 clearly states the action ('Upload a file to Google Drive') and resource ('from base64-encoded data'), making the purpose immediately understandable. It distinguishes itself from sibling tools like 'upload_file_to_drive_from_resource' by specifying the base64 source, though it doesn't explicitly contrast with all similar tools like 'upload_image_to_drive'.

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?

No guidance is provided about when to use this tool versus alternatives. The description doesn't mention when to choose this over sibling tools like 'upload_file_to_drive_from_resource' or 'upload_image_to_drive', nor does it specify prerequisites or constraints for usage.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/nickweedon/google-docs-mcp-docker'

If you have feedback or need assistance with the MCP directory API, please join our Discord server