Skip to main content
Glama
redesignhealth

Google Workspace MCP Server

get_drive_file_content

Retrieves the content of any Google Drive file by ID, including files in shared drives, and extracts readable text from Google Docs, Sheets, Slides, and Office documents.

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
Behavior5/5

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

With no annotations provided, the description fully discloses the tool's behavior: exporting native Google Docs/Sheets/Slides as text/CSV, unzipping and parsing Office files, and attempting UTF-8 decode for other files with binary notification. It also mentions a metadata header in the return value, which is valuable context beyond the schema.

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 and efficient: a clear purpose statement, a bulleted breakdown of file-type handling, and a concise Args/Returns section. Every sentence adds value, and the formatting enhances readability and quick comprehension.

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?

Given the tool's moderate complexity and the presence of an output schema, the description covers all essential aspects: the action, the supported file types, the processing approach, and the return type. The metadata header mention hints at the output format without needing to duplicate schema details. No significant gaps are apparent.

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 must compensate. It provides brief definitions for user_google_email and file_id, which are helpful but not deeply detailed—e.g., it doesn't clarify the relationship between the email and the file access or the expected format of file_id. This is adequate but leaves room for more semantic richness.

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 the tool retrieves content of a specific Google Drive file by ID, with a specific verb and resource. It also distinguishes itself from siblings by mentioning support for shared drives and outlining the behavior for different file types, which sets it apart from tools like get_drive_file_download_url or list_drive_items.

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 clear context on when to use the tool (retrieve file content, including from shared drives) and what outcomes to expect for various file formats. It does not explicitly name alternative tools or exclusion criteria, but the behavior overview effectively guides selection for content retrieval needs.

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/redesignhealth/google-mcp-unofficial'

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