Skip to main content
Glama

List_SharePoint_Folders

Retrieve all sub-folders within a SharePoint directory. Use root for default document library or specify a parent folder path.

Instructions

List all sub-folders in a SharePoint directory. Use None/null or empty string for document library root. For Graph API, the root represents the default document library.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
parent_folderNo
Behavior2/5

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

No annotations are provided, so the description bears full responsibility for behavioral disclosure. It states 'list all sub-folders' but does not clarify if this includes nested sub-folders (recursive vs flat), permissions required, rate limits, or return format. This ambiguity limits transparency.

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 sentences with no waste: the first sentence states the purpose, the second adds parameter usage details. It is front-loaded and efficient.

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?

Given one parameter, no annotations, and no output schema, the description is fairly complete for a list tool but lacks details on output structure (e.g., folder names only or metadata) and whether the list is recursive. It is adequate but could be fuller.

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?

The input schema has 0% description coverage, but the description adds significant value by explaining that the parent_folder parameter can be None/null/empty for the document library root and clarifies what root means for Graph API. This goes beyond the schema's type and title.

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 clearly states the tool lists all sub-folders in a SharePoint directory, distinguishing it from sibling tools like List_SharePoint_Documents and Get_SharePoint_Tree. It specifies the exact resource (SharePoint directory) and action (list sub-folders), with additional context on handling the root.

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 provides guidance on how to use the parent_folder parameter (None/null/empty string for root) but does not explicitly state when to use this tool vs alternatives like Get_SharePoint_Tree for hierarchy or List_SharePoint_Documents for files. Usage is implied but not directly contrasted.

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/ravikant1918/sharepoint-mcp'

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