Skip to main content
Glama

Google Workspace MCP Server

by ZatesloFL

list_drive_items

Retrieve and format files and folders from Google Drive, including shared drives. Specify a user's email, folder or drive ID, and optional parameters to list items efficiently.

Instructions

Lists files and folders, supporting shared drives. If drive_id is specified, lists items within that shared drive. folder_id is then relative to that drive (or use drive_id as folder_id for root). If drive_id is not specified, lists items from user's "My Drive" and accessible shared drives (if include_items_from_all_drives is True).

Args: user_google_email (str): The user's Google email address. Required. folder_id (str): The ID of the Google Drive folder. Defaults to 'root'. For a shared drive, this can be the shared drive's ID to list its root, or a folder ID within that shared drive. page_size (int): The maximum number of items to return. Defaults to 100. drive_id (Optional[str]): ID of the shared drive. If provided, the listing is scoped to this drive. include_items_from_all_drives (bool): Whether items from all accessible shared drives should be included if drive_id is not set. Defaults to True. corpora (Optional[str]): Corpus to query ('user', 'drive', 'allDrives'). If drive_id is set and corpora is None, 'drive' is used. If None and no drive_id, API defaults apply.

Returns: str: A formatted list of files/folders in the specified folder.

Input Schema

NameRequiredDescriptionDefault
corporaNo
drive_idNo
folder_idNoroot
include_items_from_all_drivesNo
page_sizeNo
user_google_emailYes

Input Schema (JSON Schema)

{ "properties": { "corpora": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Corpora" }, "drive_id": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Drive Id" }, "folder_id": { "default": "root", "title": "Folder Id", "type": "string" }, "include_items_from_all_drives": { "default": true, "title": "Include Items From All Drives", "type": "boolean" }, "page_size": { "default": 100, "title": "Page Size", "type": "integer" }, "user_google_email": { "title": "User Google Email", "type": "string" } }, "required": [ "user_google_email" ], "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