Skip to main content
Glama

Upload file to Drive

upload_to_drive

Upload a local file to Google Drive, optionally into a class or specified folder, and get the Drive file ID for use in Classroom attachments.

Instructions

Upload a local file to your Google Drive (optionally into a folder, e.g. your class folder). Returns the Drive file id. NOTE: the request format for this write was derived from the Classroom web client's code and has not been verified against a live account; check the result.

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": {
      "path": "<path>"
    },
    "name": "upload_to_drive"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoFile name in Drive (default: local name)
pathYesLocal file path
courseNoPut it in your Drive folder for this class instead of `folder`
folderNoDrive folder id/link

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

Beyond the annotations (readOnlyHint=false, openWorldHint=true, destructiveHint=false), the description discloses that the write request format was reverse-engineered from the Classroom web client and is unverified, and tells the agent to check the result — a genuinely useful reliability warning. It also states the return value (file id), though it does not cover permissions or overwrite 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?

Two sentences, purpose and return value front-loaded, with the caveat placed last where it belongs. No filler, though the parenthetical folder example is slightly redundant with the parameter descriptions.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 4-parameter, fully documented, non-destructive write tool with no output schema, the description covers purpose, return value, and an important reliability caveat. Remaining gaps (permissions, overwrite/duplicate-name behavior) are minor.

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 parameter documentation is already handled. The description only restates the optional folder targeting and the class-folder example, adding no syntax or format detail (e.g. accepted folder id vs link forms) beyond the 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 (upload) and resource (local file to Google Drive) plus optional folder targeting, and notes it returns the Drive file id. It does not differentiate from the sibling upload_and_attach_file, so an agent must infer the boundary between plain Drive upload and upload-with-attachment.

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?

Usage is only implied: 'optionally into a folder, e.g. your class folder' and the course parameter hint at class-folder placement, but the description never says when to prefer this over upload_and_attach_file, nor any prerequisites or exclusions.

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