Skip to main content
Glama

get_drive_file_download_url

Download Google Drive files to local storage or generate temporary access URLs, with automatic format conversion for Google Docs, Sheets, and Slides to PDF, DOCX, XLSX, CSV, or PPTX formats.

Instructions

Downloads a Google Drive file and saves it to local disk.

In stdio mode, returns the local file path for direct access. In HTTP mode, returns a temporary download URL (valid for 1 hour).

For Google native files (Docs, Sheets, Slides), exports to a useful format:

  • Google Docs -> PDF (default) or DOCX if export_format='docx'

  • Google Sheets -> XLSX (default), PDF if export_format='pdf', or CSV if export_format='csv'

  • Google Slides -> PDF (default) or PPTX if export_format='pptx'

For other files, downloads the original file format.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
user_google_emailYesThe user's Google email address. Required.
file_idYesThe Google Drive file ID to download.
export_formatNoOptional export format for Google native files. Options: 'pdf', 'docx', 'xlsx', 'csv', 'pptx'. If not specified, uses sensible defaults (PDF for Docs/Slides, XLSX for Sheets). For Sheets: supports 'csv', 'pdf', or 'xlsx' (default).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure and does so effectively. It explains key behaviors: the tool saves files to local disk in stdio mode vs. returns temporary URLs in HTTP mode, URL validity (1 hour), and export defaults/formats for Google native files. It does not cover permissions, rate limits, or error handling, but provides substantial operational context.

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 appropriately sized and front-loaded: the first sentence states the core purpose, followed by mode-specific behaviors and detailed export rules. Every sentence earns its place by providing essential operational details without redundancy, making it efficient and well-structured for quick comprehension.

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 the tool's complexity (handling multiple modes and file types), no annotations, and an output schema present (which covers return values), the description is complete. It addresses purpose, usage context, behavioral details (modes, URL validity, export rules), and parameter semantics, leaving no significant gaps for agent understanding.

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

Parameters4/5

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

Schema description coverage is 100%, so the baseline is 3. The description adds significant value by explaining the semantics of 'export_format' in detail: it lists options ('pdf', 'docx', etc.), specifies defaults (PDF for Docs/Slides, XLSX for Sheets), and clarifies usage per file type (e.g., Sheets supports 'csv', 'pdf', or 'xlsx'). This goes beyond the schema's enum-like description, justifying a higher score.

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 tool's purpose with specific verbs ('downloads', 'saves', 'returns', 'exports') and resources ('Google Drive file', 'local disk', 'temporary download URL', 'Google native files'). It distinguishes itself from siblings like 'get_drive_file_content' by focusing on downloading files to disk/URL rather than retrieving content directly, and from 'export_doc_to_pdf' by handling multiple file types and formats.

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 for when to use this tool: for downloading Drive files to local disk or obtaining temporary URLs, with specific guidance for Google native files requiring export formats. However, it does not explicitly state when NOT to use it or name alternatives (e.g., 'get_drive_file_content' for direct content access without download), which prevents a perfect score.

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/HuntsDesk/ve-gws'

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