@softeria/ms-365-mcp-server 0.188.0 → 0.189.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1086,6 +1086,20 @@ whatever the outcome, and the upload is attached as the identity that minted it,
1086
1086
  downloads are fetched. An upload ticket presented to `GET` (or a download ticket to `PUT`)
1087
1087
  is refused with the same 404 as any other bad ticket.
1088
1088
 
1089
+ ### Several files in one call
1090
+
1091
+ An agent that moves many files would otherwise spend one tool call per file. Both tools
1092
+ take a list instead of a single entry: `get-download-url` takes `targets`, up to 20 paths of
1093
+ the form `target` takes, and `get-upload-url` takes `files`, up to 20 entries with the
1094
+ fields of a single upload (`target`, `name`, and the optional `contentType`, `contentId`
1095
+ and `conflictBehavior`). Each entry is checked and minted exactly as a single call would be.
1096
+ The result is `{ "results": [...] }`, one item per entry in the order given, naming its
1097
+ `target` (and `name`) next to its URL or its `error`; the call is an error only when every
1098
+ entry failed. Every URL this server mints keeps its own single use and TTL (two minutes by
1099
+ default), and a transfer has to start before its URL expires, so mint a list right before
1100
+ the transfers and start them all at once, in parallel or in one command, rather than one
1101
+ after another.
1102
+
1089
1103
  ### Attaching a local file in stdio mode
1090
1104
 
1091
1105
  In stdio mode the server and the files are on the same machine, so no URL is needed.
@@ -60,7 +60,7 @@
60
60
  "toolName": "delete-mail-folder",
61
61
  "presets": ["mail", "outlook", "personal"],
62
62
  "scopes": ["Mail.ReadWrite"],
63
- "llmTip": "Deletes a mail folder and all its contents. This action is irreversible. Use list-mail-folders to find the folder ID."
63
+ "llmTip": "Deletes a mail folder and its contents. Not a permanent delete: the folder goes to Deleted Items and can be restored from there until it is purged. Use list-mail-folders to find the folder ID."
64
64
  },
