Skip to main content
Glama

Drive Get

drive_get
Read-only

Downloads Google Drive files to a local cache; exports Docs as Markdown, Sheets as CSV, Slides as PDF, and supports custom export MIME types.

Instructions

Download a Drive file to the local cache directory.

Google Docs, Sheets and Slides are exported: Docs as Markdown, Sheets as CSV (first sheet only), Slides as PDF. Pass export_mime_type for another format, for example application/pdf for a Doc or application/vnd.openxmlformats-officedocument.spreadsheetml.sheet for a Sheet with several tabs. Other Google-native types need export_mime_type. For binary files export_mime_type is ignored. Shortcuts cannot be downloaded; use their target.

The file is saved to ~/.cache/hermes-google/drive/<file_id>/. Use Claude Code's Read tool on the returned path to view the contents.

Returns dict with key: path (absolute local file path).

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_id": "<file_id>"
    },
    "name": "drive_get"
  }
}

Input Schema

NameRequiredDescriptionDefault
file_idYes
export_mime_typeNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.4.1
    • addedInput schema / properties / export_mime_type
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null
      +}
  2. First observedv0.1.0

TDQS

A4.7/5.0
Behavior5/5

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

The annotations already mark this as read-only and non-destructive, but the description adds substantial behavior: Google-native export defaults, first-sheet-only CSV export, custom export formats, binary handling, shortcut restrictions, cache path layout, and return value. These details go well beyond the annotations.

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 front-loaded with the primary action, followed by export rules, shortcut handling, save location, and return value. Each paragraph serves a distinct operational need without filler.

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?

For a two-parameter download/export tool with rich output behavior, the description is complete. It covers format conversion, edge cases, file location, and how to inspect the result, while annotations and the output schema cover safety and structured return data.

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?

With 0% schema description coverage, the description must carry parameter meaning. It thoroughly explains export_mime_type: defaults per Google-native type, custom MIME examples, binary-file behavior, and when it is required. It is less explicit about file_id, though that parameter is straightforward.

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 states a specific verb and resource: 'Download a Drive file to the local cache directory.' It also distinguishes the operation through export conversion behavior for Docs, Sheets, and Slides, which siblings like drive_list, drive_search, or drive_upload do not cover.

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?

It clearly establishes the use case: retrieving file contents into the local cache. It also gives a useful edge-case instruction for shortcuts ('use their target'), but it does not explicitly say when to choose this over drive_search or how to first locate files.

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