Skip to main content
Glama
Google Workspace MCP Server

Google Workspace MCP Server

by akilja24

list_drive_items

Lists files and folders in Google Drive, including shared drives, to browse folder contents or scope results to a specific shared drive.

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. detailed (bool): Whether to include size, modified time, and link in results. Defaults to True.

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

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "user_google_email": "<user_google_email>"
    },
    "name": "list_drive_items"
  }
}

Input Schema

NameRequiredDescriptionDefault
corporaNo
detailedNo
drive_idNo
folder_idNoroot
page_sizeNo
user_google_emailYes
include_items_from_all_drivesNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.13.1

TDQS

A3.7/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the behavioral burden. It usefully discloses scoping rules, default behavior for `corpora`, and what `detailed` changes, but says nothing about permission/auth requirements, result truncation or pagination when `page_size` is exceeded, or error conditions.

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 prose scoping rules are front-loaded and the Args block is easy to scan per parameter. Some lines only restate schema defaults (e.g., page_size 100, detailed True), which is mild redundancy but aids readability given the 0% schema coverage.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 7-parameter listing tool with no annotations, the description covers selection semantics well and needn't explain return values because an output schema exists. It stops short of the operational context an agent needs for a read against a permissioned API: auth scope requirements and paging behavior remain undisclosed.

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

Parameters4/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 compensate, and it does: every one of the 7 parameters is explained, including the non-obvious interplay where `folder_id` becomes a drive_id to list a drive root and where `corpora` defaults to 'drive' when `drive_id` is set. Enum values for `corpora` are enumerated inline, which the schema lacks.

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 opening sentence states a specific verb and resource ("Lists files and folders") and immediately qualifies the shared-drive case. It does not contrast itself with the obvious sibling search_drive_files, but an agent can still tell what this tool returns.

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 explicit branching conditions: supply `drive_id` to scope to a shared drive, omit it to list My Drive plus accessible drives, and `include_items_from_all_drives` controls the latter. It lacks any exclusion or reference to alternatives such as search_drive_files when the user is looking for something specific.

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