65
65
  {
66
66
  "pathPattern": "/me/mailFolders/{mailFolder-id}/messages",
@@ -108,7 +108,7 @@
108
108
  "pathPattern": "/users/{user-id}/messages/{message-id}",
109
109
  "method": "get",
110
110
  "toolName": "get-shared-mailbox-message",
111
- "descriptionOverride": "Get a single Outlook message from another user's mailbox or a shared mailbox, by message ID. The user-id is the mailbox owner's ID or email address, and delegated access to that mailbox is required.",
111
+ "descriptionOverride": "Get a single Outlook message from another user's mailbox or a shared mailbox, by message ID. The user-id is the mailbox owner's ID or email address.",
112
112
  "presets": ["work"],
113
113
  "workScopes": ["Mail.Read.Shared"],
114
114
  "appScopes": [["Mail.Read"], ["Mail.ReadBasic.All"]]
@@ -138,7 +138,7 @@
138
138
  "pathPattern": "/users/{user-id}/messages/{message-id}/move",
139
139
  "method": "post",
140
140
  "toolName": "move-shared-mailbox-message",
141
- "descriptionOverride": "Move a message in another user's mailbox or a shared mailbox to a different folder. The user-id is the mailbox owner's ID or email address, and delegated access to that mailbox is required.",
141
+ "descriptionOverride": "Move a message in another user's mailbox or a shared mailbox to a different folder. The user-id is the mailbox owner's ID or email address.",
142
142
  "presets": ["work"],
143
143
  "workScopes": ["Mail.ReadWrite.Shared"],
144
144
  "appScopes": ["Mail.ReadWrite"],
@@ -148,7 +148,7 @@
148
148
  "pathPattern": "/users/{user-id}/messages/{message-id}",
149
149
  "method": "patch",
150
150
  "toolName": "update-shared-mailbox-message",
151
- "descriptionOverride": "Update a message in another user's mailbox or a shared mailbox — for example mark it read or unread (isRead), flag it (flag), change its categories or importance, or edit a draft's subject, body, or recipients. The user-id is the mailbox owner's ID or email address, and delegated access to that mailbox is required.",
151
+ "descriptionOverride": "Update a message in another user's mailbox or a shared mailbox — for example mark it read or unread (isRead), flag it (flag), change its categories or importance, or edit a draft's subject, body, or recipients. The user-id is the mailbox owner's ID or email address.",
152
152
  "presets": ["work"],
153
153
  "workScopes": ["Mail.ReadWrite.Shared"],
154
154
  "appScopes": ["Mail.ReadWrite"]
@@ -187,7 +187,7 @@
187
187
  "presets": ["work"],
188
188
  "workScopes": ["Mail.ReadWrite.Shared"],
189
189
  "appScopes": ["Mail.ReadWrite"],
190
- "llmTip": "Create a reply draft in a shared mailbox preserving thread metadata (conversationId, In-Reply-To, References). The 'user-id' is the shared mailbox email address (e.g. support@contoso.com). Does not send — use send-shared-mailbox-draft to send afterwards. Message.body (contentType 'html' for HTML) replaces the whole draft body, dropping the quoted history; 'comment' keeps it. Specifying both 'comment' and Message.body returns 400. Requires delegated access to the shared mailbox.",
190
+ "llmTip": "Create a reply draft in a shared mailbox preserving thread metadata (conversationId, In-Reply-To, References). The 'user-id' is the shared mailbox email address (e.g. support@contoso.com). Does not send — use send-shared-mailbox-draft to send afterwards. Message.body (contentType 'html' for HTML) replaces the whole draft body, dropping the quoted history; 'comment' keeps it. Specifying both 'comment' and Message.body returns 400.",
191
191
  "mcpApp": {
192
192
  "view": "mail-draft",
193
193
  "tools": { "get": "get-shared-mailbox-message", "send": "send-shared-mailbox-draft" }
@@ -200,7 +200,7 @@
200
200
  "presets": ["work"],
201
201
  "workScopes": ["Mail.ReadWrite.Shared"],
202
202
  "appScopes": ["Mail.ReadWrite"],
203
- "llmTip": "Create a reply-all draft in a shared mailbox preserving thread metadata (conversationId, In-Reply-To, References). The 'user-id' is the shared mailbox email address. Does not send — use send-shared-mailbox-draft to send afterwards. Message.body (contentType 'html' for HTML) replaces the whole draft body, dropping the quoted history; 'comment' keeps it. Specifying both 'comment' and Message.body returns 400. Requires delegated access to the shared mailbox.",
203
+ "llmTip": "Create a reply-all draft in a shared mailbox preserving thread metadata (conversationId, In-Reply-To, References). The 'user-id' is the shared mailbox email address. Does not send — use send-shared-mailbox-draft to send afterwards. Message.body (contentType 'html' for HTML) replaces the whole draft body, dropping the quoted history; 'comment' keeps it. Specifying both 'comment' and Message.body returns 400.",
204
204
  "mcpApp": {
205
205
  "view": "mail-draft",
206
206
  "tools": { "get": "get-shared-mailbox-message", "send": "send-shared-mailbox-draft" }
@@ -213,7 +213,7 @@
213
213
  "presets": ["work"],
214
214
  "workScopes": ["Mail.ReadWrite.Shared"],
215
215
  "appScopes": ["Mail.ReadWrite"],
216
- "llmTip": "Create a forward draft in a shared mailbox without sending. The 'user-id' is the shared mailbox email address. Does not send — use send-shared-mailbox-draft to send afterwards. Useful when the user wants to review before the forward goes out. Requires delegated access to the shared mailbox.",
216
+ "llmTip": "Create a forward draft in a shared mailbox without sending. The 'user-id' is the shared mailbox email address. Does not send — use send-shared-mailbox-draft to send afterwards. Useful when the user wants to review before the forward goes out.",
217
217
  "mcpApp": {
218
218
  "view": "mail-draft",
219
219
  "tools": { "get": "get-shared-mailbox-message", "send": "send-shared-mailbox-draft" }
@@ -232,7 +232,7 @@
232
232
  "pathPattern": "/users/{user-id}/mailFolders",
233
233
  "method": "get",
234
234
  "toolName": "list-shared-mailbox-folders",
235
- "descriptionOverride": "List the top-level mail folders in another user's mailbox or a shared mailbox. The user-id is the mailbox owner's ID or email address, and delegated access to that mailbox is required.",
235
+ "descriptionOverride": "List the top-level mail folders in another user's mailbox or a shared mailbox. The user-id is the mailbox owner's ID or email address.",
236
236
  "presets": ["work"],
237
237
  "workScopes": ["Mail.Read.Shared"],
238
238
  "appScopes": [["Mail.ReadBasic.All"], ["Mail.Read"]]
@@ -241,7 +241,7 @@
241
241
  "pathPattern": "/users/{user-id}/mailFolders/{mailFolder-id}/childFolders",
242
242
  "method": "get",
243
243
  "toolName": "list-shared-mailbox-child-folders",
244
- "descriptionOverride": "List the child folders of a mail folder in another user's mailbox or a shared mailbox. The user-id is the mailbox owner's ID or email address, and delegated access to that mailbox is required.",
244
+ "descriptionOverride": "List the child folders of a mail folder in another user's mailbox or a shared mailbox. The user-id is the mailbox owner's ID or email address.",
245
245
  "presets": ["work"],
246
246
  "workScopes": ["Mail.Read.Shared"],
247
247
  "appScopes": [["Mail.ReadBasic.All"], ["Mail.Read"]]
@@ -250,7 +250,7 @@
250
250
  "pathPattern": "/users/{user-id}/mailFolders",
251
251
  "method": "post",
252
252
  "toolName": "create-shared-mailbox-folder",
253
- "descriptionOverride": "Create a top-level mail folder in another user's mailbox or a shared mailbox. The user-id is the mailbox owner's ID or email address, and delegated access to that mailbox is required.",
253
+ "descriptionOverride": "Create a top-level mail folder in another user's mailbox or a shared mailbox. The user-id is the mailbox owner's ID or email address.",
254
254
  "presets": ["work"],
255
255
  "workScopes": ["Mail.ReadWrite.Shared"],
256
256
  "appScopes": ["Mail.ReadWrite"]
@@ -259,7 +259,7 @@
259
259
  "pathPattern": "/users/{user-id}/mailFolders/{mailFolder-id}/childFolders",
260
260
  "method": "post",
261
261
  "toolName": "create-shared-mailbox-child-folder",
262
- "descriptionOverride": "Create a subfolder inside a mail folder in another user's mailbox or a shared mailbox. The user-id is the mailbox owner's ID or email address, and delegated access to that mailbox is required.",
262
+ "descriptionOverride": "Create a subfolder inside a mail folder in another user's mailbox or a shared mailbox. The user-id is the mailbox owner's ID or email address.",
263
263
  "presets": ["work"],
264
264
  "workScopes": ["Mail.ReadWrite.Shared"],
265
265
  "appScopes": ["Mail.ReadWrite"]
@@ -268,7 +268,7 @@
268
268
  "pathPattern": "/users/{user-id}/messages/{message-id}/attachments",
269
269
  "method": "get",
270
270
  "toolName": "list-shared-mailbox-attachments",
271
- "descriptionOverride": "List the attachments on a message in another user's mailbox or a shared mailbox. The user-id is the mailbox owner's ID or email address, and delegated access to that mailbox is required.",
271
+ "descriptionOverride": "List the attachments on a message in another user's mailbox or a shared mailbox. The user-id is the mailbox owner's ID or email address.",
272
272
  "presets": ["work"],
273
273
  "workScopes": ["Mail.Read.Shared"],
274
274
  "appScopes": ["Mail.Read"],
@@ -278,7 +278,7 @@
278
278
  "pathPattern": "/users/{user-id}/messages/{message-id}/attachments",
279
279
  "method": "post",
280
280
  "toolName": "add-shared-mailbox-attachment",
281
- "descriptionOverride": "Add an attachment under 3MB to a draft message in another user's mailbox or a shared mailbox. The user-id is the mailbox owner's ID or email address, and delegated access to that mailbox is required.",
281
+ "descriptionOverride": "Add an attachment under 3MB to a draft message in another user's mailbox or a shared mailbox. The user-id is the mailbox owner's ID or email address.",
282
282
  "presets": ["work"],
283
283
  "workScopes": ["Mail.ReadWrite.Shared"],
284
284
  "appScopes": ["Mail.ReadWrite"],
@@ -288,7 +288,7 @@
288
288
  "pathPattern": "/users/{user-id}/messages/{message-id}/attachments/{attachment-id}",
289
289
  "method": "delete",
290
290
  "toolName": "delete-shared-mailbox-attachment",
291
- "descriptionOverride": "Delete an attachment from a message in another user's mailbox or a shared mailbox. The user-id is the mailbox owner's ID or email address, and delegated access to that mailbox is required.",
291
+ "descriptionOverride": "Delete an attachment from a message in another user's mailbox or a shared mailbox. The user-id is the mailbox owner's ID or email address.",
292
292
  "presets": ["work"],
293
293
  "workScopes": ["Mail.ReadWrite.Shared"],
294
294
  "appScopes": ["Mail.ReadWrite"]
@@ -661,7 +661,7 @@
661
661
  "pathPattern": "/users/{user-id}/calendar/events",
662
662
  "method": "get",
663
663
  "toolName": "list-shared-calendar-events",
664
- "descriptionOverride": "List events in another user's default calendar. The user-id is the calendar owner's ID or email address, and delegated access to that calendar is required. Recurring events are returned as a single series master, not expanded into occurrences - use get-shared-calendar-view for that.",
664
+ "descriptionOverride": "List events in another user's default calendar. The user-id is the calendar owner's ID or email address. Recurring events are returned as a single series master, not expanded into occurrences - use get-shared-calendar-view for that.",
665
665
  "presets": ["work"],
666
666
  "workScopes": ["Calendars.Read.Shared"],
667
667
  "appScopes": [["Calendars.ReadBasic"], ["Calendars.Read"]],
@@ -681,7 +681,7 @@
681
681
  "pathPattern": "/users/{user-id}/calendar/events",
682
682
  "method": "post",
683
683
  "toolName": "create-shared-calendar-event",
684
- "descriptionOverride": "Create an event in another user's default calendar. The user-id is the calendar owner's ID or email address, and delegated write access to that calendar is required. Times use nested objects, not flat fields: start: {dateTime, timeZone}, end: {dateTime, timeZone}. Do NOT use startDateTime/startTimeZone. For recurring events use the calendar owner's own time zone name rather than UTC, since Graph resolves DST against the zone in start.timeZone.",
684
+ "descriptionOverride": "Create an event in another user's default calendar. The user-id is the calendar owner's ID or email address. Times use nested objects, not flat fields: start: {dateTime, timeZone}, end: {dateTime, timeZone}. Do NOT use startDateTime/startTimeZone. For recurring events use the calendar owner's own time zone name rather than UTC, since Graph resolves DST against the zone in start.timeZone.",
685
685
  "presets": ["work"],
686
686
  "workScopes": ["Calendars.ReadWrite.Shared"],
687
687
  "appScopes": ["Calendars.ReadWrite"],
@@ -772,7 +772,7 @@
772
772
  "scopes": ["Files.Read"],
773
773
  "appScopes": [["Files.Read.All"], ["Sites.Read.All"], ["Sites.Selected"]],
774
774
  "deltaToken": true,
775
- "llmTip": "Tracks changes to a driveItem and its children over time. Returns a collection of driveItems that have been created, modified, or deleted. Use get-drive-root-item first to get the root driveItem-id, then pass it here. Supports $select. For incremental sync, pass the @odata.deltaLink from the last page as token on the next call."
775
+ "llmTip": "Tracks changes to a driveItem and its children. An item can appear more than once; use its last occurrence. Deleted items have a deleted facet. Use get-drive-root-item first to get the root driveItem-id, then pass it here. Supports $select."
776
776
  },
777
777
  {
778
778
  "pathPattern": "/drives/{drive-id}/root",
@@ -815,7 +815,7 @@
815
815
  "presets": ["files", "onedrive", "personal"],
816
816
  "scopes": [["Files.ReadWrite"], ["Sites.Selected"]],
817
817
  "appScopes": [["Sites.ReadWrite.All"], ["Sites.Selected"]],
818
- "llmTip": "For large file uploads (no size limit, and no minimum unlike the Outlook attachment session). Returns a pre-authenticated uploadUrl; the caller PUTs the bytes there itself. This server does not perform the PUT. For new files use path: /items/{parentId}:/{fileName}:/createUploadSession. Body (optional): { item: { '@microsoft.graph.conflictBehavior': 'rename' } }."
818
+ "llmTip": "For large file uploads (up to 250 GB; no minimum, unlike the Outlook attachment session). Returns a pre-authenticated uploadUrl; the caller PUTs the bytes there itself, without an Authorization header, in ranges under 60 MiB that are multiples of 320 KiB (except the last). This server does not perform the PUT. For new files use path: /items/{parentId}:/{fileName}:/createUploadSession. Body (optional): { item: { '@microsoft.graph.conflictBehavior': 'rename' } }."
819
819
  },
820
820
  {
821
821
  "pathPattern": "/drives/{drive-id}/items/{driveItem-id}",
@@ -851,7 +851,7 @@
851
851
  "presets": ["files", "onedrive", "personal"],
852
852
  "scopes": ["Files.ReadWrite"],
853
853
  "appScopes": [["Files.ReadWrite.All"], ["Sites.ReadWrite.All"], ["Sites.Selected"]],
854
- "llmTip": "Shares a file or folder with specific users. Body: { recipients: [{ email: 'user@example.com' }], roles: ['read'], sendInvitation: true, message: 'Please review this file.' }. Roles: 'read', 'write', 'owner'. Set requireSignIn to true to require authentication."
854
+ "llmTip": "Shares a file or folder with specific users. Body: { recipients: [{ email: 'user@example.com' }], roles: ['read'], sendInvitation: true, message: 'Please review this file.' }. Roles: 'read', 'write'. Set requireSignIn to true to require authentication."
855
855
  },
856
856
  {
857
857
  "pathPattern": "/drives/{drive-id}/items/{driveItem-id}/createLink",
@@ -860,7 +860,7 @@
860
860
  "presets": ["files", "onedrive", "personal"],
861
861
  "scopes": ["Files.ReadWrite"],
862
862
  "appScopes": [["Files.ReadWrite.All"], ["Sites.ReadWrite.All"], ["Sites.Selected"]],
863
- "llmTip": "Create a shareable link for a file or folder WITHOUT sending an email invitation. Body: { type: 'view' | 'edit' | 'embed', scope: 'anonymous' | 'organization' | 'users', password?: string, expirationDateTime?: ISO-8601, retainInheritedPermissions?: boolean }. Returns a permission with link.webUrl. Pair with share-drive-item when you want to grant explicit access; use this when you only need a URL to paste into a doc/email/chat without triggering OneDrive notifications."
863
+ "llmTip": "Create a shareable link for a file or folder WITHOUT sending an email invitation. Body: { type: 'view' | 'edit' | 'embed', scope: 'anonymous' | 'organization' | 'users', password?: string, expirationDateTime?: ISO-8601, retainInheritedPermissions?: boolean }. 'embed' works only in OneDrive personal, 'organization' only in OneDrive for Business and SharePoint. Returns a permission with link.webUrl. Pair with share-drive-item when you want to grant explicit access; use this when you only need a URL to paste into a doc/email/chat without triggering OneDrive notifications."
864
864
  },
865
865
  {
866
866
  "pathPattern": "/drives/{drive-id}/items/{driveItem-id}/copy",
@@ -896,7 +896,7 @@
896
896
  "presets": ["files", "onedrive", "personal"],
897
897
  "scopes": ["Files.Read"],
898
898
  "appScopes": [["Files.Read.All"], ["Sites.Read.All"], ["Sites.Selected"]],
899
- "llmTip": "Lists all permissions (sharing links, direct access, inherited) on a file or folder. Each permission has roles, grantedTo (user), link (sharing URL), and inheritedFrom."
899
+ "llmTip": "Lists sharing permissions (sharing links, direct access, inherited) on a file or folder. A non-owner only sees the permissions that apply to them. Use grantedToV2; grantedTo is deprecated."
900
900
  },
901
901
  {
902
902
  "pathPattern": "/drives/{drive-id}/items/{driveItem-id}/permissions/{permission-id}",
@@ -914,7 +914,7 @@
914
914
  "presets": ["files", "onedrive", "personal"],
915
915
  "scopes": [["Files.Read"], ["Sites.Selected"]],
916
916
  "appScopes": [["Files.Read.All"], ["Sites.Read.All"], ["Sites.Selected"]],
917
- "llmTip": "Lists version history of a file. Each version has id, lastModifiedDateTime, lastModifiedBy, and size. Use the version id with /versions/{id}/content to download a specific version."
917
+ "llmTip": "Lists versions of a file, newest first; the first is the current version. $orderby is not supported. Download an older version with /versions/{version-id}/content; for the current one use /content."
918
918
  },
919
919
  {
920
920
  "pathPattern": "/drives/{drive-id}/search(q='{q}')",
@@ -1071,7 +1071,7 @@
1071
1071
  "pathPattern": "/users/{user-id}/messages/{message-id}/$value",
1072
1072
  "method": "get",
1073
1073
  "toolName": "get-shared-mailbox-message-mime",
1074
- "descriptionOverride": "Download the raw MIME source (RFC 5322 .eml content) of a message in another user's mailbox or a shared mailbox, by message ID. The user-id is the mailbox owner's ID or email address, and delegated access to that mailbox is required.",
1074
+ "descriptionOverride": "Download the raw MIME source (RFC 5322 .eml content) of a message in another user's mailbox or a shared mailbox, by message ID. The user-id is the mailbox owner's ID or email address.",
1075
1075
  "presets": ["work"],
1076
1076
  "workScopes": ["Mail.Read.Shared"],
1077
1077
  "appScopes": ["Mail.Read"],
@@ -1093,7 +1093,7 @@
1093
1093
  "pathPattern": "/users/{user-id}/messages/{message-id}/attachments/{attachment-id}/$value",
1094
1094
  "method": "get",
1095
1095
  "toolName": "get-shared-mailbox-attachment-content",
1096
- "descriptionOverride": "Download the raw bytes of a file attachment of a message in another user's mailbox or a shared mailbox, by message ID and attachment ID. The user-id is the mailbox owner's ID or email address, and delegated access to that mailbox is required.",
1096
+ "descriptionOverride": "Download the raw bytes of a file attachment of a message in another user's mailbox or a shared mailbox, by message ID and attachment ID. The user-id is the mailbox owner's ID or email address.",
1097
1097
  "presets": ["work"],
1098
1098
  "workScopes": ["Mail.Read.Shared"],
1099
1099
  "appScopes": ["Mail.Read"],
@@ -1503,7 +1503,8 @@
1503
1503
  "toolName": "list-todo-task-lists-delta",
1504
1504
  "presets": ["personal", "tasks"],
1505
1505
  "scopes": ["Tasks.ReadWrite"],
1506
- "queryParams": ["select", "skiptoken"]
1506
+ "queryParams": ["select", "skiptoken"],
1507
+ "deltaToken": true
1507
1508
  },
1508
1509
  {
1509
1510
  "pathPattern": "/me/todo/lists/{todoTaskList-id}/tasks",
@@ -1757,7 +1758,7 @@
1757
1758
  "toolName": "create-planner-task-message",
1758
1759
  "scopes": ["Tasks.ReadWrite"],
1759
1760
  "apiVersion": "beta",
1760
- "llmTip": "Posts a message to a Planner task's chat (the modern 'task chat', not the legacy conversationThreadId comment). Microsoft is retiring the classic task comments experience and hiding it from the task (Planner 2026 update), so task chat is the current supported way to post per-task updates teammates will see, with @mentions. Body: { content: 'plain text or sanitized HTML', mentions?: [{ mentioned: 'user-id', position: 0, mentionType: 'user' }] } (mentions optional). No ETag/If-Match required. BETA Graph API: subject to change; delegated work/school accounts only — no application permissions, no personal Microsoft accounts, global cloud only (not GCC/DoD/21Vianet)."
1761
+ "llmTip": "Posts a message to a Planner task's chat (the modern 'task chat', not the legacy conversationThreadId comment). Task chat is currently available for basic plans; Premium plans use Teams conversations for task discussions. Only explicitly mentioned users receive notifications. Body: { content: 'plain text or sanitized HTML', mentions?: [{ mentioned: 'user-id', position: 0, mentionType: 'user' }] } (mentions optional). No ETag/If-Match required. BETA Graph API: subject to change; delegated work/school accounts only — no application permissions, no personal Microsoft accounts, global cloud only (not GCC/DoD/21Vianet)."
1761
1762
  },
1762
1763
  {
1763
1764
  "pathPattern": "/planner/tasks/{plannerTask-id}/messages/{plannerTaskChatMessage-id}",
@@ -1773,7 +1774,7 @@
1773
1774
  "toolName": "list-outlook-contacts",
1774
1775
  "presets": ["contacts", "outlook", "personal"],
1775
1776
  "scopes": ["Contacts.Read"],
1776
- "llmTip": "$filter only supports startswith() — contains() and eq on emailAddresses do not work. Use $search as alternative for broader matching."
1777
+ "llmTip": "To match an exact email address, use $filter=emailAddresses/any(a:a/address eq 'name@example.com'). For emailAddresses, only eq on the address sub-property is supported; contains(), startswith(), and other operators are not."
1777
1778
  },
1778
1779
  {
1779
1780
  "pathPattern": "/me/contacts/{contact-id}",
@@ -2945,10 +2946,10 @@
2945
2946
  "pathPattern": "/me/events/delta()",
2946
2947
  "method": "get",
2947
2948
  "toolName": "list-calendar-events-delta",
2949
+ "descriptionOverride": "Incremental sync of events in the signed-in user's mailbox, not a calendarView. startDateTime sets the earliest event start to include. Each event has only id, type, start and end; use get-calendar-event for the rest. For a time-bounded view with expanded recurring instances, use list-calendar-view-delta instead.",
2948
2950
  "presets": ["calendar", "outlook", "personal"],
2949
2951
  "scopes": ["Calendars.Read"],
2950
- "queryParams": ["startDateTime", "skiptoken"],
2951
- "llmTip": "Incremental sync of events across the default calendar. First call returns all events plus @odata.deltaLink. Subsequent calls with that link return only additions/updates/removals. Deltas expire after ~30 days — start over if the server returns 410 Gone. For a time-bounded view with delta semantics, use list-calendar-view-delta instead."
2952
+ "queryParams": ["startDateTime", "skiptoken"]
2952
2953
  },
2953
2954
  {
2954
2955
  "pathPattern": "/me/calendarView/delta()",
@@ -2985,7 +2986,7 @@
2985
2986
  "presets": ["work"],
2986
2987
  "workScopes": ["Group.ReadWrite.All"],
2987
2988
  "appScopes": ["Group.ReadWrite.All"],
2988
- "llmTip": "Permanently deletes a group and all its associated resources (conversations, files, calendar, planner). This action is irreversible. Use get-group to verify the group before deleting."
2989
+ "llmTip": "Deletes a group. Microsoft 365 and security groups can be restored from deletedItems within 30 days. Use get-group to verify the group before deleting."
2989
2990
  },
2990
2991
  {
2991
2992
  "pathPattern": "/groups/{group-id}/members/$ref",
@@ -3448,6 +3449,6 @@
3448
3449
  "presets": ["teams", "teams-write", "work"],
3449
3450
  "workScopes": ["TeamsActivity.Send"],
3450
3451
  "contentType": "application/json",
3451
- "llmTip": "Sends a Teams activity feed notification to the current user (the badge + entry in their Activity tab). Body: { topic: { source: 'entityUrl' | 'text', value: <Graph URL or plain text>, webUrl: <required when source='text', click-through URL> }, activityType: <must be declared in the calling Teams app's manifest, OR the reserved 'systemDefault' which provides free-form Actor+Reason text>, previewText: { content: 'short preview' }, templateParameters?: [{ name, value }] (substituted into the manifest's localized notification template), teamsAppId?: <optional disambiguator when multiple installed apps share a Microsoft Entra app ID — fetch via list-my-installed-teams-apps>, chainId?, iconId? }. Use to ping the user with 'action required' notifications from agentic workflows. See https://learn.microsoft.com/graph/teams-send-activityfeednotifications."
3452
+ "llmTip": "Sends a Teams activity feed notification to the current user (the badge + entry in their Activity tab). Body: { topic: { source: 'entityUrl' | 'text', value: <Microsoft Graph URL to a teamsAppInstallation or teamsCatalogApp when source='entityUrl'; plain text when source='text'>, webUrl: <required for source='text', click-through URL> }, activityType: <must be declared in the calling Teams app's manifest, OR the reserved 'systemDefault' which provides free-form Actor+Reason text>, previewText: { content: 'short preview' }, templateParameters?: [{ name, value }] (substituted into the manifest's localized notification template), teamsAppId?: <optional disambiguator when multiple installed apps share a Microsoft Entra app ID — fetch via list-my-installed-teams-apps>, chainId?, iconId? }. Use to ping the user with 'action required' notifications from agentic workflows. See https://learn.microsoft.com/graph/teams-send-activityfeednotifications."
3452
3453
  }
3453
3454
  ]
@@ -841,6 +841,7 @@ async function mintUploadUrl(target, name, contentType, accountParam, authManage
841
841
  expiresAt: new Date(ticket.expiresAtMs).toISOString(),
842
842
  singleUse: true,
843
843
  maxBytes: MAX_UPLOAD_BYTES,
844
+ name: cleanName,
844
845
  ...drive && { conflictBehavior: drive.conflictBehavior },
845
846
  note: 'PUT the raw file bytes with a Content-Length (e.g. curl -T <file> "<uploadUrl>"). Served by this server; valid for one upload until it expires.'
846
847
  })
@@ -999,17 +1000,86 @@ function invalidAcceptResult(accept) {
999
1000
  isError: true
1000
1001
  };
1001
1002
  }
