Skip to main content
Glama

Google Workspace MCP Server

by ZatesloFL

create_drive_file

Create and store new files in Google Drive or shared drives with specified content or by fetching from a URL. Requires user email, file name, and optional folder ID, MIME type, or content source.

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.

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

Input Schema

NameRequiredDescriptionDefault
contentNo
fileUrlNo
file_nameYes
folder_idNoroot
mime_typeNotext/plain
user_google_emailYes

Input Schema (JSON Schema)

{ "properties": { "content": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Content" }, "fileUrl": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Fileurl" }, "file_name": { "title": "File Name", "type": "string" }, "folder_id": { "default": "root", "title": "Folder Id", "type": "string" }, "mime_type": { "default": "text/plain", "title": "Mime Type", "type": "string" }, "user_google_email": { "title": "User Google Email", "type": "string" } }, "required": [ "user_google_email", "file_name" ], "type": "object" }

Other Tools from Google Workspace MCP Server

Related Tools

    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/ZatesloFL/google_workspace_mcp'

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