Skip to main content
Glama
taylorwilsdon

Google Workspace MCP Server - Control Gmail, Calendar, Docs, Sheets, Slides, Chat, Forms & Drive

Get Drive File Content

get_drive_file_content
Read-onlyIdempotent

Retrieve a Google Drive file's content by ID, including from shared drives: exports Docs/Sheets/Slides to text/CSV, parses Office and PDF, returns images as base64, and handles binaries.

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. • PDFs → text extracted with pypdf when possible; scanned/image-only PDFs fall back to a download hint. • Images → returned as base64 with MIME metadata for multimodal clients. • Any other file → downloaded; tries UTF-8 decode, else notes binary.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
file_idYesDrive file ID.
user_google_emailYesThe user’s Google email address.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior5/5

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

Beyond the annotations (readOnly, idempotent, non-destructive), the description discloses meaningful behavioral traits: native docs are exported as text/CSV, Office files are unzipped, PDFs may fall back to a download hint for scanned images, images return base64 with MIME metadata, and other binaries are handled with UTF-8 detection. This adds significant context.

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 well-structured: a single purpose sentence followed by bullet points for each file-type behavior. Each bullet contributes unique information with no redundancy or filler, making it easy to scan.

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 read-only annotations and the presence of an output schema, the description covers the necessary context: shared drives, format-specific extraction, fallbacks, and binary handling. It does not explain errors or auth, but those are already covered by annotations and the user_google_email parameter. The coverage is strong, though not exhaustive.

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 already provides clear descriptions for both params (file_id and user_google_email) with 100% coverage. The description adds no additional parameter semantics beyond the phrase 'by ID', which duplicates schema information. Baseline 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?

The description clearly states 'Retrieves the content of a specific Google Drive file by ID' and then details format-specific behaviors, making the purpose unambiguous. It distinguishes itself from download-URL or search siblings 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 Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied by the description (i.e., use when you need file content), but no explicit alternatives or when-not-to-use guidance is provided. For example, it does not mention get_drive_file_download_url as the alternative for when a URL is sufficient. This falls into 'implied usage' rather than clear, explicit guidance.

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/taylorwilsdon/google_workspace_mcp'

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