Skip to main content
Glama
tom275275

Google Workspace MCP Server

by tom275275

create_drive_file

Create a new file in Google Drive, including in shared drives, by specifying content or fetching from a URL. Provide file name, optional folder, and MIME type to get a confirmation with file link.

Instructions

Creates a new file in Google Drive, supporting creation within shared drives. Accepts either direct content or a fileUrl to fetch the content from.

Args: user_google_email (str): The user's Google email address. Required. file_name (str): The name for the new file. content (Optional[str]): If provided, the content to write to the file. folder_id (str): The ID of the parent folder. Defaults to 'root'. For shared drives, this must be a folder ID within the shared drive. mime_type (str): The MIME type of the file. Defaults to 'text/plain'. fileUrl (Optional[str]): If provided, fetches the file content from this URL. Supports file://, http://, and https:// protocols.

Returns: str: Confirmation message of the successful file creation with file link.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
contentNo
fileUrlNo
file_nameYes
folder_idNoroot
mime_typeNotext/plain
user_google_emailYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.14.3

TDQS

A4.5/5.0
Behavior4/5

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

With no annotations, the description carries the behavioral burden. It discloses the shared-drive constraint, supported fileUrl protocols, and the confirmation-with-link return behavior. It stops short of specifying what happens if both content and fileUrl are provided, but the overall side effect is clearly described.

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 front-loaded with a clear summary sentence, followed by a dense but scannable Args list and a closing Returns line. Every sentence adds value, and there is no filler or repetition beyond what is necessary given the schema lacks descriptions.

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?

All parameters and the return value are covered, and the shared-drive edge case is called out. The only minor gap is that 'either content or fileUrl' implies mutual exclusivity but does not explicitly state what happens if both are supplied. This is a small ambiguity in an otherwise complete definition.

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

Parameters5/5

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

Schema description coverage is 0%, so the description is the sole source of parameter meaning. It explains all six parameters, marks required vs optional, provides defaults, and adds key constraints such as folder_id needing to be inside a shared drive and fileUrl protocol support.

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 opens with a specific action and resource: 'Creates a new file in Google Drive' and explicitly notes shared-drive support. This distinguishes it from sibling tools like create_drive_folder and update_drive_file without needing to open their schemas.

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 gives clear context: use this to create a new file, optionally inside a shared drive, with either content or a fileUrl. It does not explicitly name alternatives or when-not-to-use conditions, but the verb and resource scope make the intended usage fairly unambiguous.

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

Deploy Server

Other Tools