Skip to main content
Glama

drive_read_file

Read a Google Drive file's content by account and file ID; export Docs, Sheets, and Slides as text and return metadata for binary or oversized files.

Instructions

Read a Drive file's content (Google Docs/Sheets/Slides are exported to text). Binary or oversized files return metadata only.

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": {
      "account": "<account>",
      "file_id": "<file_id>"
    },
    "name": "drive_read_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
accountYesAccount email (must be authorized).
file_idYesDrive file id (from drive_search / drive_list_recent).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It usefully discloses that Google-native files are exported to text and that binary/oversized files return metadata only, but it does not define 'oversized,' explain permission failures, or describe whether text output is truncated or paginated.

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 two tightly written sentences with the core operation front-loaded and the important export/fallback caveat immediately after. Every phrase adds useful meaning without repetition.

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 two-parameter read tool with no output schema, the definition covers the main return modes: text export for Google-native files and metadata-only for binary or oversized files. The remaining gap is lack of detail on size thresholds, error conditions, and metadata shape.

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 both account and file_id are already documented in the input schema. The description adds no additional parameter semantics such as file_id format, account authorization behavior, or constraints, so it meets the baseline for fully covered schemas.

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?

The description states a specific verb and resource: 'Read a Drive file's content.' It also clarifies that Google Docs/Sheets/Slides are exported to text, which distinguishes this content-read operation from metadata-oriented siblings like drive_search or drive_list_recent. It stops short of explicitly naming or contrasting those siblings.

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 phrase 'Read a Drive file's content,' and the fallback behavior for binary/oversized files is noted. However, there is no explicit guidance on when to use this versus drive_search or drive_list_recent, nor any prerequisites beyond the schema's account authorization note.

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