Skip to main content
Glama
c0webster

Hardened Google Workspace MCP

by c0webster

get_drive_file_download_url

Generate secure download URLs for Google Drive files, converting Google Docs, Sheets, and Slides to PDF, DOCX, XLSX, CSV, or PPTX formats for safe access.

Instructions

Gets a download URL for a Google Drive file. The file is prepared and made available via HTTP URL.

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) or CSV if export_format='csv' • Google Slides → PDF (default) or PPTX if export_format='pptx'

For other files, downloads the original file format.

Args: user_google_email: The user's Google email address. Required. file_id: The Google Drive file ID to get a download URL for. export_format: Optional 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).

Returns: str: Download URL and file metadata. The file is available at the URL for 1 hour.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
user_google_emailYes
file_idYes
export_formatNo

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 and does an excellent job disclosing key behavioral traits: it explains the file preparation process, format conversion rules for Google native files, default behaviors, and the critical 1-hour availability window for the download URL. The only minor gap is lack of explicit mention about authentication requirements or rate limits.

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 perfectly structured and front-loaded: the first sentence states the core purpose, followed by essential behavioral details, then clear parameter explanations, and finally return value information. Every sentence earns its place with zero wasted text.

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 (format conversions, time-limited URLs) and the presence of an output schema (which handles return value documentation), the description is complete: it covers purpose, behavioral nuances, parameter meanings, and key constraints. No essential information is missing for effective tool selection and invocation.

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

Parameters5/5

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

With 0% schema description coverage, the description fully compensates by providing comprehensive parameter semantics: it explains the purpose of 'user_google_email' (required user identification), 'file_id' (target file), and 'export_format' (optional conversion with specific enum values and defaults). The description adds substantial value beyond the bare schema.

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 specific action ('Gets a download URL') and resource ('for a Google Drive file'), distinguishing it from sibling tools like 'get_drive_file_content' (which retrieves content directly) or 'get_drive_shareable_link' (which provides a shareable link rather than a time-limited download URL). The purpose is unambiguous and well-differentiated.

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 about when to use this tool (to obtain a downloadable URL for Drive files, especially with format conversions for Google native files). It implicitly distinguishes from alternatives by focusing on URL generation rather than direct content retrieval, though it doesn't explicitly name when not to use it or list specific sibling alternatives.

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/c0webster/hardened-google-workspace-mcp'

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