Skip to main content
Glama
Skeptomenos

google-workspace-mcp-advanced

by Skeptomenos

get_drive_file_content

Retrieve text content of any Google Drive file by ID, including Google Docs, Office files, and other formats, with plain text output.

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
user_google_emailYes
file_idYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

With no annotations provided, the description carries full burden. It discloses export behavior for native Google apps, parsing for Office files, and fallback for other files. It also notes the return format includes a metadata header. This provides good transparency beyond just a generic 'get content' statement.

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?

The description is well-structured with a main sentence followed by bullet points for file handling. It is front-loaded with the core purpose. While a bit detailed, it efficiently covers multiple scenarios without unnecessary verbosity.

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?

Given the output schema exists (though not visible), the description covers return format as plain text with metadata header. It explains handling for various file types, which is comprehensive for a file content retrieval tool. It could mention authentication or size limits, but the core completeness is strong.

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 no descriptions (0% coverage), so the description adds meaning by labeling user_google_email as the user's Google email and file_id as the Drive file ID. These are minimal but sufficient given the self-explanatory parameter names.

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 clearly states it retrieves content of a specific Google Drive file by ID, supporting shared drives. The verb 'Retrieves' and resource 'content' are specific, and it distinguishes from siblings like get_drive_file_download_url or get_doc_content by focusing on content extraction.

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 provides detailed context on when to use the tool by explaining how different file types are handled (Google Docs, Office files, etc.). It implies use for text extraction but does not explicitly contrast with alternatives like get_doc_content or download_doc_tabs, so it's clear but not exhaustive.

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

Install Server

Other Tools

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/Skeptomenos/google-workspace-mcp-advanced'

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