Skip to main content
Glama
ZatesloFL

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

TableJSON Schema
NameRequiredDescriptionDefault
corporaNo
drive_idNo
folder_idNoroot
include_items_from_all_drivesNo
page_sizeNo
user_google_emailYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It describes the tool's scope and parameter interactions (e.g., how `drive_id` affects listing), but lacks details on permissions, rate limits, pagination beyond `page_size`, or what happens on errors. This is adequate but has clear gaps for a mutation-like tool (listing implies read-only, but not explicitly stated).

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 well-structured with a clear opening sentence followed by parameter explanations and a returns section. It's appropriately sized for the tool's complexity, though some sentences could be more concise (e.g., the `corpora` explanation is slightly verbose). Overall, it's efficient with minimal waste.

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?

Given the tool's moderate complexity (6 parameters, no annotations, but has output schema), the description is mostly complete. It covers parameter semantics thoroughly and includes a returns section, but lacks behavioral details like error handling or pagination beyond `page_size`. The output schema exists, so return values needn't be explained in detail, but more context on the tool's operation would improve completeness.

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?

The schema description coverage is 0%, so the description must compensate fully. It provides detailed semantics for all 6 parameters beyond their titles, explaining their purposes, defaults, interactions (e.g., `drive_id` with `folder_id` and `corpora`), and usage scenarios. This adds significant value over the bare schema.

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?

The description clearly states the tool's purpose: 'Lists files and folders, supporting shared drives.' It specifies the verb ('Lists') and resource ('files and folders'), and mentions shared drive support. However, it doesn't explicitly differentiate from sibling tools like 'list_docs_in_folder' or 'search_drive_files', which would be needed for a score of 5.

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 provides clear context on when to use specific parameters (e.g., 'If `drive_id` is specified...', 'If `drive_id` is not specified...'), which helps guide usage. However, it doesn't explicitly mention when to use this tool versus alternatives like 'list_docs_in_folder' or 'search_drive_files', nor does it provide exclusions or prerequisites, preventing a score of 5.

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

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