Skip to main content
Glama
redesignhealth

Google Workspace MCP Server

create_drive_file

Create new files in Google Drive and shared drives. Provide content directly or fetch it from a URL, specifying folder, MIME type, and user email as needed.

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
Behavior4/5

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

With no annotations, the description carries the burden of behavioral disclosure. It explains two content sources (direct content or fileUrl), the fileUrl protocols supported, folder_id behavior for shared drives, and return value. However, it does not specify what happens if both content and fileUrl are provided, leaving a slight ambiguity.

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 moderately sized but well-structured, with a clear one-sentence summary followed by an enumerated Args list and Returns line. Each param has a concise explanation, and there is no redundant filler. It earns its length.

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?

The description covers the key operational aspects: creation, shared drive support, content sources, defaults, and return value. However, it lacks explicit handling for edge cases like conflicting content/fileUrl inputs or auth prerequisites, which would make it fully complete given the absence of annotations.

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 must fully compensate. It does so by documenting every parameter: user_google_email is required, content is optional, folder_id defaults to 'root' and must be within shared drives, mime_type defaults to text/plain, and fileUrl supports specific protocols. This adds significant meaning beyond the raw schema.

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's function with a specific verb and resource: 'Creates a new file in Google Drive.' It also distinguishes itself from siblings like update_drive_file and get_drive_file_content by focusing on creation and mentions shared drive support, which is a notable differentiator.

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 the tool should be used when creating a new Drive file, but it does not explicitly state when not to use it or mention alternatives. Sibling tools like update_drive_file are clearly for existing files, but no direct contrast is given.

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