Skip to main content
Glama
c0webster

Hardened Google Workspace MCP

by c0webster

export_doc_to_pdf

Convert Google Docs to PDF format and save them to Google Drive for secure document sharing and archiving.

Instructions

Exports a Google Doc to PDF format and saves it to Google Drive.

Args: user_google_email: User's Google email address document_id: ID of the Google Doc to export pdf_filename: Name for the PDF file (optional - if not provided, uses original name + "_PDF") folder_id: Drive folder ID to save PDF in (optional - if not provided, saves in root)

Returns: str: Confirmation message with PDF file details and links

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
user_google_emailYes
document_idYes
pdf_filenameNo
folder_idNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It mentions the action ('Exports... and saves') implying a write operation, but does not specify permissions needed, rate limits, or error conditions. The return statement adds some context about confirmation details, but lacks depth on side effects or constraints.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is front-loaded with the core purpose in the first sentence, followed by structured Arg and Return sections. Each sentence earns its place by clarifying parameters and outcomes, but the optional parameter explanations could be slightly more concise (e.g., combining default behaviors).

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 tool's moderate complexity (export with save), no annotations, and an output schema present (returns a string), the description is reasonably complete. It covers the action, all parameters with semantics, and the return type, though it could improve by mentioning authentication needs or potential failures to fully compensate for missing annotations.

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

Parameters4/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 provides clear semantics for all four parameters: 'user_google_email' identifies the user, 'document_id' specifies the Doc, 'pdf_filename' explains naming defaults, and 'folder_id' indicates save location. This adds meaningful context beyond the bare schema types, though it could detail format requirements (e.g., email validation).

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 specific action ('Exports a Google Doc to PDF format') and the resource involved ('Google Doc'), distinguishing it from siblings like 'get_doc_content' or 'create_doc'. It explicitly mentions saving to Google Drive, which clarifies the output destination beyond just conversion.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

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

The description provides no guidance on when to use this tool versus alternatives like 'get_drive_file_download_url' for accessing files or 'update_drive_file' for modifications. It lacks context about prerequisites (e.g., document accessibility) or exclusions, offering only basic functional intent without comparative usage advice.

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/c0webster/hardened-google-workspace-mcp'

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