> This page is for Agent Handler.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.merge.dev/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.merge.dev/_mcp/server.

# SharePoint GCC High

**Authentication:** OAuth. See [Magic Link](/merge-agent-handler/features/magic-link) for the runtime auth flow, or [Application credentials](/merge-agent-handler/admin-setup/add-oauth-credentials) to bring your own OAuth app.

## Sample use cases

* List all items in the `Active Procurements` list on the `Acquisitions` site that are past their due date.
* Create a new item in the `Vendor Contracts` list on the `Legal` site with the contract name, value, and expiry date.
* Search for all files modified in the last 7 days across the `Policy` site.

## Available Tools

#### files_list_drive_items

List all files and folders in a SharePoint document library folder. Requires driveId (from sites_list_drives). Defaults to root folder.

#### files_get_drive_item

Get detailed information about a specific file or folder. Requires driveId (from sites_list_drives) and itemId

#### files_create_folder

Create a new folder in a SharePoint document library. Requires driveId (from sites_list_drives) and parentId

#### files_update_item

Update file or folder name or description. Requires driveId (from sites_list_drives) and itemId

#### files_delete_item

Delete a file or folder from a SharePoint document library. Requires driveId (from sites_list_drives) and itemId

#### files_search_drive_items

Search for files and folders in a SharePoint document library by query text. Requires driveId (from sites_list_drives) and query

#### files_search_all

Search for files across ALL SharePoint sites and OneDrive. Does not require a drive ID.

#### list_items_get_all

Get all items from a SharePoint list. Requires siteId and listId. Use sites_list_lists to find list IDs.

#### list_items_get_by_id

Get a specific SharePoint list item by ID. Requires siteId, listId (from sites_list_lists), and itemId

#### list_items_create

Create a new item in a SharePoint list. Requires siteId, listId (from sites_list_lists), and fields object.

#### list_items_update

Update an existing SharePoint list item. Requires siteId, listId (from sites_list_lists), itemId, and fields to update

#### list_items_delete

Delete a SharePoint list item. Requires siteId, listId (from sites_list_lists), and itemId

#### list_get_columns

Get all columns/fields for a SharePoint list. Requires siteId and listId (from sites_list_lists).

#### sites_create_list

Create a new SharePoint list. Requires siteId (from sites_get_root or sites_get_by_hostname). Optionally provide columns and list template

#### lists_get_by_id

Get a SharePoint list by ID. Requires siteId and listId (from sites_list_lists)

#### lists_get_by_title

Get a SharePoint list by its display title. Requires siteId and listTitle

#### lists_update

Update a SharePoint list's display name or description. Requires siteId and listId (from sites_list_lists)

#### lists_delete

Delete a SharePoint list and all its items. Requires siteId and listId (from sites_list_lists)

#### lists_list_columns

List all columns in a SharePoint list. Requires siteId and listId (from sites_list_lists). Use to discover field names before creating items

#### lists_create_column

Create a new column in a SharePoint list. Requires siteId, listId (from sites_list_lists), column name, and column_type

#### lists_update_column

Update a column's display name, description, or required flag. Requires siteId, listId, and columnId (from lists_list_columns)

#### lists_delete_column

Delete a column from a SharePoint list. Requires siteId, listId, and columnId (from lists_list_columns)

#### sites_get_root

Get the organization's default SharePoint root site. Returns siteId needed by other tools. Call this first to discover available sites

#### sites_get_by_id

Get a specific SharePoint site by ID. Requires siteId (from sites_get_root or sites_get_by_hostname)

#### sites_get_by_hostname

Get a SharePoint site by hostname (e.g. contoso.sharepoint.com). Returns siteId needed by other tools

#### sites_get_by_path

Get a SharePoint site by hostname and server-relative path. Returns siteId needed by other tools

#### sites_get_group_root

Get a Microsoft 365 group's team site. Requires groupId. Returns siteId needed by other tools

#### sites_update

Update a SharePoint site's display name or description. Requires siteId (from sites_get_root or sites_get_by_hostname)

#### sites_list_drives

List all document libraries (drives) for a SharePoint site. Requires siteId. Returns driveId values needed by files\_\* tools

#### sites_list_lists

List all lists in a SharePoint site. Requires siteId. Returns listId values needed by list_items\_\* and list_get_columns tools

#### sites_list_columns

List site-level columns for a SharePoint site. Requires siteId (from sites_get_root or sites_get_by_hostname)