Skip to main content
Glama

get_drive_file_content

Retrieve content from Google Drive files by ID, extracting text from Docs, Sheets, Office files, PDFs, and images for analysis or processing.

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
user_google_emailYesThe user’s Google email address.
file_idYesDrive file ID.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

No annotations are provided, so the description carries the full burden. It effectively discloses behavioral traits: it's a read operation (implied by 'retrieves'), supports shared drives, handles multiple file types with specific extraction methods (e.g., text export for native Google files, base64 for images), and includes fallback behaviors (e.g., download hints for scanned PDFs). However, it lacks details on error handling, rate limits, or authentication needs beyond the user_google_email parameter.

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 front-loaded with the core purpose, followed by a bulleted list detailing file type handling. Each bullet point adds essential information without redundancy, making it efficient and easy to scan.

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 complexity (handling multiple file types) and the presence of an output schema (which covers return values), the description is complete enough. It thoroughly explains the retrieval behavior, supported formats, and extraction methods, compensating for the lack of annotations and providing sufficient context for effective use.

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 schema description coverage is 100%, with clear descriptions for both parameters (user_google_email and file_id). The description does not add meaning beyond the schema, as it focuses on file content retrieval and types without elaborating on parameter usage. Baseline 3 is appropriate since the schema adequately documents the parameters.

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 verb 'retrieves' and the resource 'content of a specific Google Drive file by ID', making the purpose explicit. It distinguishes from siblings like 'get_drive_file_download_url' (which provides a URL instead of content) and 'get_doc_content' (which is specific to Docs), by specifying support for shared drives and various file types.

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 this tool—for retrieving content from various file types in Google Drive, including shared drives. It implies usage by detailing supported file formats and extraction methods, but does not explicitly state when not to use it or name specific alternatives among siblings.

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/HuntsDesk/ve-gws'

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