Skip to main content
Glama

Drive Get File

drive_get_file
Read-onlyIdempotent

Get metadata for a Google Drive file or folder by ID, including type, size, owners, permissions, and export formats needed to retrieve its content.

Instructions

Get the metadata of one Drive file or folder by ID, including how its content can be retrieved. To find files by name or filter use drive_list_files; to read a file's text use drive_read_file, and to save or export it drive_download_file. Returns file (id, name, kind, mime_type, size (Drive's string) and size_bytes (the number), created_at, modified_at, owners, last_modified_by, parent_ids, drive_id, web_url, shared, trashed, can_edit, can_download, is_google_native, export_formats: the MIME types a Google-native file can be exported to).

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_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
file_idYesDrive file ID: the id field of Drive and search_workspace results, or the long ID in a Drive, Docs, Sheets or Slides URL.

Output Schema

NameRequiredDescriptionDefault
fileNo
account_timezoneNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.2.0

TDQS

A4.1/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false and openWorldHint=true, so the safety profile is fully covered. The description adds one genuine behavioral fact — that this returns metadata only, plus the information needed to retrieve content — but says nothing about permission failures, error behavior, or cost. With annotations doing most of the work, this is a modest but real contribution.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The opening two clauses are well front-loaded and earn their place. The second sentence, however, is a long run-on enumeration of return fields that duplicates the output schema, adding bulk without adding selection or invocation value.

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 single-parameter read tool with complete annotations and an output schema, nothing needed to call it correctly is missing: purpose, routing, and the metadata-only scope are all stated. The return-field listing is redundant rather than a completeness gap.

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% and the file_id schema description already explains the accepted ID forms (id field from results, long ID from Drive/Docs/Sheets/Slides URLs). The prose adds no syntax, format, or validation detail beyond that, so the schema carries the parameter semantics entirely.

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?

States a specific verb and resource ("Get the metadata of one Drive file or folder by ID") and immediately delimits the scope as metadata rather than content. It then names the sibling tools that handle the adjacent jobs (drive_list_files, drive_read_file, drive_download_file), so an agent can distinguish it without opening any schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit when-to-use-something-else routing: name/filter lookup goes to drive_list_files, text reading to drive_read_file, save/export to drive_download_file. The selection conditions are concrete rather than implied, leaving little for the agent to infer.

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