Skip to main content
Glama

list_files

Browse files and subfolders in a SharePoint document library or specific folder to view available content and navigate directory structures.

Instructions

List files and sub-folders inside a document library or a specific folder within it.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
libraryNameYesDisplay name of the document library.
folderPathNoRelative path within the library, e.g. 'Reports/2025'. Omit for the root.
Behavior2/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It states what the tool does but lacks details on traits like pagination, sorting, filtering, rate limits, permissions required, or what the return format looks like. For a listing tool with zero annotation coverage, this is a significant gap in 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 a single, efficient sentence that front-loads the core purpose without unnecessary words. It's appropriately sized for a simple listing tool, with zero waste or redundancy.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the complexity of a listing operation with no annotations and no output schema, the description is incomplete. It doesn't explain what information is returned (e.g., file names, metadata, pagination), error conditions, or behavioral constraints. For a tool that likely returns structured data, this leaves significant gaps for an AI agent.

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 both parameters ('libraryName' and 'folderPath') with clear descriptions. The description adds no additional meaning beyond what the schema provides, such as examples or edge cases. Baseline 3 is appropriate when the schema does the heavy lifting.

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's purpose with a specific verb ('List') and resources ('files and sub-folders'), and specifies the scope ('inside a document library or a specific folder within it'). It distinguishes from siblings like 'download_file' or 'delete_file' by focusing on listing rather than file operations, but doesn't explicitly differentiate from 'get_items' or 'list_lists' which might have overlapping functionality.

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 provides no guidance on when to use this tool versus alternatives. It doesn't mention sibling tools like 'get_items' or 'list_lists', nor does it specify prerequisites, exclusions, or contextual cues for selection. Usage is implied by the purpose but lacks explicit direction.

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

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