Skip to main content
Glama

drive_read_file

Read-onlyIdempotent

Extract text from a Google Drive file by file ID. Converts Docs, Sheets, and Slides first, then deletes the temporary copy; requires a connected Google account.

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. Requires a connected Google account.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
file_idYesFile id from drive_list_files.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.3.3

TDQS

A4.2/5.0
Behavior5/5

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

Annotations already declare a safe, idempotent read, but the description adds real behavior beyond them: Docs/Sheets/Slides are converted to Office format before reading, the file is fetched to a temporary path and deleted immediately, and a connected Google account is required. These conversion, transient-storage, and auth details are exactly the context an agent cannot 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.

Conciseness5/5

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

Three short sentences, front-loaded with what is returned, then the conversion behavior, then the temp-file lifecycle. No filler and every sentence carries information.

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?

With no output schema, the description usefully states the return shape and covers auth and side effects, which is enough to call it correctly. Minor gaps remain: behavior on unsupported/non-exportable file types and error cases are unaddressed.

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?

Only one parameter, and schema description coverage is 100% ('File id from drive_list_files'). The description adds nothing about file_id itself, so the baseline of 3 applies; the schema does the heavy lifting.

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 (Extract the text) and resource (a Drive file) and even sketches the return shape {filename, kind, text}. This clearly distinguishes it from drive_list_files, drive_upload_file, and drive_delete_file, so an agent can pick it 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 Guidelines3/5

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

The description implies the read use case and notes the prerequisite ('Requires a connected Google account'), and the 'read like any attachment' framing loosely parallels read_attachment. However, it never explicitly says when to use this versus drive_list_files or read_attachment, nor any when-not conditions.

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