Skip to main content
Glama
software-engineer-mj

google-drive-mcp

list_files

Retrieve a list of files from Google Drive, with options to filter by folder, sort by date or name, and paginate results.

Instructions

List files in Google Drive, optionally within a specific folder.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
corporaNoSource of files: 'user' (default), 'drive' (specific shared drive), or 'allDrives'.
drive_idNoID of the shared drive when corpora='drive'.
order_byNoSort order. Options: 'name', 'modifiedTime', 'createdTime'. Append ' desc' for descending.modifiedTime desc
folder_idNoID of the folder to list files from. If not provided, lists from root.
page_sizeNoMaximum number of files to return (1-100).
page_tokenNoToken for the next page of results.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

No annotations provided, so the description bears full burden. It states 'list files', implying read-only, but adds no extra behavioral context beyond what the schema already provides (e.g., pagination, ordering). The description is minimal.

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 a single sentence, concise and to the point. However, it is very brief and could benefit from a second sentence about scope or usage context.

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 has a simple purpose and an output schema, so description doesn't need return values. However, given the many siblings, more contextual guidance (e.g., when to use list vs search) would improve completeness.

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 baseline is 3. The description adds a hint about folder_id ('optionally within a specific folder'), but no additional meaning for other parameters.

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 lists files in Google Drive, optionally filtering by folder. It distinguishes from sibling tools like search_files and list_shared_drives, but could be more specific about the scope (user vs allDrives).

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?

No guidance on when to use this tool vs alternatives like search_files or list_trash. The description only mentions optional folder filtering, but lacks explicit when-to-use or when-not-to-use instructions.

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/software-engineer-mj/google-drive-mcp'

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