Skip to main content
Glama

drive_read_file

Read-onlyIdempotent

Extracts readable text from a Google Drive file, converting Docs, Sheets, and Slides to Office formats and retrieving it temporarily so agents can process the content.

Instructions

Extract the text of a Drive file: {filename, kind, text}. Google Docs, Sheets and Slides are exported to their Office format first, so they read like any attachment. The file is fetched to a temporary path and deleted straight after. Masked like read_attachment when the user chose to mask what agents read for the active account. Requires a connected Google account.

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

Input Schema

NameRequiredDescriptionDefault
file_idYesFile id from drive_list_files.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.3.3

TDQS

A4.4/5.0
Behavior5/5

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

Beyond the annotations (which already cover read-only, idempotent, non-destructive), the description discloses the fetch-to-temporary-path-then-delete lifecycle, the format-conversion side effect for Google-native docs, and account-level masking behavior. These are exactly the operational traits an agent could not infer from structured fields.

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

Conciseness4/5

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

Front-loaded with purpose and return shape, with no filler sentences. The text has awkward mid-sentence line breaks and a slightly truncated clause ("Masked like read_attachment when..."), which costs a point on structure but not on content.

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?

Though there is no output schema, the description compensates by naming the returned fields, and it covers auth requirements, conversion behavior, and temporary-file handling. For a simple one-parameter read tool, nothing an agent needs to invoke it correctly is missing.

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% and the single parameter file_id already documents its origin ("File id from drive_list_files"). The description adds no further detail about the parameter, which is the appropriate baseline when the schema does the work.

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 opens with a specific verb+resource ("Extract the text of a Drive file") and even names the return shape ({filename, kind, text}). It distinguishes itself from attachment readers by explaining that Docs/Sheets/Slides are converted to Office formats first, so an agent can tell what this does without opening the schema.

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 states a clear precondition ("Requires a connected Google account") and situates itself relative to read_attachment via the shared masking behavior. It does not explicitly say when to prefer drive_read_file over read_file or read_attachment, so routing is inferred rather than spelled out.

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