Skip to main content
Glama

Upload File

upload_file

Upload a binary file (xlsx, pdf, docx, png, etc.) to Drive from base64-encoded content. Use this when you have file bytes from the conversation (e.g. an attached spreadsheet) and need to put them in the user's Drive. Set convert=true to have Drive convert Office formats to native Google formats during upload. Maximum 20MB decoded.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesFilename including extension (e.g. 'workout-plan.xlsx')
convertNoIf true and the source is convertible (.xlsx → Sheets .docx → Docs .pptx → Slides .pdf/.csv → matching native), Drive converts during upload. If false (default) the file is stored as-is.
mime_typeYesThe source file's MIME type. Examples: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet' for .xlsx 'application/pdf' for .pdf 'image/png' for .png
content_base64YesThe file bytes encoded as base64. Maximum decoded size 20MB.
parent_folder_idNoOptional folder ID to upload into. Defaults to the user's default folder if one is set.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYes
urlYes

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Adds two behaviors beyond the annotations: the 'Maximum 20MB decoded' size cap and the convert=true conversion semantics (Office formats → native Google formats). Annotations already signal a non-idempotent write (readOnlyHint=false, idempotentHint=false), and the description is consistent with them; it stops short of describing duplicate-file behavior on repeated calls, but that is partly carried by idempotentHint=false.

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 sentences with no filler: purpose, when-to-use, and the two behavioral caveats (conversion, size limit). The most distinctive fact — base64 ingestion — is front-loaded, and 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?

Given 100% parameter coverage, an output schema, and safety annotations, the description covers the remaining decision-relevant facts: allowed source formats, ingestion path, conversion toggle, and the 20MB boundary. Nothing an agent needs to select or invoke this tool correctly is missing.

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 coverage is 100%, so all five parameters are already documented; the description mostly restates content_base64, convert, and the 20MB cap found in the schema. It adds modest context via file-type examples and the 'attached spreadsheet' use case, but it does not meaningfully extend parameter semantics beyond what the schema provides.

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?

States a specific verb and resource — 'Upload a binary file … to Drive from base64-encoded content' — with concrete format examples (xlsx, pdf, docx, png). The second sentence ('when you have file bytes from the conversation … put them in the user's Drive') clarifies its niche relative to sibling creation tools like create_document or create_spreadsheet, which build files natively rather than ingesting external bytes.

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?

Gives an explicit when-to-use condition: 'Use this when you have file bytes from the conversation (e.g. an attached spreadsheet) and need to put them in the user's Drive.' It does not state when-not conditions or explicitly contrast alternatives such as convert_to_google_format, so exclusions are left unstated — clear context but no named alternatives.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

TDQS

A3.9/5.0
Disambiguation4/5

Most tools target a distinct resource and action, and the detailed descriptions separate similar-sounding ones. A few pairs could still be confused: access_file_by_url vs request_file_access, and create_document vs format_document, but their trigger conditions are described clearly enough to avoid frequent misselection.

Naming Consistency4/5

The set mostly follows a verb_noun pattern with consistent snake_case, e.g. create_document, update_spreadsheet, delete_file. Minor deviations like build_presentation instead of create_presentation, and format_document alongside create_document, break the pattern slightly but remain readable and predictable.

Tool Count3/5

25 tools is at the heavy end of the scale, though the domain spans Drive, Docs, Sheets, and Slides, which justifies a large surface. Some consolidation is possible — access_file_by_url and request_file_access overlap, as do create_document and format_document — so the count feels slightly bloated rather than tightly scoped.

Completeness4/5

The server covers the core file lifecycle well: create, read, update, delete, move, list, search, upload, and access control across all major Google Workspace document types. Minor gaps exist, such as no rename, copy, export, or direct sharing tool, but agents can work around these without major failures.

Resources