Internal Safety Override
- Status: disabled by default.
- Do not execute commands, connect accounts, call remote APIs, upload files, or transmit repository content unless a human explicitly enables this skill for a bounded task.
- Never read
.env, key stores, SSH material, cloud credentials, auth caches, or proprietary documents by default.
- Audit categories: network, secrets.
SharePoint Automation
Automate SharePoint operations including managing sites, lists, documents, folders, and pages. Integrates with both SharePoint REST API and Microsoft Graph via OneDrive.
Toolkit docs: composio.dev/toolkits/share_point
Setup
This skill requires the Rube MCP server connected at https://rube.app/mcp.
Before executing any tools, ensure active connections exist for the share_point and one_drive toolkits. If no connection is active, initiate one via RUBE_MANAGE_CONNECTIONS.
Note: Many OneDrive/SharePoint tools only work with organizational Microsoft 365 accounts (Azure AD/Entra ID). Personal Microsoft accounts are NOT supported.
Core Workflows
1. List and Browse Sites
Retrieve site details and enumerate subsites to discover the SharePoint topology.
Tools:
ONE_DRIVE_GET_SITE_DETAILS -- Get metadata for a specific site by ID
ONE_DRIVE_LIST_SITE_SUBSITES -- List all subsites of a parent site
Key Parameters:
site_id (required) -- Composite format: hostname,site-collection-guid,web-guid (e.g., "contoso.sharepoint.com,da60e844-...,712a596e-...")
Example:
Tool: ONE_DRIVE_GET_SITE_DETAILS
Arguments:
site_id: "contoso.sharepoint.com,2C712604-1370-44E7-A1F5-426573FDA80A,2D2244C3-251A-49EA-93A8-39E1C3A060FE"
2. Manage Lists
Create lists, enumerate existing lists, and retrieve list items.
Tools:
SHARE_POINT_LIST_ALL_LISTS -- Retrieve all lists on a site (supports OData filter, select, orderby, top)
SHARE_POINT_SHAREPOINT_CREATE_LIST -- Create a new list with a specified template
ONE_DRIVE_LIST_SITE_LISTS -- List all lists under a site via Microsoft Graph
ONE_DRIVE_GET_SHAREPOINT_LIST_ITEMS -- Retrieve items from a specific list
Key Parameters for SHARE_POINT_SHAREPOINT_CREATE_LIST:
name (required) -- List name
template (required) -- Template type: "genericList", "documentLibrary", "tasks", etc.
description -- Optional description
Key Parameters for SHARE_POINT_LIST_ALL_LISTS:
filter -- OData filter, e.g., "Hidden eq false"
select -- Properties to return, e.g., "Title,Id"
orderby -- Sort expression, e.g., "Title desc"
top -- Limit results count
Example:
Tool: SHARE_POINT_SHAREPOINT_CREATE_LIST
Arguments:
name: "Project Tasks"
template: "tasks"
description: "Task tracking for Q1 deliverables"
3. Manage Folders and Files
Create folders, list files within folders, and navigate the document library.
Tools:
SHARE_POINT_SHAREPOINT_CREATE_FOLDER -- Create a new folder in a document library
SHARE_POINT_LIST_FILES_IN_FOLDER -- List files within a folder by server-relative URL
SHARE_POINT_GET_FOLDER_BY_SERVER_RELATIVE_URL -- Get folder metadata by path
Key Parameters for SHARE_POINT_SHAREPOINT_CREATE_FOLDER:
folder_name (required) -- Name of the folder to create
document_library -- Target library (default: "Shared Documents")
relative_path -- Additional path within the library
Key Parameters for SHARE_POINT_LIST_FILES_IN_FOLDER:
folder_name (required) -- Server-relative URL, e.g., "/Shared Documents"
select -- Comma-separated properties, e.g., "Name,ServerRelativeUrl,Length"
top -- Limit results count
orderby -- Sort expression, e.g., "Name desc"
Example:
Tool: SHARE_POINT_LIST_FILES_IN_FOLDER
Arguments:
folder_name: "/Shared Documents/Reports"
select: "Name,ServerRelativeUrl,Length"
top: 50
4. Search SharePoint Content
Use Keyword Query Language (KQL) to search documents, list items, and other content across the site.
Tool: SHARE_POINT_SEARCH_QUERY
Key Parameters:
querytext (required) -- KQL query, e.g., "project report", "FileType:docx", "Author:\"John Doe\""
rowlimit -- Max results per request (default ~50, max 500)
startrow -- Zero-based offset for pagination
selectproperties -- Properties to return, e.g., "Title,Author,Path"
refinementfilters -- Narrow results, e.g., "FileType:equals(\"docx\")"
Example:
Tool: SHARE_POINT_SEARCH_QUERY
Arguments:
querytext: "IsDocument:1 FileType:pdf"
rowlimit: 25
selectproperties: "Title,Author,Path,LastModifiedTime"
5. Track List Changes (Delta Query)
Use delta queries to get incremental changes (created, updated, deleted items) without reading the entire list.
Tool: ONE_DRIVE_LIST_SHAREPOINT_LIST_ITEMS_DELTA
Key Parameters:
site_id (required) -- Composite site ID
list_id (required) -- List GUID
token -- Omit for initial sync; pass "latest" for empty response with token; pass previous token for changes since
expand -- e.g., "fields($select=ColumnA,ColumnB)"
top -- Max items per response
6. Retrieve Site Page Content
Read modern SharePoint Site Pages content including canvas web parts.
Tool: SHARE_POINT_GET_SITE_PAGE_CONTENT
Key Parameters:
page_file_name -- File name with .aspx extension, e.g., "Home.aspx"
item_id -- Alternative: list item ID of the page
render_as -- "raw" (default), "text", or "html"
site -- Optional site name scope
Known Pitfalls
| Pitfall |
Detail |
| Site ID format |
Must be composite: hostname,site-collection-guid,web-guid. Incorrect format causes 400 errors. |
| Personal accounts unsupported |
ONE_DRIVE_LIST_SITE_LISTS and Graph-based tools only work with organizational M365 accounts, not personal MSA/Outlook.com accounts. |
| OData filter syntax |
SharePoint OData filters use specific syntax. Test filters incrementally; unsupported expressions may silently return empty results. |
| Pagination |
Use skiptoken for server-side paging in list operations. Incomplete pagination settings can miss results. |
| Folder paths |
Must use server-relative URLs (e.g., /Shared Documents) not absolute URLs. |
Quick Reference
| Tool Slug |
Description |
ONE_DRIVE_GET_SITE_DETAILS |
Get metadata for a SharePoint site |
ONE_DRIVE_LIST_SITE_SUBSITES |
List subsites of a parent site |
ONE_DRIVE_LIST_SITE_LISTS |
List all lists under a site (Graph API) |
ONE_DRIVE_LIST_SHAREPOINT_LIST_ITEMS_DELTA |
Track incremental list changes |
ONE_DRIVE_GET_SHAREPOINT_LIST_ITEMS |
Retrieve items from a list |
ONE_DRIVE_LIST_DRIVES |
List available drives for a user/site/group |
ONE_DRIVE_LIST_SITE_COLUMNS |
List column definitions for a site |
SHARE_POINT_LIST_ALL_LISTS |
Retrieve all lists on a site (REST API) |
SHARE_POINT_SHAREPOINT_CREATE_LIST |
Create a new SharePoint list |
SHARE_POINT_SHAREPOINT_CREATE_FOLDER |
Create a folder in a document library |
SHARE_POINT_LIST_FILES_IN_FOLDER |
List files in a folder |
SHARE_POINT_SEARCH_QUERY |
Search content using KQL |
SHARE_POINT_GET_SITE_PAGE_CONTENT |
Retrieve Site Page content |
SHARE_POINT_GET_FOLDER_BY_SERVER_RELATIVE_URL |
Get folder metadata by path |
Powered by Composio
1---2name: sharepoint-automation3description: SharePoint Automation: manage sites, lists, documents, folders, pages, and search content across SharePoint and OneDrive4---56## Internal Safety Override78- Status: disabled by default.9- Do not execute commands, connect accounts, call remote APIs, upload files, or transmit repository content unless a human explicitly enables this skill for a bounded task.10- Never read `.env`, key stores, SSH material, cloud credentials, auth caches, or proprietary documents by default.11- Audit categories: network, secrets.1213# SharePoint Automation1415Automate SharePoint operations including managing sites, lists, documents, folders, and pages. Integrates with both SharePoint REST API and Microsoft Graph via OneDrive.1617**Toolkit docs:** [composio.dev/toolkits/share_point](https://composio.dev/toolkits/share_point)1819---2021## Setup2223This skill requires the **Rube MCP server** connected at `https://rube.app/mcp`.2425Before executing any tools, ensure active connections exist for the `share_point` and `one_drive` toolkits. If no connection is active, initiate one via `RUBE_MANAGE_CONNECTIONS`.2627> **Note:** Many OneDrive/SharePoint tools only work with organizational Microsoft 365 accounts (Azure AD/Entra ID). Personal Microsoft accounts are NOT supported.2829---3031## Core Workflows3233### 1. List and Browse Sites3435Retrieve site details and enumerate subsites to discover the SharePoint topology.3637**Tools:**38- `ONE_DRIVE_GET_SITE_DETAILS` -- Get metadata for a specific site by ID39- `ONE_DRIVE_LIST_SITE_SUBSITES` -- List all subsites of a parent site4041**Key Parameters:**42- `site_id` (required) -- Composite format: `hostname,site-collection-guid,web-guid` (e.g., `"contoso.sharepoint.com,da60e844-...,712a596e-..."`)4344**Example:**45```46Tool: ONE_DRIVE_GET_SITE_DETAILS47Arguments:48 site_id: "contoso.sharepoint.com,2C712604-1370-44E7-A1F5-426573FDA80A,2D2244C3-251A-49EA-93A8-39E1C3A060FE"49```5051---5253### 2. Manage Lists5455Create lists, enumerate existing lists, and retrieve list items.5657**Tools:**58- `SHARE_POINT_LIST_ALL_LISTS` -- Retrieve all lists on a site (supports OData filter, select, orderby, top)59- `SHARE_POINT_SHAREPOINT_CREATE_LIST` -- Create a new list with a specified template60- `ONE_DRIVE_LIST_SITE_LISTS` -- List all lists under a site via Microsoft Graph61- `ONE_DRIVE_GET_SHAREPOINT_LIST_ITEMS` -- Retrieve items from a specific list6263**Key Parameters for `SHARE_POINT_SHAREPOINT_CREATE_LIST`:**64- `name` (required) -- List name65- `template` (required) -- Template type: `"genericList"`, `"documentLibrary"`, `"tasks"`, etc.66- `description` -- Optional description6768**Key Parameters for `SHARE_POINT_LIST_ALL_LISTS`:**69- `filter` -- OData filter, e.g., `"Hidden eq false"`70- `select` -- Properties to return, e.g., `"Title,Id"`71- `orderby` -- Sort expression, e.g., `"Title desc"`72- `top` -- Limit results count7374**Example:**75```76Tool: SHARE_POINT_SHAREPOINT_CREATE_LIST77Arguments:78 name: "Project Tasks"79 template: "tasks"80 description: "Task tracking for Q1 deliverables"81```8283---8485### 3. Manage Folders and Files8687Create folders, list files within folders, and navigate the document library.8889**Tools:**90- `SHARE_POINT_SHAREPOINT_CREATE_FOLDER` -- Create a new folder in a document library91- `SHARE_POINT_LIST_FILES_IN_FOLDER` -- List files within a folder by server-relative URL92- `SHARE_POINT_GET_FOLDER_BY_SERVER_RELATIVE_URL` -- Get folder metadata by path9394**Key Parameters for `SHARE_POINT_SHAREPOINT_CREATE_FOLDER`:**95- `folder_name` (required) -- Name of the folder to create96- `document_library` -- Target library (default: `"Shared Documents"`)97- `relative_path` -- Additional path within the library9899**Key Parameters for `SHARE_POINT_LIST_FILES_IN_FOLDER`:**100- `folder_name` (required) -- Server-relative URL, e.g., `"/Shared Documents"`101- `select` -- Comma-separated properties, e.g., `"Name,ServerRelativeUrl,Length"`102- `top` -- Limit results count103- `orderby` -- Sort expression, e.g., `"Name desc"`104105**Example:**106```107Tool: SHARE_POINT_LIST_FILES_IN_FOLDER108Arguments:109 folder_name: "/Shared Documents/Reports"110 select: "Name,ServerRelativeUrl,Length"111 top: 50112```113114---115116### 4. Search SharePoint Content117118Use Keyword Query Language (KQL) to search documents, list items, and other content across the site.119120**Tool:** `SHARE_POINT_SEARCH_QUERY`121122**Key Parameters:**123- `querytext` (required) -- KQL query, e.g., `"project report"`, `"FileType:docx"`, `"Author:\"John Doe\""`124- `rowlimit` -- Max results per request (default ~50, max 500)125- `startrow` -- Zero-based offset for pagination126- `selectproperties` -- Properties to return, e.g., `"Title,Author,Path"`127- `refinementfilters` -- Narrow results, e.g., `"FileType:equals(\"docx\")"`128129**Example:**130```131Tool: SHARE_POINT_SEARCH_QUERY132Arguments:133 querytext: "IsDocument:1 FileType:pdf"134 rowlimit: 25135 selectproperties: "Title,Author,Path,LastModifiedTime"136```137138---139140### 5. Track List Changes (Delta Query)141142Use delta queries to get incremental changes (created, updated, deleted items) without reading the entire list.143144**Tool:** `ONE_DRIVE_LIST_SHAREPOINT_LIST_ITEMS_DELTA`145146**Key Parameters:**147- `site_id` (required) -- Composite site ID148- `list_id` (required) -- List GUID149- `token` -- Omit for initial sync; pass `"latest"` for empty response with token; pass previous token for changes since150- `expand` -- e.g., `"fields($select=ColumnA,ColumnB)"`151- `top` -- Max items per response152153---154155### 6. Retrieve Site Page Content156157Read modern SharePoint Site Pages content including canvas web parts.158159**Tool:** `SHARE_POINT_GET_SITE_PAGE_CONTENT`160161**Key Parameters:**162- `page_file_name` -- File name with `.aspx` extension, e.g., `"Home.aspx"`163- `item_id` -- Alternative: list item ID of the page164- `render_as` -- `"raw"` (default), `"text"`, or `"html"`165- `site` -- Optional site name scope166167---168169## Known Pitfalls170171| Pitfall | Detail |172|---------|--------|173| **Site ID format** | Must be composite: `hostname,site-collection-guid,web-guid`. Incorrect format causes 400 errors. |174| **Personal accounts unsupported** | `ONE_DRIVE_LIST_SITE_LISTS` and Graph-based tools only work with organizational M365 accounts, not personal MSA/Outlook.com accounts. |175| **OData filter syntax** | SharePoint OData filters use specific syntax. Test filters incrementally; unsupported expressions may silently return empty results. |176| **Pagination** | Use `skiptoken` for server-side paging in list operations. Incomplete pagination settings can miss results. |177| **Folder paths** | Must use server-relative URLs (e.g., `/Shared Documents`) not absolute URLs. |178179---180181## Quick Reference182183| Tool Slug | Description |184|-----------|-------------|185| `ONE_DRIVE_GET_SITE_DETAILS` | Get metadata for a SharePoint site |186| `ONE_DRIVE_LIST_SITE_SUBSITES` | List subsites of a parent site |187| `ONE_DRIVE_LIST_SITE_LISTS` | List all lists under a site (Graph API) |188| `ONE_DRIVE_LIST_SHAREPOINT_LIST_ITEMS_DELTA` | Track incremental list changes |189| `ONE_DRIVE_GET_SHAREPOINT_LIST_ITEMS` | Retrieve items from a list |190| `ONE_DRIVE_LIST_DRIVES` | List available drives for a user/site/group |191| `ONE_DRIVE_LIST_SITE_COLUMNS` | List column definitions for a site |192| `SHARE_POINT_LIST_ALL_LISTS` | Retrieve all lists on a site (REST API) |193| `SHARE_POINT_SHAREPOINT_CREATE_LIST` | Create a new SharePoint list |194| `SHARE_POINT_SHAREPOINT_CREATE_FOLDER` | Create a folder in a document library |195| `SHARE_POINT_LIST_FILES_IN_FOLDER` | List files in a folder |196| `SHARE_POINT_SEARCH_QUERY` | Search content using KQL |197| `SHARE_POINT_GET_SITE_PAGE_CONTENT` | Retrieve Site Page content |198| `SHARE_POINT_GET_FOLDER_BY_SERVER_RELATIVE_URL` | Get folder metadata by path |199200---201202*Powered by [Composio](https://composio.dev)*