Skip to main content
Glama
hoaaah
by hoaaah

drive_read_file_content

Read-onlyIdempotent

Extract text content from a Google Drive file into the current conversation. Reads Docs, Sheets, Slides, and text files; binary files require a separate download method.

Instructions

Read the text content of a Drive file directly into the conversation.

Google Docs export as plain text, Google Sheets as CSV, Google Slides as plain text. Other text-based files (txt, md, csv, json, code files) are read directly. Binary files (images, PDFs, etc.) are not supported here — use drive_download_file to save them locally instead.

Returns: str: The file's text content (truncated to max_chars), or an error message explaining why the file couldn't be read as text.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
paramsYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv0.1.0

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already provide readOnlyHint, idempotentHint, and destructiveHint=false. The description adds valuable behavioral context: Google Docs export as plain text, Sheets as CSV, Slides as plain text, binary files rejected, and returned text is truncated to max_chars. It also discloses that errors are returned as messages rather than thrown. No contradiction with annotations.

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 well-structured: a clear one-line purpose, a compact breakdown of format handling, an explicit exclusion with alternative, and a concise Returns section. Every sentence carries useful information and no filler is present.

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?

The description covers supported formats, unsupported types, the alternative tool, truncation behavior, and return format. It is complete for a read-only text extraction tool. A minor gap is the lack of guidance on when to use this over sibling document/sheet readers like docs_read_document or sheets_read_range, but this is not critical given the clear purpose.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema's nested definitions already describe file_id and max_chars, but the top-level parameter coverage is reported as 0%. The description compensates by explaining that max_chars truncates returned text and by describing the conversion behavior that affects what content is read. It does not add much about file_id, but the schema covers that; overall the description supplements the schema meaningfully.

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 and resource ('Read the text content of a Drive file directly into the conversation') and immediately clarifies scope by listing supported formats (Docs, Sheets, Slides, text files). It also explicitly distinguishes itself from drive_download_file by noting binary files are not supported here, so an agent can tell tools apart.

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 gives an explicit alternative for unsupported binary files: 'use drive_download_file to save them locally instead.' It also explains what kinds of files are read directly. However, it does not mention when an agent should prefer this over docs_read_document or sheets_read_range, so guidance is incomplete but not absent.

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

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/hoaaah/Google-Workspace-MCP-Server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server