Skip to main content
Glama

Read a Drive file

drive_read
Read-onlyIdempotent

Read a Google Drive file as editable text—Docs to plain text, Sheets to CSV, Slides to plain text. For binary files, get a link instead of content.

Instructions

Read a file as text. Google Docs are exported to plain text, Sheets to CSV and Slides to plain text; ordinary text files are downloaded as they are. Binary files (PDF, images, archives) are refused with a link instead — this tool does not download them. Long content is truncated and says so.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
accountYesConfigured account: the email address, or the alias given at setup.
file_idYesFile id, as returned by drive_search.
max_charsNoCut the content at this many characters. Default 60000.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already mark the operation as read-only, idempotent, open-world, and non-destructive, but the description adds valuable behavioral context beyond those: Google format exports, binary-file refusal with a link, and truncation behavior. It explicitly says truncation is indicated in the output, which an agent needs to interpret the result correctly.

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 concise and front-loaded. The opening sentence names the operation immediately, and each subsequent sentence adds a distinct, necessary behavioral fact without repetition or padding. Every sentence earns its place.

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?

There is no output schema, but the description covers what the tool returns: text content, exported formats, refusal with a link for binaries, and truncation notice. Combined with annotations that cover safety and the schema that covers parameters, this is sufficiently complete for an agent to invoke the tool correctly.

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?

The input schema has 100% description coverage and already documents each parameter clearly, including file_id provenance, account aliasing, and max_chars bounds/default. The description adds no additional parameter-level meaning, so the baseline of 3 is appropriate.

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: 'Read a file as text.' It further describes the exact transformation behavior for different file types (Google Docs to plain text, Sheets to CSV, Slides to plain text), which clearly distinguishes it from sibling tools like drive_search, drive_list, drive_upload, and drive_create_doc.

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?

The description clearly conveys when it is appropriate to use this tool: when the agent needs the textual content of a file. It also gives a when-not signal by saying binary files are refused and not downloaded. However, it does not explicitly name alternative sibling tools or provide a direct comparison, so it stops short of full exclusions.

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