Skip to main content
Glama
redesignhealth

Google Workspace MCP Server

get_doc_content

Fetch text from Google Docs or Drive files (e.g., .docx) using document ID and user email. Returns content with metadata header.

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

TableJSON Schema
NameRequiredDescriptionDefault
document_idYes
user_google_emailYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

With no annotations, the description carries the full burden. It discloses that native Google Docs are fetched via Docs API and Office files are downloaded and text-extracted, and mentions the metadata header in the return. However, it omits details on authentication, error handling, and limitations, so transparency is incomplete.

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 clear opening statement, bullet points for distinct behaviors, and a return type line. Every sentence adds value with no redundancy, making it easy to parse quickly.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The tool has moderate complexity with two modes and two required parameters. The description covers core functionality and return type, but lacks details on user_google_email, prerequisites like authentication, and edge cases. It is adequate but not comprehensive for an agent to confidently invoke.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must compensate. It explains document_id as the identifier for the doc/file, but user_google_email is not explained at all. No formats, usage, or additional context are provided, leaving a significant gap for one of the two required 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 tool retrieves content of a Google Doc or Drive file (like .docx) using document_id, with specific verbs and resource scope. It explicitly distinguishes between handling native Google Docs via Docs API and Office files via Drive API, differentiating it from sibling tools like get_drive_file_content.

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?

The description implies usage for retrieving content from Google Docs or Office files in Drive, but it does not explicitly state when to use this tool over alternatives or provide exclusions. It offers context about the two file types but leaves the agent to infer the appropriate scenario.

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