Skip to main content
Glama
Google Workspace MCP Server

Google Workspace MCP Server

by VolksRat71

list_files

List files and folders in Google Drive with filtering by folder and MIME type plus pagination for manageable results.

Instructions

List files and folders in Google Drive. Can filter by folder, MIME type, and supports pagination.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "list_files"
  }
}

Input Schema

NameRequiredDescriptionDefault
orderByNoOptional. Sort order for results (e.g., "name", "modifiedTime desc", "createdTime").
folderIdNoOptional. The ID of the folder to list contents of. Defaults to root if not specified.
mimeTypeNoOptional. Filter by MIME type (e.g., "application/vnd.google-apps.folder" for folders only).
pageSizeNoOptional. Number of results to return (default 20, max 100).
pageTokenNoOptional. Token for pagination to retrieve the next page of results.
includeTrashedNoOptional. Include trashed files in results (default false).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.0

TDQS

B3.3/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full behavioral burden. It discloses that pagination is supported and that filtering is available, but it omits permission requirements, default root behavior, trashed-item handling, and return format details, which are left to the schema.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is two short sentences with no wasted wording. The main purpose is front-loaded, and the additional capabilities are stated compactly.

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?

The tool is relatively simple and all parameters are optional, but the description does not clarify how this differs from search_files or what the results contain. With no output schema and no annotations, a bit more context would improve agent selection and invocation confidence.

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

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema already documents all six parameters in detail. The description adds only that folder and MIME type filtering plus pagination are possible, without explaining orderBy, pageSize, pageToken, or includeTrashed beyond what the schema provides.

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 states a specific verb and resource: list files and folders in Google Drive. It is clear what the tool does, but it does not explicitly distinguish itself from the sibling search_files tool.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description only lists capabilities such as filtering by folder and MIME type and pagination support; it gives no explicit guidance on when to use this tool versus search_files. There are no stated exclusions or conditions for choosing this listing operation over a search operation.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.