Onedrive
v0.2.1OneDrive (Microsoft Graph) MCP Pack
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
onedrive_list_files
List files and folders in a OneDrive (Microsoft 365) folder. Pass a folder path relative to the drive root (e.g. "Documents" or "Documents/Reports"); omit to list the root. Returns each item's id, name, size, whether it is a folder, last-modified time, and web URL. Use to browse a user's OneDrive documents.
| Parameter | Type | Description |
|---|---|---|
path | string | Folder path relative to the OneDrive root, e.g. "Documents" or "Documents/Reports". Omit or leave empty for the root folder. |
top | number | Maximum number of items to return (default 50, max 200). |
onedrive_search_files
Search a user's OneDrive (Microsoft 365) for files and folders matching a query string across file names and content. Returns matching items with id, name, size, folder flag, last-modified time, and web URL. Use to find documents by keyword.
| Parameter | Type | Description |
|---|---|---|
query * | string | Free-text search query matched against OneDrive file names and content. |
top | number | Maximum number of results to return (default 25). |
onedrive_get_file
Get full metadata for a single OneDrive (Microsoft 365) file or folder by its item id. Returns id, name, size, folder/file info, created and last-modified times, web URL, and parent reference. Use after listing or searching to inspect one document.
| Parameter | Type | Description |
|---|---|---|
id * | string | The OneDrive drive-item id of the file or folder. |
onedrive_get_file_content
Download and return the text content of a OneDrive (Microsoft 365) file by its item id. Best for plain-text, Markdown, and CSV files; binary formats (Office docs, PDFs, images) will return unreadable bytes. Content is capped at ~100,000 characters and flagged when truncated.
| Parameter | Type | Description |
|---|---|---|
id * | string | The OneDrive drive-item id of the file to read. |
onedrive_get_profile
Get the user's OneDrive (Microsoft 365) drive profile: drive type, storage quota used and total (in bytes), and the owner display name. Use to report storage usage or confirm the connected account.