Skip to main content
Glama
BiteFoundry SharePoint MCP Server

BiteFoundry SharePoint MCP Server

list_files

List files and folders in a OneDrive or SharePoint drive, with paging via one Graph request per 200 items or cached offline reads.

Instructions

List files and folders inside a OneDrive or SharePoint drive. One Graph request per 200 items; offline: true reads the cache.

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

Input Schema

NameRequiredDescriptionDefault
pathNo
siteNo
driveNo
limitNoMaximum items (default 100). has_more reports whether the folder holds more.
compactNoReturn the drive ID and core item fields
offlineNo
parent_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden and does disclose two useful traits: one Graph request per 200 items and that offline: true reads the cache. However, it does not mention permissions, cache staleness, read-only safety, or how site/drive/path resolution works.

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 short sentences, front-loaded with the core action, and contains no filler. The batching and offline details are compact and useful rather than redundant.

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?

For a seven-parameter listing tool with no annotations, no output schema, and low schema description coverage, the definition is too thin. It omits parameter interactions, return shape beyond has_more, and how the cache and Graph request batching affect results.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is low at 29%, so the description must compensate, but it only clarifies offline behavior and indirectly touches pagination. It leaves path, site, drive, parent_id, and compact largely or entirely unexplained in both the schema and the description.

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 uses a specific verb and resource: list files and folders inside a OneDrive or SharePoint drive. It is clear what the tool does, but it does not explicitly distinguish itself from nearby siblings such as search_files or list_items.

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 implies listing a drive/folder, but gives no explicit guidance on when to use this tool versus search_files, list_recent, or other listing tools. It also does not state exclusions or conditions such as preferring search when the user is looking for a known file.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.