Skip to main content
Glama

list_folders

Read-only

Lists folders in a Google Drive location, optionally within a parent folder or across My Drive and shared drives, to help you find and organize directories.

Instructions

List all folders in the specified Google Drive folder. If no parent is specified, uses the configured default folder (DRIVE_FOLDER_ID); if that is also unset, searches across 'My Drive' AND every shared drive the authenticated account can access (corpora='allDrives') — not just 'My Drive'.

Args: parent_folder_id: Optional Google Drive folder ID to search within. If not provided, uses the configured default folder or searches 'My Drive' and every shared drive the account can access. max_results: Maximum number of results to return (default 100, max 1000).

Returns: List of folders with their ID, name, and parent information

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_folders"
  }
}

Input Schema

NameRequiredDescriptionDefault
max_resultsNo
parent_folder_idNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.9.6

TDQS

A3.8/5.0
Behavior4/5

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

The readOnlyHint annotation already establishes this as a safe read operation, but the description adds real behavioral context beyond that: the default-folder fallback chain and the crucial warning that the last-resort search spans 'My Drive' AND every shared drive (corpora='allDrives'), not just My Drive. That scope surprise is exactly the kind of trait an agent needs disclosed.

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?

Front-loaded with the core action, then structured as Args and Returns sections. There's mild redundancy in restating the fallback chain in both the prose preamble and the parent_folder_id entry, but every sentence is relevant and the length is appropriate.

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?

For a two-parameter read-only listing tool this is nearly complete: scope, fallback behavior, parameter limits, and return contents are all covered. The Returns section is partly redundant given an output schema exists, and sibling differentiation is the remaining gap.

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 carries the parameter burden, and it does so: it explains that parent_folder_id is optional, what happens when it's omitted, and that max_results defaults to 100 with a maximum of 1000 (the schema only shows the default, not the cap). This meaningfully compensates for 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?

States a specific verb and resource: 'List all folders in the specified Google Drive folder.' It's clear what the tool does, though it never distinguishes itself from siblings like list_files, list_recent_files, or list_shared_with_me, so an agent must infer that this returns folders only.

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

Usage Guidelines3/5

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

The description explains the resolution order for parent_folder_id (explicit ID, then the configured default, then all drives), which is useful usage context. However, it gives no guidance on when to choose this tool over sibling listing tools or when to specify a parent versus relying on the default.

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