Skip to main content
Glama

Download file

download_file

Downloads Google Classroom attachments and Drive files to disk, exporting Docs, Sheets, and Slides to a chosen format such as PDF, DOCX, or XLSX.

Instructions

Download a Classroom attachment (Drive file) to disk. Google Docs/Sheets/Slides are exported (default PDF for download; choose with export_format).

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": {
      "file": "<file>"
    },
    "name": "download_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileYesDrive file id or any drive.google.com / docs.google.com link
save_toNoDirectory or full file path (default /root/Downloads/classroom-mcp)
export_formatNoFor Google Docs/Sheets/Slides: pdf, docx, xlsx, pptx, txt, csv, html, md, png, or a MIME type

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, and openWorldHint=true, so the write/non-destructive profile is covered. The description adds genuinely new behavior beyond that — Google Docs/Sheets/Slides are converted via export rather than downloaded natively, with PDF as default — but says nothing about overwriting existing files at the target path, auth requirements, or size/latency 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?

Two tight sentences with the core action first and the export caveat immediately after. Nothing is redundant and no sentence needs trimming.

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 three-parameter tool with full schema coverage, annotations, and no output schema, the description covers the main non-obvious behavior (export conversion) and destination default. It falls just short on write-side behavior such as overwrite handling and failure modes when a file is not accessible.

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 description coverage is 100%, so all three parameters are already documented with defaults and accepted values. The description only restates the export_format/PDF-default mechanics already present in the schema, adding no syntax or edge-case meaning beyond it. Baseline 3 is appropriate.

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 ('Download a Classroom attachment (Drive file) to disk') plus the key twist that Google-native docs are exported rather than fetched raw. It implicitly separates itself from read_file_content and get_file_info by writing to local disk, but never names or contrasts those siblings explicitly.

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 implied by the purpose: download when you want the bytes on disk. There is no explicit when-to-use/when-not guidance, no mention of prerequisites (access permissions on the Drive file), and no pointer to alternatives such as read_file_content for inspecting content without saving.

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