1003
+ const MAX_TRANSFER_ENTRIES = 20;
1004
+ function withTransferList(listKey, entryParams, single) {
1005
+ const listError = (message) => ({
1006
+ content: [{ type: "text", text: JSON.stringify({ error: message }) }],
1007
+ isError: true
1008
+ });
1009
+ return async (params, ctx) => {
1010
+ const list = params[listKey];
1011
+ if (list == null) return single(params, ctx);
1012
+ if (!Array.isArray(list) || list.length === 0 || list.length > MAX_TRANSFER_ENTRIES) {
1013
+ return listError(`${listKey} must be a list of 1 to ${MAX_TRANSFER_ENTRIES} entries.`);
1014
+ }
1015
+ const mixed = Object.keys(params).filter(
1016
+ (key) => key !== listKey && key !== "account" && params[key] != null && params[key] !== ""
1017
+ );
1018
+ if (mixed.length > 0) {
1019
+ return listError(
1020
+ `With ${listKey}, give every other field inside its entries, not next to it (got ${mixed.join(", ")}).`
1021
+ );
1022
+ }
1023
+ const results = [];
1024
+ let failed = 0;
1025
+ for (const entry of list) {
1026
+ const entryInput = entryParams(entry);
1027
+ let result;
1028
+ try {
1029
+ result = await single({ ...entryInput, account: params.account }, ctx);
1030
+ } catch (error) {
1031
+ const message = error instanceof Error ? error.message : String(error);
1032
+ result = {
1033
+ content: [{ type: "text", text: JSON.stringify({ error: message || "Failed." }) }],
1034
+ isError: true
1035
+ };
1036
+ }
1037
+ const text = result.content?.[0]?.type === "text" ? result.content[0].text : "";
1038
+ let body;
1039
+ try {
1040
+ body = JSON.parse(text);
1041
+ } catch {
1042
+ body = void 0;
1043
+ }
1044
+ let entryFailed = result.isError === true;
1045
+ if (typeof body !== "object" || body === null || Array.isArray(body)) {
1046
+ body = { error: text || "No result." };
1047
+ entryFailed = true;
1048
+ }
1049
+ if (entryFailed) failed++;
1050
+ results.push({
1051
+ target: entryInput.target,
1052
+ ...entryInput.name !== void 0 && { name: entryInput.name },
1053
+ ...body
1054
+ });
1055
+ }
1056
+ return {
1057
+ content: [{ type: "text", text: JSON.stringify({ results }) }],
1058
+ // For the audit log: how many links this call handed out
1059
+ _meta: { result_count: list.length - failed },
1060
+ ...failed === list.length && { isError: true }
1061
+ };
1062
+ };
1063
+ }
1064
+ function uploadEntryParams(entry) {
1065
+ if (typeof entry !== "object" || entry === null) return {};
1066
+ const { target, name, contentType, contentId, conflictBehavior } = entry;
1067
+ return { target, name, contentType, contentId, conflictBehavior };
1068
+ }
1069
+ function downloadEntryParams(entry) {
1070
+ return { target: entry };
1071
+ }
1002
1072
  const UTILITY_TOOLS = [
1003
1073
  {
1004
1074
  name: "get-upload-url",
1005
1075
  method: "PUT",
1006
1076
  path: "tool:get-upload-url",
1007
1077
  searchKeywords: "upload attachment attach file draft email attach file event large attachment send file out-of-band upload url upload onedrive file upload sharepoint file",
1008
- description: 'Mint a short-lived, single-use URL that this server serves for uploading a file as an attachment to a draft message or an event, or as a file in a OneDrive/SharePoint folder, so the bytes go straight from the caller to Microsoft Graph instead of passing as base64 through the agent context. target is the attachments collection of the item: /me/messages/{message-id}/attachments (a draft; create it first) or /me/events/{event-id}/attachments; or a drive folder: /me/drive/root, /me/drive/items/{folder-id}, /drives/{drive-id}/items/{folder-id}, /sites/{site-id}/drive/items/{folder-id}. PUT the raw file bytes to the returned uploadUrl with a Content-Length (e.g. curl -T file "<uploadUrl>"); the response confirms the upload. Up to 150 MB. Pass contentId to attach inline, e.g. a signature picture the HTML body shows with <img src="cid:<contentId>">. For a drive folder, conflictBehavior says what happens when the name is taken (default fail; contentId does not apply). Requires --enable-attachment-urls. Returns { uploadUrl, method, expiresAt, singleUse, maxBytes, conflictBehavior? }.',
1078
+ description: 'Mint a short-lived, single-use URL that this server serves for uploading a file as an attachment to a draft message or an event, or as a file in a OneDrive/SharePoint folder, so the bytes go straight from the caller to Microsoft Graph instead of passing as base64 through the agent context. target is the attachments collection of the item: /me/messages/{message-id}/attachments (a draft; create it first) or /me/events/{event-id}/attachments; or a drive folder: /me/drive/root, /me/drive/items/{folder-id}, /drives/{drive-id}/items/{folder-id}, /sites/{site-id}/drive/items/{folder-id}. PUT the raw file bytes to the returned uploadUrl with a Content-Length (e.g. curl -T file "<uploadUrl>"); the response confirms the upload. Up to 150 MB. Pass contentId to attach inline, e.g. a signature picture the HTML body shows with <img src="cid:<contentId>">. For a drive folder, conflictBehavior says what happens when the name is taken (default fail; contentId does not apply). Requires --enable-attachment-urls. Returns { uploadUrl, method, expiresAt, singleUse, maxBytes, name, conflictBehavior? }. For several files, pass files (up to 20 entries of target, name and the optional fields) instead: one call returns { results: [...] }, one item per entry with its uploadUrl or its error. The links expire minutes after minting, so start every upload right away, in parallel or in one command.',
1009
1079
  readOnlyHint: false,
1010
1080
  openWorldHint: true,
1011
1081
  buildSchema: (ctx) => {
1012
- const schema = {
1082
+ const entry = {
1013
1083
  target: z.string().describe(
1014
1084
  "Attachments collection of a draft message or an event, e.g. /me/messages/{message-id}/attachments, /me/events/{event-id}/attachments, or /users/{user-id}/messages/{message-id}/attachments for another mailbox. Or a OneDrive/SharePoint folder: /me/drive/root, /me/drive/items/{folder-id}, /drives/{drive-id}/items/{folder-id}, /sites/{site-id}/drive/items/{folder-id}."
1015
1085
  ),
@@ -1024,6 +1094,15 @@ const UTILITY_TOOLS = [
1024
1094
  "Drive folder targets only: what happens when the folder already has a file with this name. fail (default), replace, or rename."
1025
1095
  )
1026
1096
  };
1097
+ const schema = {
1098
+ ...entry,
1099
+ // Optional so that files can stand in for them; execute still requires one form.
1100
+ target: entry.target.optional(),
1101
+ name: entry.name.optional(),
1102
+ files: z.array(z.object(entry)).min(1).max(MAX_TRANSFER_ENTRIES).optional().describe(
1103
+ `Several files at once, instead of target and name: up to ${MAX_TRANSFER_ENTRIES} entries, each with the fields of a single upload.`
1104
+ )
1105
+ };
1027
1106
  if (ctx.multiAccount) {
1028
1107
  schema["account"] = z.string().optional().describe(
1029
1108
  "Account to use when multiple Microsoft accounts are configured. Required when multiple accounts exist (see list-accounts)."
@@ -1031,7 +1110,7 @@ const UTILITY_TOOLS = [
1031
1110
  }
1032
1111
  return schema;
1033
1112
  },
1034
- execute: async (params, { authManager }) => {
1113
+ execute: withTransferList("files", uploadEntryParams, async (params, { authManager }) => {
1035
1114
  const target = params.target;
1036
1115
  const name = params.name;
1037
1116
  if (typeof target !== "string" || target.length === 0) {
@@ -1050,7 +1129,7 @@ const UTILITY_TOOLS = [
1050
1129
  optionalContentId(params.contentId),
1051
1130
  params.conflictBehavior === "" ? void 0 : params.conflictBehavior
1052
1131
  );
1053
- }
1132
+ })
1054
1133
  },
1055
1134
  {
1056
1135
  name: "upload-attachment-from-file",
@@ -1582,13 +1661,17 @@ const UTILITY_TOOLS = [
1582
1661
  method: "GET",
1583
1662
  path: "tool:get-download-url",
1584
1663
  searchKeywords: "download file download drive file download onedrive file sharepoint file download large drive file large sharepoint file large file out-of-band download pre-authenticated url",
1585
- description: "Resolve a short-lived, pre-authenticated download URL for Microsoft Graph binary content that exposes one (drive/SharePoint file content). The returned URL streams the bytes with NO Authorization header, so the client can fetch it straight to disk (e.g. curl) without round-tripping base64 through the agent context. Prefer this over download-bytes for any file above a few KB or any bulk download. Returns { downloadUrl, name?, size?, contentType? }. Mail file attachments (/messages/{id}/attachments/{id}/$value), meeting recordings and other $value byte endpoints have no pre-authenticated URL from Graph itself, but call this tool for them anyway: a server running with --enable-attachment-urls mints its own single-use URL for them, and one without it answers with the reason and points at download-bytes. With --enable-attachment-urls, drive files get a short single-use URL from this server as well, instead of the long one from Graph.",
1664
+ description: "Resolve a short-lived, pre-authenticated download URL for Microsoft Graph binary content that exposes one (drive/SharePoint file content). The returned URL streams the bytes with NO Authorization header, so the client can fetch it straight to disk (e.g. curl) without round-tripping base64 through the agent context. Prefer this over download-bytes for any file above a few KB or any bulk download. Returns { downloadUrl, name?, size?, contentType? }. Mail file attachments (/messages/{id}/attachments/{id}/$value), meeting recordings and other $value byte endpoints have no pre-authenticated URL from Graph itself, but call this tool for them anyway: a server running with --enable-attachment-urls mints its own single-use URL for them, and one without it answers with the reason and points at download-bytes. With --enable-attachment-urls, drive files get a short single-use URL from this server as well, instead of the long one from Graph. For several files, pass targets (up to 20) instead of target: one call returns { results: [...] }, one item per target with its downloadUrl or its error. Server-minted links expire minutes after minting, so start every download right away, in parallel or in one command.",
1586
1665
  readOnlyHint: true,
1587
1666
  openWorldHint: true,
1588
1667
  buildSchema: (ctx) => {
1589
1668
  const schema = {
1590
- target: z.string().describe(
1669
+ // Optional so that targets can stand in for it; execute still requires one form.
1670
+ target: z.string().optional().describe(
1591
1671
  'Relative Microsoft Graph path starting with "/". Either a driveItem content path or the item path itself, e.g. /drives/{drive-id}/items/{driveItem-id}/content, /me/drive/items/{driveItem-id}/content, or /sites/{site-id}/drive/items/{driveItem-id}. A trailing /content is optional and is stripped automatically for drive items. Mail attachment $value paths and meeting recordings are accepted on a server running with --enable-attachment-urls.'
1672
+ ),
1673
+ targets: z.array(z.string()).min(1).max(MAX_TRANSFER_ENTRIES).optional().describe(
1674
+ `Several files at once, instead of target: up to ${MAX_TRANSFER_ENTRIES} paths, each of the form target takes.`
1592
1675
  )
1593
1676
  };
1594
1677
  if (ctx.multiAccount) {
@@ -1598,7 +1681,8 @@ const UTILITY_TOOLS = [
1598
1681
  }
1599
1682
  return schema;
1600
1683
  },
1601
- execute: async (params, { graphClient, authManager, userFields }) => {
1684
+ execute: withTransferList("targets", downloadEntryParams, async (params, context) => {
1685
+ const { graphClient, authManager, userFields } = context;
1602
1686
  const target = params.target;
1603
1687
  const accountParam = params.account;
1604
1688
  if (typeof target !== "string" || target.length === 0) {
@@ -1839,7 +1923,7 @@ const UTILITY_TOOLS = [
1839
1923
  ...Object.keys(metadata).length > 0 ? { _meta: metadata } : {}
1840
1924
  };
1841
1925
  }
1842
- }
1926
+ })
1843
1927
  }
1844
1928
  ];
1845
1929
  function registerUtilityToolWithMcp(server, utility, ctx) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@softeria/ms-365-mcp-server",
3
3
  "mcpName": "io.github.Softeria/ms-365-mcp-server",
4
- "version": "0.188.0",
4
+ "version": "0.189.0",
5
5
  "description": " A Model Context Protocol (MCP) server for interacting with Microsoft 365 and Office services through the Graph API",
6
6
  "type": "module",
7
7
  "main": "dist/index.js",
@@ -60,7 +60,7 @@
60
60
  "toolName": "delete-mail-folder",
61
61
  "presets": ["mail", "outlook", "personal"],
62
62
  "scopes": ["Mail.ReadWrite"],
63
- "llmTip": "Deletes a mail folder and all its contents. This action is irreversible. Use list-mail-folders to find the folder ID."
63
+ "llmTip": "Deletes a mail folder and its contents. Not a permanent delete: the folder goes to Deleted Items and can be restored from there until it is purged. Use list-mail-folders to find the folder ID."
64
64
  },
65
65
  {
66
66
  "pathPattern": "/me/mailFolders/{mailFolder-id}/messages",
@@ -108,7 +108,7 @@
108
108
  "pathPattern": "/users/{user-id}/messages/{message-id}",
109
109
  "method": "get",
110
110
  "toolName": "get-shared-mailbox-message",
111
- "descriptionOverride": "Get a single Outlook message from another user's mailbox or a shared mailbox, by message ID. The user-id is the mailbox owner's ID or email address, and delegated access to that mailbox is required.",
111
+ "descriptionOverride": "Get a single Outlook message from another user's mailbox or a shared mailbox, by message ID. The user-id is the mailbox owner's ID or email address.",
112
112
  "presets": ["work"],
113
113
  "workScopes": ["Mail.Read.Shared"],
114
114
  "appScopes": [["Mail.Read"], ["Mail.ReadBasic.All"]]
@@ -138,7 +138,7 @@
138
138
  "pathPattern": "/users/{user-id}/messages/{message-id}/move",
139
139
  "method": "post",
140
140
  "toolName": "move-shared-mailbox-message",
141
- "descriptionOverride": "Move a message in another user's mailbox or a shared mailbox to a different folder. The user-id is the mailbox owner's ID or email address, and delegated access to that mailbox is required.",
141
+ "descriptionOverride": "Move a message in another user's mailbox or a shared mailbox to a different folder. The user-id is the mailbox owner's ID or email address.",
142
142
  "presets": ["work"],
143
143
  "workScopes": ["Mail.ReadWrite.Shared"],
144
144
  "appScopes": ["Mail.ReadWrite"],
@@ -148,7 +148,7 @@
148
148
  "pathPattern": "/users/{user-id}/messages/{message-id}",
149
149
  "method": "patch",
150
150
  "toolName": "update-shared-mailbox-message",
151
- "descriptionOverride": "Update a message in another user's mailbox or a shared mailbox — for example mark it read or unread (isRead), flag it (flag), change its categories or importance, or edit a draft's subject, body, or recipients. The user-id is the mailbox owner's ID or email address, and delegated access to that mailbox is required.",
151
+ "descriptionOverride": "Update a message in another user's mailbox or a shared mailbox — for example mark it read or unread (isRead), flag it (flag), change its categories or importance, or edit a draft's subject, body, or recipients. The user-id is the mailbox owner's ID or email address.",
152
152
  "presets": ["work"],
153
153
  "workScopes": ["Mail.ReadWrite.Shared"],
154
154
  "appScopes": ["Mail.ReadWrite"]
@@ -187,7 +187,7 @@
187
187
  "presets": ["work"],
188
188
  "workScopes": ["Mail.ReadWrite.Shared"],
189
189
  "appScopes": ["Mail.ReadWrite"],
190
- "llmTip": "Create a reply draft in a shared mailbox preserving thread metadata (conversationId, In-Reply-To, References). The 'user-id' is the shared mailbox email address (e.g. support@contoso.com). Does not send — use send-shared-mailbox-draft to send afterwards. Message.body (contentType 'html' for HTML) replaces the whole draft body, dropping the quoted history; 'comment' keeps it. Specifying both 'comment' and Message.body returns 400. Requires delegated access to the shared mailbox.",
190
+ "llmTip": "Create a reply draft in a shared mailbox preserving thread metadata (conversationId, In-Reply-To, References). The 'user-id' is the shared mailbox email address (e.g. support@contoso.com). Does not send — use send-shared-mailbox-draft to send afterwards. Message.body (contentType 'html' for HTML) replaces the whole draft body, dropping the quoted history; 'comment' keeps it. Specifying both 'comment' and Message.body returns 400.",
191
191
  "mcpApp": {
192
192
  "view": "mail-draft",
193
193
  "tools": { "get": "get-shared-mailbox-message", "send": "send-shared-mailbox-draft" }
@@ -200,7 +200,7 @@
200
200
  "presets": ["work"],
201
201
  "workScopes": ["Mail.ReadWrite.Shared"],
202
202
  "appScopes": ["Mail.ReadWrite"],
203
- "llmTip": "Create a reply-all draft in a shared mailbox preserving thread metadata (conversationId, In-Reply-To, References). The 'user-id' is the shared mailbox email address. Does not send — use send-shared-mailbox-draft to send afterwards. Message.body (contentType 'html' for HTML) replaces the whole draft body, dropping the quoted history; 'comment' keeps it. Specifying both 'comment' and Message.body returns 400. Requires delegated access to the shared mailbox.",
203
+ "llmTip": "Create a reply-all draft in a shared mailbox preserving thread metadata (conversationId, In-Reply-To, References). The 'user-id' is the shared mailbox email address. Does not send — use send-shared-mailbox-draft to send afterwards. Message.body (contentType 'html' for HTML) replaces the whole draft body, dropping the quoted history; 'comment' keeps it. Specifying both 'comment' and Message.body returns 400.",
204
204
  "mcpApp": {
205
205
  "view": "mail-draft",
206
206
  "tools": { "get": "get-shared-mailbox-message", "send": "send-shared-mailbox-draft" }
@@ -213,7 +213,7 @@
213
213
  "presets": ["work"],
214
214
  "workScopes": ["Mail.ReadWrite.Shared"],
215
215
  "appScopes": ["Mail.ReadWrite"],
216
- "llmTip": "Create a forward draft in a shared mailbox without sending. The 'user-id' is the shared mailbox email address. Does not send — use send-shared-mailbox-draft to send afterwards. Useful when the user wants to review before the forward goes out. Requires delegated access to the shared mailbox.",
216
+ "llmTip": "Create a forward draft in a shared mailbox without sending. The 'user-id' is the shared mailbox email address. Does not send — use send-shared-mailbox-draft to send afterwards. Useful when the user wants to review before the forward goes out.",
217
217
  "mcpApp": {
218
218
  "view": "mail-draft",
219
219
  "tools": { "get": "get-shared-mailbox-message", "send": "send-shared-mailbox-draft" }
@@ -232,7 +232,7 @@
232
232
  "pathPattern": "/users/{user-id}/mailFolders",
233
233
  "method": "get",
234
234
  "toolName": "list-shared-mailbox-folders",
235
- "descriptionOverride": "List the top-level mail folders in another user's mailbox or a shared mailbox. The user-id is the mailbox owner's ID or email address, and delegated access to that mailbox is required.",
235
+ "descriptionOverride": "List the top-level mail folders in another user's mailbox or a shared mailbox. The user-id is the mailbox owner's ID or email address.",
236
236
  "presets": ["work"],
237
237
  "workScopes": ["Mail.Read.Shared"],
238
238
  "appScopes": [["Mail.ReadBasic.All"], ["Mail.Read"]]
@@ -241,7 +241,7 @@
241
241
  "pathPattern": "/users/{user-id}/mailFolders/{mailFolder-id}/childFolders",
242
242
  "method": "get",
243
243
  "toolName": "list-shared-mailbox-child-folders",
244
- "descriptionOverride": "List the child folders of a mail folder in another user's mailbox or a shared mailbox. The user-id is the mailbox owner's ID or email address, and delegated access to that mailbox is required.",
244
+ "descriptionOverride": "List the child folders of a mail folder in another user's mailbox or a shared mailbox. The user-id is the mailbox owner's ID or email address.",
245
245
  "presets": ["work"],
246
246
  "workScopes": ["Mail.Read.Shared"],
247
247
  "appScopes": [["Mail.ReadBasic.All"], ["Mail.Read"]]
@@ -250,7 +250,7 @@
250
250
  "pathPattern": "/users/{user-id}/mailFolders",
251
251
  "method": "post",
252
252
  "toolName": "create-shared-mailbox-folder",
253
- "descriptionOverride": "Create a top-level mail folder in another user's mailbox or a shared mailbox. The user-id is the mailbox owner's ID or email address, and delegated access to that mailbox is required.",
253
+ "descriptionOverride": "Create a top-level mail folder in another user's mailbox or a shared mailbox. The user-id is the mailbox owner's ID or email address.",
254
254
  "presets": ["work"],
255
255
  "workScopes": ["Mail.ReadWrite.Shared"],
256
256
  "appScopes": ["Mail.ReadWrite"]
@@ -259,7 +259,7 @@
259
259
  "pathPattern": "/users/{user-id}/mailFolders/{mailFolder-id}/childFolders",
260
260
  "method": "post",
261
261
  "toolName": "create-shared-mailbox-child-folder",
262
- "descriptionOverride": "Create a subfolder inside a mail folder in another user's mailbox or a shared mailbox. The user-id is the mailbox owner's ID or email address, and delegated access to that mailbox is required.",
262
+ "descriptionOverride": "Create a subfolder inside a mail folder in another user's mailbox or a shared mailbox. The user-id is the mailbox owner's ID or email address.",
263
263
  "presets": ["work"],
264
264
  "workScopes": ["Mail.ReadWrite.Shared"],
265
265
  "appScopes": ["Mail.ReadWrite"]
@@ -268,7 +268,7 @@
268
268
  "pathPattern": "/users/{user-id}/messages/{message-id}/attachments",
269
269
  "method": "get",
270
270
  "toolName": "list-shared-mailbox-attachments",
271
- "descriptionOverride": "List the attachments on a message in another user's mailbox or a shared mailbox. The user-id is the mailbox owner's ID or email address, and delegated access to that mailbox is required.",
271
+ "descriptionOverride": "List the attachments on a message in another user's mailbox or a shared mailbox. The user-id is the mailbox owner's ID or email address.",
272
272
  "presets": ["work"],
273
273
  "workScopes": ["Mail.Read.Shared"],
274
274
  "appScopes": ["Mail.Read"],
@@ -278,7 +278,7 @@
278
278
  "pathPattern": "/users/{user-id}/messages/{message-id}/attachments",
279
279
  "method": "post",
280
280
  "toolName": "add-shared-mailbox-attachment",
281
- "descriptionOverride": "Add an attachment under 3MB to a draft message in another user's mailbox or a shared mailbox. The user-id is the mailbox owner's ID or email address, and delegated access to that mailbox is required.",
281
+ "descriptionOverride": "Add an attachment under 3MB to a draft message in another user's mailbox or a shared mailbox. The user-id is the mailbox owner's ID or email address.",
282
282
  "presets": ["work"],
283
283
  "workScopes": ["Mail.ReadWrite.Shared"],
284
284
  "appScopes": ["Mail.ReadWrite"],
@@ -288,7 +288,7 @@
288
288
  "pathPattern": "/users/{user-id}/messages/{message-id}/attachments/{attachment-id}",
289
289
  "method": "delete",
290
290
  "toolName": "delete-shared-mailbox-attachment",
291
- "descriptionOverride": "Delete an attachment from a message in another user's mailbox or a shared mailbox. The user-id is the mailbox owner's ID or email address, and delegated access to that mailbox is required.",
291
+ "descriptionOverride": "Delete an attachment from a message in another user's mailbox or a shared mailbox. The user-id is the mailbox owner's ID or email address.",
292
292
  "presets": ["work"],
293
293
  "workScopes": ["Mail.ReadWrite.Shared"],
294
294
  "appScopes": ["Mail.ReadWrite"]
@@ -661,7 +661,7 @@
661
661
  "pathPattern": "/users/{user-id}/calendar/events",
662
662
  "method": "get",
663
663
  "toolName": "list-shared-calendar-events",
664
- "descriptionOverride": "List events in another user's default calendar. The user-id is the calendar owner's ID or email address, and delegated access to that calendar is required. Recurring events are returned as a single series master, not expanded into occurrences - use get-shared-calendar-view for that.",
664
+ "descriptionOverride": "List events in another user's default calendar. The user-id is the calendar owner's ID or email address. Recurring events are returned as a single series master, not expanded into occurrences - use get-shared-calendar-view for that.",
665
665
  "presets": ["work"],
666
666
  "workScopes": ["Calendars.Read.Shared"],
667
667
  "appScopes": [["Calendars.ReadBasic"], ["Calendars.Read"]],
@@ -681,7 +681,7 @@
681
681
  "pathPattern": "/users/{user-id}/calendar/events",
682
682
  "method": "post",
683
683
  "toolName": "create-shared-calendar-event",
684
- "descriptionOverride": "Create an event in another user's default calendar. The user-id is the calendar owner's ID or email address, and delegated write access to that calendar is required. Times use nested objects, not flat fields: start: {dateTime, timeZone}, end: {dateTime, timeZone}. Do NOT use startDateTime/startTimeZone. For recurring events use the calendar owner's own time zone name rather than UTC, since Graph resolves DST against the zone in start.timeZone.",
684
+ "descriptionOverride": "Create an event in another user's default calendar. The user-id is the calendar owner's ID or email address. Times use nested objects, not flat fields: start: {dateTime, timeZone}, end: {dateTime, timeZone}. Do NOT use startDateTime/startTimeZone. For recurring events use the calendar owner's own time zone name rather than UTC, since Graph resolves DST against the zone in start.timeZone.",
685
685
  "presets": ["work"],
686
686
  "workScopes": ["Calendars.ReadWrite.Shared"],
687
687
  "appScopes": ["Calendars.ReadWrite"],
@@ -772,7 +772,7 @@
772
772
  "scopes": ["Files.Read"],
773
773
  "appScopes": [["Files.Read.All"], ["Sites.Read.All"], ["Sites.Selected"]],
774
774
  "deltaToken": true,
775
- "llmTip": "Tracks changes to a driveItem and its children over time. Returns a collection of driveItems that have been created, modified, or deleted. Use get-drive-root-item first to get the root driveItem-id, then pass it here. Supports $select. For incremental sync, pass the @odata.deltaLink from the last page as token on the next call."
775
+ "llmTip": "Tracks changes to a driveItem and its children. An item can appear more than once; use its last occurrence. Deleted items have a deleted facet. Use get-drive-root-item first to get the root driveItem-id, then pass it here. Supports $select."
776
776
  },
777
777
  {
778
778
  "pathPattern": "/drives/{drive-id}/root",
@@ -815,7 +815,7 @@
815
815
  "presets": ["files", "onedrive", "personal"],
816
816
  "scopes": [["Files.ReadWrite"], ["Sites.Selected"]],
817
817
  "appScopes": [["Sites.ReadWrite.All"], ["Sites.Selected"]],
818
- "llmTip": "For large file uploads (no size limit, and no minimum unlike the Outlook attachment session). Returns a pre-authenticated uploadUrl; the caller PUTs the bytes there itself. This server does not perform the PUT. For new files use path: /items/{parentId}:/{fileName}:/createUploadSession. Body (optional): { item: { '@microsoft.graph.conflictBehavior': 'rename' } }."
818
+ "llmTip": "For large file uploads (up to 250 GB; no minimum, unlike the Outlook attachment session). Returns a pre-authenticated uploadUrl; the caller PUTs the bytes there itself, without an Authorization header, in ranges under 60 MiB that are multiples of 320 KiB (except the last). This server does not perform the PUT. For new files use path: /items/{parentId}:/{fileName}:/createUploadSession. Body (optional): { item: { '@microsoft.graph.conflictBehavior': 'rename' } }."
819
819
  },
820
820
  {
821
821
  "pathPattern": "/drives/{drive-id}/items/{driveItem-id}",
@@ -851,7 +851,7 @@
851
851
  "presets": ["files", "onedrive", "personal"],
852
852
  "scopes": ["Files.ReadWrite"],
853
853
  "appScopes": [["Files.ReadWrite.All"], ["Sites.ReadWrite.All"], ["Sites.Selected"]],
854
- "llmTip": "Shares a file or folder with specific users. Body: { recipients: [{ email: 'user@example.com' }], roles: ['read'], sendInvitation: true, message: 'Please review this file.' }. Roles: 'read', 'write', 'owner'. Set requireSignIn to true to require authentication."
854
+ "llmTip": "Shares a file or folder with specific users. Body: { recipients: [{ email: 'user@example.com' }], roles: ['read'], sendInvitation: true, message: 'Please review this file.' }. Roles: 'read', 'write'. Set requireSignIn to true to require authentication."
855
855
  },
856
856
  {
857
857
  "pathPattern": "/drives/{drive-id}/items/{driveItem-id}/createLink",
@@ -860,7 +860,7 @@
860
860
  "presets": ["files", "onedrive", "personal"],
861
861
  "scopes": ["Files.ReadWrite"],
862
862
  "appScopes": [["Files.ReadWrite.All"], ["Sites.ReadWrite.All"], ["Sites.Selected"]],
863
- "llmTip": "Create a shareable link for a file or folder WITHOUT sending an email invitation. Body: { type: 'view' | 'edit' | 'embed', scope: 'anonymous' | 'organization' | 'users', password?: string, expirationDateTime?: ISO-8601, retainInheritedPermissions?: boolean }. Returns a permission with link.webUrl. Pair with share-drive-item when you want to grant explicit access; use this when you only need a URL to paste into a doc/email/chat without triggering OneDrive notifications."
863
+ "llmTip": "Create a shareable link for a file or folder WITHOUT sending an email invitation. Body: { type: 'view' | 'edit' | 'embed', scope: 'anonymous' | 'organization' | 'users', password?: string, expirationDateTime?: ISO-8601, retainInheritedPermissions?: boolean }. 'embed' works only in OneDrive personal, 'organization' only in OneDrive for Business and SharePoint. Returns a permission with link.webUrl. Pair with share-drive-item when you want to grant explicit access; use this when you only need a URL to paste into a doc/email/chat without triggering OneDrive notifications."
864
864
  },
865
865
  {
866
866
  "pathPattern": "/drives/{drive-id}/items/{driveItem-id}/copy",
@@ -896,7 +896,7 @@
896
896
  "presets": ["files", "onedrive", "personal"],
897
897
  "scopes": ["Files.Read"],
898
898
  "appScopes": [["Files.Read.All"], ["Sites.Read.All"], ["Sites.Selected"]],
899
- "llmTip": "Lists all permissions (sharing links, direct access, inherited) on a file or folder. Each permission has roles, grantedTo (user), link (sharing URL), and inheritedFrom."
899
+ "llmTip": "Lists sharing permissions (sharing links, direct access, inherited) on a file or folder. A non-owner only sees the permissions that apply to them. Use grantedToV2; grantedTo is deprecated."
900
900
  },
901
901
  {
902
902
  "pathPattern": "/drives/{drive-id}/items/{driveItem-id}/permissions/{permission-id}",
@@ -914,7 +914,7 @@
914
914
  "presets": ["files", "onedrive", "personal"],
915
915
  "scopes": [["Files.Read"], ["Sites.Selected"]],
916
916
  "appScopes": [["Files.Read.All"], ["Sites.Read.All"], ["Sites.Selected"]],
917
- "llmTip": "Lists version history of a file. Each version has id, lastModifiedDateTime, lastModifiedBy, and size. Use the version id with /versions/{id}/content to download a specific version."
917
+ "llmTip": "Lists versions of a file, newest first; the first is the current version. $orderby is not supported. Download an older version with /versions/{version-id}/content; for the current one use /content."
918
918
  },
919
919
  {
920
920
  "pathPattern": "/drives/{drive-id}/search(q='{q}')",
@@ -1071,7 +1071,7 @@
1071
1071
  "pathPattern": "/users/{user-id}/messages/{message-id}/$value",
1072
1072
  "method": "get",
1073
1073
  "toolName": "get-shared-mailbox-message-mime",
1074
- "descriptionOverride": "Download the raw MIME source (RFC 5322 .eml content) of a message in another user's mailbox or a shared mailbox, by message ID. The user-id is the mailbox owner's ID or email address, and delegated access to that mailbox is required.",
1074
+ "descriptionOverride": "Download the raw MIME source (RFC 5322 .eml content) of a message in another user's mailbox or a shared mailbox, by message ID. The user-id is the mailbox owner's ID or email address.",
1075
1075
  "presets": ["work"],
1076
1076
  "workScopes": ["Mail.Read.Shared"],
1077
1077
  "appScopes": ["Mail.Read"],
@@ -1093,7 +1093,7 @@
1093
1093
  "pathPattern": "/users/{user-id}/messages/{message-id}/attachments/{attachment-id}/$value",
1094
1094
  "method": "get",
1095
1095
  "toolName": "get-shared-mailbox-attachment-content",
1096
- "descriptionOverride": "Download the raw bytes of a file attachment of a message in another user's mailbox or a shared mailbox, by message ID and attachment ID. The user-id is the mailbox owner's ID or email address, and delegated access to that mailbox is required.",
1096
+ "descriptionOverride": "Download the raw bytes of a file attachment of a message in another user's mailbox or a shared mailbox, by message ID and attachment ID. The user-id is the mailbox owner's ID or email address.",
1097
1097
  "presets": ["work"],
1098
1098
  "workScopes": ["Mail.Read.Shared"],
1099
1099
  "appScopes": ["Mail.Read"],
@@ -1503,7 +1503,8 @@
1503
1503
  "toolName": "list-todo-task-lists-delta",
1504
1504
  "presets": ["personal", "tasks"],
1505
1505
  "scopes": ["Tasks.ReadWrite"],
1506
- "queryParams": ["select", "skiptoken"]
1506
+ "queryParams": ["select", "skiptoken"],
1507
+ "deltaToken": true
1507
1508
  },
1508
1509
  {
1509
1510
  "pathPattern": "/me/todo/lists/{todoTaskList-id}/tasks",
@@ -1757,7 +1758,7 @@
1757
1758
  "toolName": "create-planner-task-message",
1758
1759
  "scopes": ["Tasks.ReadWrite"],
1759
1760
  "apiVersion": "beta",
1760
- "llmTip": "Posts a message to a Planner task's chat (the modern 'task chat', not the legacy conversationThreadId comment). Microsoft is retiring the classic task comments experience and hiding it from the task (Planner 2026 update), so task chat is the current supported way to post per-task updates teammates will see, with @mentions. Body: { content: 'plain text or sanitized HTML', mentions?: [{ mentioned: 'user-id', position: 0, mentionType: 'user' }] } (mentions optional). No ETag/If-Match required. BETA Graph API: subject to change; delegated work/school accounts only — no application permissions, no personal Microsoft accounts, global cloud only (not GCC/DoD/21Vianet)."
1761
+ "llmTip": "Posts a message to a Planner task's chat (the modern 'task chat', not the legacy conversationThreadId comment). Task chat is currently available for basic plans; Premium plans use Teams conversations for task discussions. Only explicitly mentioned users receive notifications. Body: { content: 'plain text or sanitized HTML', mentions?: [{ mentioned: 'user-id', position: 0, mentionType: 'user' }] } (mentions optional). No ETag/If-Match required. BETA Graph API: subject to change; delegated work/school accounts only — no application permissions, no personal Microsoft accounts, global cloud only (not GCC/DoD/21Vianet)."
1761
1762
  },
1762
1763
  {
1763
1764
  "pathPattern": "/planner/tasks/{plannerTask-id}/messages/{plannerTaskChatMessage-id}",
@@ -1773,7 +1774,7 @@
1773
1774
  "toolName": "list-outlook-contacts",
1774
1775
  "presets": ["contacts", "outlook", "personal"],
1775
1776
  "scopes": ["Contacts.Read"],
1776
- "llmTip": "$filter only supports startswith() — contains() and eq on emailAddresses do not work. Use $search as alternative for broader matching."
1777
+ "llmTip": "To match an exact email address, use $filter=emailAddresses/any(a:a/address eq 'name@example.com'). For emailAddresses, only eq on the address sub-property is supported; contains(), startswith(), and other operators are not."
1777
1778
  },
1778
1779
  {
1779
1780
  "pathPattern": "/me/contacts/{contact-id}",
@@ -2945,10 +2946,10 @@
2945
2946
  "pathPattern": "/me/events/delta()",
2946
2947
  "method": "get",
2947
2948
  "toolName": "list-calendar-events-delta",
2949
+ "descriptionOverride": "Incremental sync of events in the signed-in user's mailbox, not a calendarView. startDateTime sets the earliest event start to include. Each event has only id, type, start and end; use get-calendar-event for the rest. For a time-bounded view with expanded recurring instances, use list-calendar-view-delta instead.",
2948
2950
  "presets": ["calendar", "outlook", "personal"],
2949
2951
  "scopes": ["Calendars.Read"],
2950
- "queryParams": ["startDateTime", "skiptoken"],
2951
- "llmTip": "Incremental sync of events across the default calendar. First call returns all events plus @odata.deltaLink. Subsequent calls with that link return only additions/updates/removals. Deltas expire after ~30 days — start over if the server returns 410 Gone. For a time-bounded view with delta semantics, use list-calendar-view-delta instead."
2952
+ "queryParams": ["startDateTime", "skiptoken"]
2952
2953
  },
2953
2954
  {
2954
2955
  "pathPattern": "/me/calendarView/delta()",
@@ -2985,7 +2986,7 @@
2985
2986
  "presets": ["work"],
2986
2987
  "workScopes": ["Group.ReadWrite.All"],
2987
2988
  "appScopes": ["Group.ReadWrite.All"],
2988
- "llmTip": "Permanently deletes a group and all its associated resources (conversations, files, calendar, planner). This action is irreversible. Use get-group to verify the group before deleting."
2989
+ "llmTip": "Deletes a group. Microsoft 365 and security groups can be restored from deletedItems within 30 days. Use get-group to verify the group before deleting."
2989
2990
  },
2990
2991
  {
2991
2992
  "pathPattern": "/groups/{group-id}/members/$ref",
@@ -3448,6 +3449,6 @@
3448
3449
  "presets": ["teams", "teams-write", "work"],
3449
3450
  "workScopes": ["TeamsActivity.Send"],
3450
3451
  "contentType": "application/json",
3451
- "llmTip": "Sends a Teams activity feed notification to the current user (the badge + entry in their Activity tab). Body: { topic: { source: 'entityUrl' | 'text', value: <Graph URL or plain text>, webUrl: <required when source='text', click-through URL> }, activityType: <must be declared in the calling Teams app's manifest, OR the reserved 'systemDefault' which provides free-form Actor+Reason text>, previewText: { content: 'short preview' }, templateParameters?: [{ name, value }] (substituted into the manifest's localized notification template), teamsAppId?: <optional disambiguator when multiple installed apps share a Microsoft Entra app ID — fetch via list-my-installed-teams-apps>, chainId?, iconId? }. Use to ping the user with 'action required' notifications from agentic workflows. See https://learn.microsoft.com/graph/teams-send-activityfeednotifications."
3452
+ "llmTip": "Sends a Teams activity feed notification to the current user (the badge + entry in their Activity tab). Body: { topic: { source: 'entityUrl' | 'text', value: <Microsoft Graph URL to a teamsAppInstallation or teamsCatalogApp when source='entityUrl'; plain text when source='text'>, webUrl: <required for source='text', click-through URL> }, activityType: <must be declared in the calling Teams app's manifest, OR the reserved 'systemDefault' which provides free-form Actor+Reason text>, previewText: { content: 'short preview' }, templateParameters?: [{ name, value }] (substituted into the manifest's localized notification template), teamsAppId?: <optional disambiguator when multiple installed apps share a Microsoft Entra app ID — fetch via list-my-installed-teams-apps>, chainId?, iconId? }. Use to ping the user with 'action required' notifications from agentic workflows. See https://learn.microsoft.com/graph/teams-send-activityfeednotifications."
3452
3453
  }
3453
3454
  ]