Skip to main content
Glama

downloadFile

Downloads a Google Drive file to a local path, exporting Google Workspace files (Docs, Sheets, Slides, Drawings) to a chosen format such as PDF, DOCX, XLSX, or PPTX.

Instructions

Downloads a file from Google Drive to the local filesystem. For Google Workspace files (Docs, Sheets, Slides, Drawings), specify an export format (e.g. pdf, docx, md, xlsx, csv, pptx). For regular files (images, PDFs, etc.), downloads the original file directly.

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": {
      "fileId": "<fileId>",
      "localPath": "<localPath>"
    },
    "name": "downloadFile"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileIdYesThe ID of the file to download.
localPathYesThe local file path to save the downloaded file to. Can be an absolute path or relative to the current working directory. If a directory is provided, the file will be saved with its Drive name.
exportFormatNoExport format for Google Workspace files. Docs: pdf, docx, md, txt, html, rtf, odt, epub. Sheets: pdf, xlsx, csv, tsv, ods. Slides: pdf, pptx, odp, txt. Drawings: pdf, png, jpg, svg. Ignored for non-Google files (they download as-is).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv4.0.0-rc.1

TDQS

A3.6/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 burden. It does disclose the key behavioral fact that this writes to the local filesystem and that exportFormat is ignored for non-Google files, but says nothing about overwriting an existing local file, permission/scope requirements, size limits, or what happens on failure.

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?

Three front-loaded sentences with the core action first and the conditional branch second; nothing is padded. Minor redundancy with the schema's exportFormat documentation costs it a point.

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?

No output schema and no annotations, yet the description explains the destination, the Google-vs-regular branching, and where the format matters, which is enough to invoke it correctly. It would be stronger with a note on return value and overwrite behavior.

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 the schema already defines fileId, localPath (including the directory case), and the full enum with per-type mappings. The description repeats the export-format examples rather than adding format constraints or edge cases the schema lacks; baseline 3 applies.

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 ('Downloads a file from Google Drive to the local filesystem'), which makes the local-filesystem write side effect explicit and distinguishes it in spirit from read/content-oriented siblings such as readDriveFile. It stops short of naming any sibling alternative, so the differentiation is implied rather than explicit.

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 a clear conditional rule: Workspace files (Docs, Sheets, Slides, Drawings) need an export format, regular files download as-is. What is missing is guidance on choosing among alternatives (e.g. when to read content instead of saving to disk) and on prerequisites such as auth or overwrite expectations.

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