Skip to main content
Glama

gdrive_files_export

Read-onlyIdempotent

Export a Google Workspace document to PDF, CSV, text, or HTML, returning the converted content up to 10 MB.

Instructions

Export a Google Workspace document to the requested MIME type and return the exported content. Limited to 10 MB. Common MIME types: text/plain, text/html, text/csv, application/pdf.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fileIdYesThe ID of the file.
mimeTypeYesRequired. The MIME type of the format requested for this export. For a list of supported MIME types, see Export MIME types for Google Workspace documents. Common values: `text/plain`, `text/html`, `text/csv`, `application/pdf`, `application/vnd.openxmlformats-officedocument.wordprocessingml.document`, `application/vnd.openxmlformats-officedocument.spreadsheetml.sheet`.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and openWorldHint, so the safety profile is covered. The description adds a genuinely useful behavioral constraint — the 10 MB size limit — and notes that content is returned rather than a link, which is meaningful beyond the annotations.

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?

Three short sentences, front-loaded with the core action and outcome. The trailing MIME type list is somewhat redundant with the schema, but the whole thing is tight and scannable.

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?

No output schema exists, but the description states that the exported content is returned and flags the 10 MB ceiling, which is the key expectation-setting fact. Combined with 100% schema coverage and clear annotations, an agent has enough to call it correctly.

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?

Schema description coverage is 100%, so both parameters are already fully documented in the schema, including a longer MIME type list identical to the one the description gives. The description adds no syntax or format detail beyond the schema, so the baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb (Export) and resource (Google Workspace document) plus the outcome (returns exported content to a requested MIME type). It's clearly distinguishable in kind from list/read siblings like gdrive_files_list or gdocs_documents_get, though it never explicitly names an alternative.

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 explains what export does but gives no when-to-use guidance, prerequisites (e.g., this only works on native Google Workspace docs, not binary files), or conditions that would route an agent here versus gdocs_documents_get. Usage is only implied by the verb.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.