Microsoft Outlook Email ACTION
List Shared Folders
Retrieves mail folders from a shared or delegated mailbox (routes to
/users/{userId}/mailFolders). Returns { count, folders } where folders contains each folder's id, displayName, parentFolderId, childFolderCount, totalItemCount, and unreadItemCount. The count field reflects the true API total when Microsoft Graph returns @odata.count; when Include Subfolders is true or Graph does not return @odata.count for the requested filter, count equals the number of folders actually retrieved. Use this action to resolve a shared mailbox folder display name to its ID — set Display Name to filter by exact name. Use Get Shared Folder instead when you already have the folder ID. See the documentation- Action
- Read only
- OAuth
- SDK
- MCP
IMPLEMENTATION
Call this tool
Connect a user's Microsoft Outlook Email account once, then configure and run List Shared Folders from your backend or agent.
SCHEMA
Inputs
Pipedream supplies the connected account. Your application provides the operation-specific values below. Dynamic inputs are resolved against that user's account.
| Property | Type | Description |
|---|---|---|
userId User ID | string | The User ID or email address of the shared mailbox whose folders to list. Free-form string — use a directory lookup to discover IDs. Required Dynamic |
displayName Display Name | string | Filter to folders whose display name exactly matches this value. Use this to resolve a known folder name to its ID. Applied server-side when Include Subfolders is false; applied client-side when true. Optional |
maxResults Max Results | integer | Maximum number of folders to return (default: 100). Min 1, max 1000. For name-based lookups when the total folder count is unknown, raise this value or set Include Subfolders to true. Graph API maximum is 999 per page. Optional |
includeSubfolders Include Subfolders | boolean | If true, recursively includes all subfolders at every nesting level. Set to true when searching for a folder by display name if you don't know whether it is a top-level folder. Default is false, which returns only top-level folders. Note: count falls back to the number of folders retrieved in this mode. Optional |
includeHiddenFolders Include Hidden Folders | boolean | If true, includes hidden system folders (e.g. AllItems, RecoverableItemsDeletions, SearchFolders, Clutter). Set to true only when specifically looking for a system or hidden folder. Default is false. Optional |
REFERENCE
Tool details
Behavior hints are published with the component in the Pipedream registry and surface as MCP tool annotations, so an agent can reason about a tool before it calls it.
- Registry key
- microsoft_outlook-list-shared-folders
- Version
- 1.0.2
- App
- Microsoft Outlook Email
- Authentication
- OAuth
- Read-only
- Yes
- Destructive
- No
- Open world
- Yes
- Source
- View on GitHub ↗