Skip to main content
Glama

List Folders

folder_list
Read-onlyIdempotent

List folders in OneDrive with child counts and hierarchy. Specify path or folder ID to retrieve only folders, not files.

Instructions

📖 List only folders (not files) in OneDrive (read-only, safe for unsupervised use)

Returns folders with child counts and hierarchy information.

Caching: Results are cached for 15 minutes (fresh) / 1 hour (stale). Use force_refresh=True to bypass cache and fetch fresh data.

Args: account_id: Microsoft account ID path: Path to list folders from (e.g., "/Documents", default: "/") folder_id: Direct folder ID (takes precedence over path) limit: Maximum folders to return (1-500, default: 50) use_cache: Whether to use cached data if available (default: True) force_refresh: Force refresh from API, bypassing cache (default: False)

Returns: Dictionary with: - folders: List of folder objects with id, name, childCount, path, parentId - _cache_status: Cache state (fresh/stale/miss) - _cached_at: When data was cached (ISO format)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
account_idYes
pathNo/
folder_idNo
limitNo
use_cacheNo
force_refreshNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false. The description adds caching details, return fields (childCount, hierarchy), and the force_refresh option, which goes beyond the annotated metadata.

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 summary line, parameter list, and return description. It is slightly long but each sentence adds value. Front-loads the key purpose and safety note.

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?

With 6 parameters and an output schema (though not detailed here), the description covers all inputs and the return structure adequately. Mentions cache status fields which are important for the agent.

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?

Despite 0% schema description coverage, the description thoroughly explains all 6 parameters with defaults, precedence (folder_id over path), and caching flags. This compensates fully for the schema gap.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description starts with a clear verb ('List only folders') and distinguishes from files and sibling tools like file_list and folder_get_tree. It specifies the scope (OneDrive) and read-only nature.

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 explains when to use (list folders with hierarchy and child counts) and provides caching options. It does not explicitly state when not to use or compare to alternatives, but the sibling list and context provide implicit guidance.

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/robin-collins/m365-mcp'

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