m365-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| M365_ACCOUNT | No | The account name to use. If not set, the default account is used. | |
| M365_TIMEZONE | No | Timezone for calendar tools. Example: America/Chicago. | |
| M365_MCP_AUTH_DIR | No | Directory where OAuth tokens are stored. Defaults to ~/.m365-mcp/auth. | |
| M365_MCP_READ_ONLY | No | Set to 'true' to run in read-only mode. Must be set before authentication to request read-only scopes. Mutating tools are disabled. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| m365_mail_listA | Browse one mail folder (inbox by default), returning IDs, summaries and previews up to 200 characters, newest first within the returned set. Use filter or search, not both; top caps total results across internal pages. Use m365_mail_search across folders, m365_mail_read for a body, or m365_mail_folders for folder IDs. |
| m365_mail_readA | Read one email by message ID from m365_mail_list or m365_mail_search. Returns recipients, metadata and up to 10,000 characters of body content; longer bodies are cut off. Attachments are indicated but not downloaded. |
| m365_mail_sendA | Send a new email immediately to the supplied recipients; this does not create a draft. Use m365_mail_reply for an existing conversation. Returns success, to and subject, not a new message ID; success means submission, not confirmed delivery. Repeated calls can send duplicate emails; check Sent Items before retrying an uncertain send. |
| m365_mail_replyA | Send a reply to an existing email immediately; replyAll includes the original message's other recipients. Use m365_mail_send for a new conversation. Returns success only, not a draft or new message ID. Repeated calls can send duplicate replies; check Sent Items before retrying an uncertain send. |
| m365_mail_searchA | Find emails across mailbox folders using non-empty KQL search text. Returns IDs and summaries, not full bodies, newest first within the returned set. Use m365_mail_list to restrict a search to one folder, or m365_mail_read for message content. top caps total results across internal pages. |
| m365_mail_moveA | Move an email to a different folder |
| m365_mail_deleteA | Delete an email (moves to Deleted Items) |
| m365_mail_mark_readA | Mark an email as read or unread |
| m365_mail_foldersA | List all mail folders with counts |
| m365_calendar_listA | List calendar events; supply both dates to expand recurring events within a range |
| m365_calendar_getA | Read one event including its notes, with body format, length and explicit truncation status |
| m365_calendar_todayA | Show today's calendar events |
| m365_calendar_weekA | Show this week's calendar events grouped by day |
| m365_calendar_createA | Create a new event in your default or selected mailbox calendar, optionally as a Teams meeting. Supplying attendees sends invitation emails; omit them for a personal appointment. Use m365_calendar_update to edit an event or m365_calendar_availability to check free/busy first. Returns the event ID and available links. Repeated calls can create duplicate events; check m365_calendar_list before resubmitting after an uncertain outcome. |
| m365_calendar_updateA | Change supplied fields on an existing event; omitted fields stay unchanged. Meeting changes may notify attendees. Body updates replace the notes: first read m365_calendar_get and preserve online-meeting details. Use m365_calendar_create for a new event or m365_calendar_cancel to cancel. Returns success and eventId. Check the event before repeating an update after an uncertain outcome. |
| m365_calendar_deleteA | Compatibility alias for m365_calendar_cancel: cancel an event you organize and send cancellation notices to attendees. Prefer m365_calendar_cancel for new calls; this is not a silent delete or an attendee decline. Use m365_calendar_decline for received invitations. Returns success and eventId; check the calendar before retrying an uncertain cancellation. |
| m365_calendar_cancelA | Cancel a calendar event you organize and notify attendees |
| m365_calendar_declineA | Decline a received invitation as an attendee, not an event you organize. By default a response email goes to the organizer; set sendResponse=false to suppress it. Use m365_calendar_cancel if you are the organizer. Returns success and eventId; check response status in m365_calendar_list before retrying an uncertain decline. |
| m365_calendar_availabilityA | Read free/busy schedules for the supplied users and time range, including a 30-minute availability view. This does not book a meeting or send invitations. Use m365_calendar_create after selecting a time, or m365_calendar_list for your event details. Returns per-user schedules and any Graph-reported errors. |
| m365_contacts_listA | List contacts, optionally within a folder and filtered by one or more exact category names |
| m365_contacts_searchA | Search contacts by name, email, or company, optionally within a folder and filtered by exact categories |
| m365_contacts_readA | Read a saved Outlook contact by its contact ID, returning its complete Graph contact record. Use m365_contacts_list or m365_contacts_search to obtain the ID and pass the same folder location. Directory user IDs and People API person IDs are not contact IDs; use m365_users_profile for directory profiles. |
| m365_contacts_createA | Create a contact with names, multiple emails and phones, categories, addresses, and work or personal details |
| m365_contacts_updateA | Update or clear contact fields; use empty strings or arrays to clear supported values |
| m365_contacts_deleteA | Move a contact to Deleted Items |
| m365_contacts_categories_listA | List unique category names assigned to contacts in the default or selected folder, with usage counts |
| m365_contacts_folders_listA | List top-level contact folders or the direct children of one folder |
| m365_contacts_folder_createA | Create a child contact folder under an existing contact folder |
| m365_contacts_folder_updateA | Rename or move an existing contact folder; this changes the folder, not a contact or its categories. Supply displayName, moveToParentFolderId, or both. parentFolderId identifies the current parent of a direct-child folder; moveToParentFolderId is the destination. Use m365_contacts_folders_list for IDs. Returns the updated folder with success. |
| m365_contacts_folder_deleteA | Delete a non-default top-level or direct-child contact folder |
| m365_contacts_people_listA | Find relevance-ranked people for recipient selection using mailbox signals, the organization directory, or both; does not expose private Outlook Contact Lists |
| m365_files_listA | Browse the immediate files and folders in one OneDrive folder (root by default); not recursive. Returns IDs and metadata, not contents, with up to top items across internal pages. Use m365_files_search to find matches across the drive, m365_files_info for one item's metadata, or m365_files_read for text content. |
| m365_files_searchA | Find matching items across your OneDrive, returning IDs, paths and basic metadata, not file content. Use m365_files_list to browse a known folder, m365_files_info for an item's details, or m365_files_read for text content. top caps total results across internal pages. |
| m365_files_readA | Read a file's content (text files only, max 50KB by default) |
| m365_files_infoA | Get file or folder metadata |
| m365_files_create_folderA | Create one folder in your OneDrive root or an existing parentPath. This does not upload files or create missing parent folders. Returns the new folder's ID, name and web URL. Check m365_files_list before retrying a creation whose outcome is uncertain. |
| m365_teams_chatsA | List Teams chats you participate in, returning chat IDs, topics, member names and last-updated times. The returned set is sorted by last update; top caps total results across internal pages. Use m365_teams_messages to read a chat or m365_teams_send to post to it. Channel conversations are not included. |
| m365_teams_messagesA | Read messages from one Teams chat, newest first, with sender, timestamp and content type. Each body is limited to 2,000 characters and may contain incomplete HTML; this is not guaranteed to be the full history. Get chatId from m365_teams_chats. Use m365_teams_send to post a message. |
| m365_teams_sendA | Post a plain-text message immediately to an existing Teams chat; this does not create a chat, post to a channel or create a draft. Get chatId from m365_teams_chats. Returns message ID and success. Repeated calls can duplicate messages; check m365_teams_messages before retrying an uncertain send. |
| m365_tasks_listsA | List your Microsoft To Do task lists |
| m365_tasks_listA | List tasks inside one Microsoft To Do list, newest created first. Returns IDs, status, importance, due dates and notes limited to 500 characters; top caps total results across internal pages. Use m365_tasks_lists to find list IDs, m365_tasks_create to add tasks, or m365_tasks_update to change or complete one. |
| m365_tasks_createA | Create a task in an existing Microsoft To Do list; use m365_tasks_lists to find listId. This does not create a task list. Returns the task ID, title and status. Use m365_tasks_update to edit or complete a task. Check m365_tasks_list before retrying an uncertain creation to avoid duplicates. |
| m365_tasks_updateA | Change supplied fields on an existing To Do task; omitted fields stay unchanged and at least one editable field is required. Set status='completed' to complete it instead of deleting it. Get listId and taskId from m365_tasks_lists and m365_tasks_list. Returns success and taskId; use m365_tasks_create for a new task. |
| m365_tasks_deleteA | Delete one existing To Do task from the specified list; this is not task completion or list deletion. Use m365_tasks_update with status='completed' to finish a task while keeping it. Obtain matching listId/taskId from m365_tasks_lists and m365_tasks_list. Returns success only. |
| m365_users_listA | List users in your organization (requires delegated User.Read.All with admin consent) |
| m365_users_profileA | Get a user's profile (or your own if no user specified) |
| m365_users_managerA | Get a user's manager (or your own) |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 47 tools
Most tools target clearly distinct resources and actions, and descriptions explicitly cross-reference alternatives such as mail list vs. search vs. read. The main ambiguity is the deliberate alias m365_calendar_delete for m365_calendar_cancel, plus some closely related calendar/folder operations, but the descriptions make the intended boundaries clear.
The set largely follows a predictable m365_<domain>_<action> convention, e.g. m365_mail_read, m365_contacts_create, m365_files_search. There are minor singular/plural inconsistencies such as m365_contacts_folders_list vs. m365_contacts_folder_create and m365_tasks_lists vs. m365_tasks_list, but the pattern remains readable.
47 tools is very heavy for a single MCP server and exceeds the range where each tool is easy to keep in view. The breadth is partly justified by covering mail, calendar, contacts, files, Teams, tasks and users, but the surface could be consolidated or split into domain-specific servers.
Mail, calendar, contacts and tasks have broad lifecycle coverage, but files and Teams have notable gaps: files support browse/read/create-folder but not upload, download, delete or move, and Teams supports chats/messages/send but not channels or chat creation. Agents can work around some gaps, but key workflows in those domains will dead-end.