Skip to main content
Glama

Google Workspace MCP Server

by ZatesloFL

get_doc_content

Extracts text content from Google Docs or Drive files using the document_id. Retrieves native Google Docs content via Docs API and extracts text from Office files (.docx) stored in Drive via Drive API.

Instructions

Retrieves content of a Google Doc or a Drive file (like .docx) identified by document_id.

  • Native Google Docs: Fetches content via Docs API.

  • Office files (.docx, etc.) stored in Drive: Downloads via Drive API and extracts text.

Returns: str: The document content with metadata header.

Input Schema

NameRequiredDescriptionDefault
docs_serviceYes
document_idYes
drive_serviceYes
user_google_emailYes

Input Schema (JSON Schema)

{ "properties": { "docs_service": { "title": "Docs Service" }, "document_id": { "title": "Document Id", "type": "string" }, "drive_service": { "title": "Drive Service" }, "user_google_email": { "title": "User Google Email", "type": "string" } }, "required": [ "drive_service", "docs_service", "user_google_email", "document_id" ], "type": "object" }

Other Tools from Google Workspace MCP Server

Related Tools

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

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