Skip to main content
Glama
tom275275

Google Workspace MCP Server

by tom275275

get_drive_file_content

Fetches and extracts readable text from any Google Drive file by ID, including files in shared drives. Converts Docs, Sheets, Slides, Office documents, and binary files into plain text.

Instructions

Retrieves the content of a specific Google Drive file by ID, supporting files in shared drives.

• Native Google Docs, Sheets, Slides → exported as text / CSV. • Office files (.docx, .xlsx, .pptx) → unzipped & parsed with std-lib to extract readable text. • Any other file → downloaded; tries UTF-8 decode, else notes binary.

Args: user_google_email: The user’s Google email address. file_id: Drive file ID.

Returns: str: The file content as plain text with metadata header.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
file_idYes
user_google_emailYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.14.3

TDQS

A4.4/5.0
Behavior5/5

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

With no annotations provided, the description carries the full burden, and it delivers: it discloses that native files are exported, Office files are unzipped and parsed with std-lib, other files are downloaded with a UTF-8 attempt and binary fallback, and results include a metadata header. This is concrete, non-obvious behavioral detail that helps an agent predict outcomes.

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 with a one-line purpose, a compact bulleted list of behavior per file type, and a clear Args/Returns section. Every section earns its place, and the most important scoping information is front-loaded.

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 inputs, return type, shared-drive support, file-type conversion strategies, and binary fallback, which is strong for a read-only retrieval tool. It stops short of addressing permissions, size limits, or error behavior, but these are minor given the presence of an output schema and the detailed behavioral list.

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?

Schema coverage is 0%, so the description must compensate. It defines both required parameters: user_google_email as the user's Google email address and file_id as the Drive file ID. This adds meaning beyond the bare string types, though it could go further by clarifying the email's role in auth/context or expected file_id formats.

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?

Description clearly states a specific verb and resource: retrieves the content of a Google Drive file by ID, with explicit mention of shared drive support. The bulleted format breakdown distinguishes it from sibling tools like get_drive_file_download_url and list_drive_items by emphasizing extracted, human-readable content.

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 usage context is implied through the bulleted file-type handling: use this when you need parsed text/CSV from Google-native or Office files, and when falling back to raw download may produce binary. However, the description never explicitly names alternative sibling tools or states when not to use this tool, leaving selection partially to inference.

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

Deploy Server

Other Tools