Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
GRAPH_DEBUGNoEnable diagnostic logging on stderr. Defaults to `false`.
AZURE_CLIENT_IDYesEntra public-client application ID. Required; falls back to the saved `azureClientId`, then to empty.
AZURE_TENANT_IDNoTenant ID or `common`. Optional; defaults to the saved `azureTenantId`, then to `common`.
GRAPH_REDIRECT_URINoRedirect URI, which must exactly match the app registration. Defaults to `http://localhost:3000/auth/callback`.
GRAPH_RATE_LIMIT_WINDOWNoSliding-window duration in seconds. Defaults to `600`.
GRAPH_TOKEN_ENCRYPTION_KEYNoExplicit token-encryption key material. Defaults to a generated local key.
GRAPH_TOKEN_REFRESH_BUFFERNoRefresh access tokens this many seconds before expiry. Defaults to `300`.
GRAPH_RATE_LIMIT_MAX_REQUESTSNoSliding-window request limit. Defaults to `10000`.

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

Microsoft Teams, Outlook Calendar, Mail, meetings, users, presence, and OneDrive integration via Microsoft Graph API

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
graph_auth_statusA

Check Microsoft Graph authentication status. Attempts token refresh if needed.

graph_auth_loginB

Log in to Microsoft 365. Opens a browser for OAuth2 authentication.

graph_auth_logoutA

Log out from Microsoft 365. Clears stored tokens.

graph_get_profileB

Get the authenticated user's Microsoft 365 profile.

graph_list_chatsA

List recent Microsoft Teams chats.

Args: top: Maximum number of chats to return (default 50, maximum 50). next_link: Opaque nextLink URL from a previous call, used to fetch the next page. Overrides the other paging arguments when supplied. include_next_link: Whether to wrap the result as {items, next_link} so paging can continue (default false, which returns a bare list).

graph_get_chat_messagesA

Get messages from a specific chat.

Messages carry full HTML bodies plus their attachments and mentions, so compact narrows them to the identifying fields. Without it no $select is sent and the response is unchanged.

Args: chat_id: The chat ID. top: Maximum number of messages to return (default 50, maximum 50). compact: Whether to return only the identifying fields instead of the full record (default false). Use it to page through large collections cheaply. next_link: Opaque nextLink URL from a previous call, used to fetch the next page. Overrides the other paging arguments when supplied. include_next_link: Whether to wrap the result as {items, next_link} so paging can continue (default false, which returns a bare list).

graph_send_chat_messageB

Send a message to a chat.

Args: chat_id: The chat ID. message: Message body. When is_html is true, send explicit HTML; markdown is not converted. is_html: Whether the body is HTML content (default: True). Use false for plain text. mentions: Optional mentions. Each entry accepts raw Graph mention fields or a simplified shape with name/display_name and user_id. importance: Message importance: "normal", "high", or "urgent" (default "normal"). subject: Optional subject line. Empty omits it.

graph_create_chatC

Create a new chat (one-on-one or group).

graph_list_chat_membersB

List members of a chat.

Args: chat_id: The chat ID. next_link: Opaque nextLink URL from a previous call, used to fetch the next page. Overrides the other paging arguments when supplied. include_next_link: Whether to wrap the result as {items, next_link} so paging can continue (default false, which returns a bare list).

graph_get_chatC

Get a single chat, including its members.

Args: chat_id: The chat ID.

graph_update_chat_topicA

Rename a chat by setting its topic.

Only group chats have a topic; Graph rejects this for one-on-one chats.

Args: chat_id: The chat ID. topic: New topic for the chat.

graph_add_chat_memberA

Add a user to a group chat.

Requires the delegated ChatMember.ReadWrite permission.

Args: chat_id: The chat ID. user_id: User ID or user principal name to add. share_history_from: ISO 8601 timestamp (e.g. "2026-07-14T12:00:00Z") to share chat history from. Empty shares no history.

graph_remove_chat_memberA

Remove a member from a group chat.

Requires the delegated ChatMember.ReadWrite permission.

Args: chat_id: The chat ID. membership_id: The membership ID (from graph_list_chat_members).

graph_mark_chat_readA

Mark a chat as read or unread for a user.

Args: chat_id: The chat ID. user_id: The user ID to mark the chat for. is_read: Whether the chat is read (default true). Use false to mark it unread.

graph_update_chat_messageA

Edit the body of a chat message.

You can only edit messages you sent.

Args: chat_id: The chat ID. message_id: The message ID to edit. message: New message body. When is_html is true, send explicit HTML; markdown is not converted. is_html: Whether the body is HTML content (default: True). Use false for plain text.

graph_delete_chat_messageA

Soft delete a chat message, or restore one with restore.

Graph only exposes this action under /users/{user_id}, so the user ID is required. There is no hard delete, so a deleted message stays recoverable.

Args: chat_id: The chat ID. message_id: The message ID to delete. user_id: The user ID that sent the message. restore: Whether to restore a previously deleted message (default false).

graph_react_to_messageA

Set or remove an emoji reaction on a chat or channel message.

Supply either chat_id for a chat message or both team_id and channel_id for a channel message, never both.

Args: message_id: The message ID to react to. chat_id: Chat ID for a chat message. Empty when targeting a channel. team_id: Team ID for a channel message. Empty when targeting a chat. channel_id: Channel ID for a channel message. Empty when targeting a chat. reaction: Reaction type (default "like"). Common: like, heart, laugh, surprised, sad, angry. remove: Whether to remove the reaction instead of setting it (default false).

graph_list_teamsA

List Microsoft Teams that the authenticated user has joined.

Args: next_link: Opaque nextLink URL from a previous call, used to fetch the next page. Overrides the other paging arguments when supplied. include_next_link: Whether to wrap the result as {items, next_link} so paging can continue (default false, which returns a bare list).

graph_list_channelsA

List channels in a team.

Args: team_id: The team ID (from graph_list_teams). next_link: Opaque nextLink URL from a previous call, used to fetch the next page. Overrides the other paging arguments when supplied. include_next_link: Whether to wrap the result as {items, next_link} so paging can continue (default false, which returns a bare list).

graph_get_channel_messagesA

Get messages from a channel.

Messages carry full HTML bodies plus their attachments and mentions, so compact narrows them to the identifying fields. Without it no $select is sent and the response is unchanged.

Args: team_id: The team ID (from graph_list_teams). channel_id: The channel ID (from graph_list_channels). top: Maximum number of messages to return (default 50, maximum 50). compact: Whether to return only the identifying fields instead of the full record (default false). Use it to page through large collections cheaply. next_link: Opaque nextLink URL from a previous call, used to fetch the next page. Overrides the other paging arguments when supplied. include_next_link: Whether to wrap the result as {items, next_link} so paging can continue (default false, which returns a bare list).

graph_send_channel_messageC

Send a message to a channel.

graph_list_channel_membersA

List members of a channel.

Args: team_id: The team ID (from graph_list_teams). channel_id: The channel ID (from graph_list_channels). next_link: Opaque nextLink URL from a previous call, used to fetch the next page. Overrides the other paging arguments when supplied. include_next_link: Whether to wrap the result as {items, next_link} so paging can continue (default false, which returns a bare list).

graph_get_channel_message_repliesA

Get replies to a channel message.

Messages carry full HTML bodies plus their attachments and mentions, so compact narrows them to the identifying fields. Without it no $select is sent and the response is unchanged.

Args: team_id: The team ID (from graph_list_teams). channel_id: The channel ID (from graph_list_channels). message_id: The message ID whose replies to return. top: Maximum number of replies to return (default 50, maximum 50). compact: Whether to return only the identifying fields instead of the full record (default false). Use it to page through large collections cheaply. next_link: Opaque nextLink URL from a previous call, used to fetch the next page. Overrides the other paging arguments when supplied. include_next_link: Whether to wrap the result as {items, next_link} so paging can continue (default false, which returns a bare list).

graph_reply_to_channel_messageC

Reply to a channel message.

graph_list_team_membersA

List members of a team.

Needs the TeamMember.Read.All permission, which requires admin consent.

Args: team_id: The team ID (from graph_list_teams). top: Maximum number of members to return (default 50, maximum 50). next_link: Opaque nextLink URL from a previous call, used to fetch the next page. Overrides the other paging arguments when supplied. include_next_link: Whether to wrap the result as {items, next_link} so paging can continue (default false, which returns a bare list).

graph_get_teamB

Get a team's details, including whether it is archived.

Args: team_id: The team ID (from graph_list_teams).

graph_get_primary_channelA

Get a team's primary channel, the one named General.

Use this as a shortcut for the default channel instead of listing every channel in the team.

Args: team_id: The team ID (from graph_list_teams).

graph_create_channelA

Create a channel in a team.

Needs the Channel.Create permission.

Args: team_id: The team ID (from graph_list_teams). display_name: Name of the new channel. description: Optional channel description. membership_type: Channel type: "standard", "private", or "shared" (default "standard").

graph_get_channel_files_folderA

Get the SharePoint folder that stores a channel's files.

This is the bridge from a channel to its SharePoint folder. Pass the returned folder ID together with its 'parentReference.driveId' as drive_id to the OneDrive file tools, which need both to reach a drive other than your own. Needs the Files.Read.All permission.

Args: team_id: The team ID (from graph_list_teams). channel_id: The channel ID (from graph_list_channels). include_children: Whether to also list the folder contents (default false). When true the result is {"folder": ..., "children": [...]}. top: Maximum number of children to return (default 50, maximum 50).

graph_update_channel_messageA

Edit a channel message you posted.

Only your own messages can be edited; editing anyone else's message fails.

Args: team_id: The team ID (from graph_list_teams). channel_id: The channel ID (from graph_list_channels). message_id: The message ID to edit (from graph_get_channel_messages). message: Replacement message content. When is_html is true, send explicit HTML; markdown is not converted. is_html: Whether the message is HTML content (default: True). Use false for plain text.

graph_delete_channel_messageA

Soft-delete a channel message, or restore one you deleted.

Args: team_id: The team ID (from graph_list_teams). channel_id: The channel ID (from graph_list_channels). message_id: The message ID to delete (from graph_get_channel_messages). restore: Whether to restore a previously soft-deleted message (default false).

graph_list_calendarsA

List the authenticated user's calendars.

Args: skip: Number of items to skip before returning results (default 0). Graph returns at most 50 per call, so page by raising skip in steps of top. compact: Whether to return only the identifying fields instead of the full record (default false). Use it to page through large collections cheaply. next_link: Opaque nextLink URL from a previous call, used to fetch the next page. Overrides the other paging arguments when supplied. include_next_link: Whether to wrap the result as {items, next_link} so paging can continue (default false, which returns a bare list). user: Shared or delegated calendar owner address or user ID to act on. Empty targets your own calendar. Requires the delegated Calendars.Read.Shared or Calendars.ReadWrite.Shared permissions.

graph_list_eventsA

List calendar events. Uses calendarView for date ranges, /events otherwise.

Args: start_datetime: Start of date range (ISO 8601, e.g. "2025-01-01T00:00:00Z"). Required with end_datetime for date range queries. end_datetime: End of date range (ISO 8601). Required with start_datetime. calendar_id: Optional calendar ID. Defaults to primary calendar. top: Maximum number of events to return (default 50). skip: Number of items to skip before returning results (default 0). Graph returns at most 50 per call, so page by raising skip in steps of top. filter_query: Optional OData filter (e.g. "isCancelled eq false"). Only applied on the /events path, because calendarView does not accept arbitrary filters. A filter on a recipient or organizer-style property also drops the sort, which Graph refuses to combine with it. compact: Whether to return only the identifying fields instead of the full record (default false). Use it to page through large collections cheaply. body_type: Body format to request: "html" or "text" (default "html"). Use "text" to avoid pulling large HTML bodies into context. next_link: Opaque nextLink URL from a previous call, used to fetch the next page. Overrides the other paging arguments when supplied. include_next_link: Whether to wrap the result as {items, next_link} so paging can continue (default false, which returns a bare list). user: Shared or delegated calendar owner address or user ID to act on. Empty targets your own calendar. Requires the delegated Calendars.Read.Shared or Calendars.ReadWrite.Shared permissions.

graph_get_eventA

Get full details of a specific calendar event.

Args: event_id: The event ID. body_type: Body format to request: "html" or "text" (default "html"). Use "text" to avoid pulling large HTML bodies into context. user: Shared or delegated calendar owner address or user ID to act on. Empty targets your own calendar. Requires the delegated Calendars.Read.Shared or Calendars.ReadWrite.Shared permissions.

graph_create_eventA

Create a new calendar event.

Args: subject: Event subject/title. start_datetime: Start time in ISO 8601 (e.g. "2025-03-01T10:00:00"). end_datetime: End time in ISO 8601 (e.g. "2025-03-01T11:00:00"). timezone: Timezone (default "UTC"). Examples: "Pacific Standard Time", "Europe/London". body: Optional event body/description. location: Optional location name. attendees: Optional list of required attendee email addresses. is_online_meeting: Whether to create a Teams online meeting (default false). is_html: Whether the body is HTML (default: plain text). is_all_day: Whether the event lasts all day (default false). Graph expects midnight start and end times for all-day events. show_as: Free/busy status: "free", "tentative", "busy", "oof", "workingElsewhere", or "unknown" (default "busy"). sensitivity: Sensitivity: "normal", "personal", "private", or "confidential" (default "normal"). reminder_minutes_before_start: Reminder lead time in minutes. Negative keeps the mailbox default (default -1). optional_attendees: Optional list of optional attendee email addresses. categories: Outlook category names to tag the event with. allow_new_time_proposals: Whether attendees may propose new times (default true). response_requested: Whether attendees are asked to respond (default true). repeat: Recurrence pattern: "none", "daily", "weekly", "monthly", or "yearly" (default "none"). repeat_interval: Interval between occurrences (default 1). repeat_days: Weekday names for weekly recurrence, e.g. ["monday", "thursday"]. Required when repeat is "weekly". repeat_until: Last date of the recurrence (YYYY-MM-DD). Mutually exclusive with repeat_count. repeat_count: Number of occurrences. Mutually exclusive with repeat_until. user: Shared or delegated calendar owner address or user ID to act on. Empty targets your own calendar. Requires the delegated Calendars.Read.Shared or Calendars.ReadWrite.Shared permissions.

graph_update_eventA

Update an existing calendar event. Only provided fields are updated.

Args: event_id: The event ID to update. subject: New subject/title. start_datetime: New start time (ISO 8601). Requires timezone. end_datetime: New end time (ISO 8601). Requires timezone. timezone: Timezone for start/end times. body: New body/description. location: New location name. attendees: New list of required attendee email addresses. is_html: Whether the body is HTML (default: plain text). is_all_day: Whether the event lasts all day (default false). Graph expects midnight start and end times for all-day events. show_as: Free/busy status: "free", "tentative", "busy", "oof", "workingElsewhere", or "unknown" (default "busy"). sensitivity: Sensitivity: "normal", "personal", "private", or "confidential" (default "normal"). reminder_minutes_before_start: Reminder lead time in minutes. Negative leaves the reminder unchanged (default -1). optional_attendees: New list of optional attendee email addresses, merged with attendees. categories: Outlook category names to tag the event with. allow_new_time_proposals: Whether attendees may propose new times (default true). response_requested: Whether attendees are asked to respond (default true). user: Shared or delegated calendar owner address or user ID to act on. Empty targets your own calendar. Requires the delegated Calendars.Read.Shared or Calendars.ReadWrite.Shared permissions.

graph_delete_eventB

Delete a calendar event.

Args: event_id: The event ID to delete. user: Shared or delegated calendar owner address or user ID to act on. Empty targets your own calendar. Requires the delegated Calendars.Read.Shared or Calendars.ReadWrite.Shared permissions.

graph_respond_to_eventA

RSVP to a meeting invite.

Args: event_id: The event ID to respond to. response: Response type: "accept", "decline", or "tentative". comment: Optional comment to send with the response. send_response: Whether to send the response to the organizer (default true). user: Shared or delegated calendar owner address or user ID to act on. Empty targets your own calendar. Requires the delegated Calendars.Read.Shared or Calendars.ReadWrite.Shared permissions.

graph_get_scheduleA

Get free/busy availability for people or rooms.

Args: schedules: List of SMTP addresses (users or rooms) to look up. start_datetime: Start of the lookup window (ISO 8601, e.g. "2025-03-01T09:00:00"). end_datetime: End of the lookup window (ISO 8601). timezone: Timezone for the window (default "UTC"). availability_view_interval: Availability view interval in minutes (default 30). user: Shared or delegated calendar owner address or user ID to act on. Empty targets your own calendar. Requires the delegated Calendars.Read.Shared or Calendars.ReadWrite.Shared permissions.

graph_find_meeting_timesA

Suggest meeting times that work for the attendees.

Graph scores candidate slots from the attendees' free/busy data, so use this to pick a time and graph_create_event to book it.

Args: attendees: Attendee email addresses to fit the meeting around. duration_minutes: Meeting length in minutes (default 30). start_datetime: Start of the search window (ISO 8601). Empty lets Graph choose. end_datetime: End of the search window (ISO 8601). Empty lets Graph choose. The window is only sent when both ends are supplied. timezone: Timezone for the search window (default "UTC"). minimum_attendee_percentage: Minimum percentage of attendees that must be free (default 100). max_candidates: Maximum number of suggestions to return (default 10). user: Shared or delegated calendar owner address or user ID to act on. Empty targets your own calendar. Requires the delegated Calendars.Read.Shared or Calendars.ReadWrite.Shared permissions.

graph_cancel_eventA

Cancel a meeting you organize and notify the attendees.

Unlike graph_delete_event, which removes the event without telling anyone, cancelling sends a cancellation notice to every attendee. Only the organizer can cancel a meeting; attendees should decline with graph_respond_to_event instead.

Args: event_id: The event ID to cancel. comment: Optional note to include in the cancellation notice. user: Shared or delegated calendar owner address or user ID to act on. Empty targets your own calendar. Requires the delegated Calendars.Read.Shared or Calendars.ReadWrite.Shared permissions.

graph_list_event_instancesA

List the occurrences of a recurring event in a date range.

Pass the series master event ID from graph_list_events, then use the returned occurrence IDs to update or cancel a single occurrence.

Args: event_id: The recurring series master event ID. start_datetime: Start of the occurrence window (ISO 8601). Required by Graph. end_datetime: End of the occurrence window (ISO 8601). Required by Graph. top: Maximum number of occurrences to return (default 50, maximum 50). skip: Number of items to skip before returning results (default 0). Graph returns at most 50 per call, so page by raising skip in steps of top. compact: Whether to return only the identifying fields instead of the full record (default false). Use it to page through large collections cheaply. next_link: Opaque nextLink URL from a previous call, used to fetch the next page. Overrides the other paging arguments when supplied. include_next_link: Whether to wrap the result as {items, next_link} so paging can continue (default false, which returns a bare list). user: Shared or delegated calendar owner address or user ID to act on. Empty targets your own calendar. Requires the delegated Calendars.Read.Shared or Calendars.ReadWrite.Shared permissions.

graph_list_roomsA

List bookable meeting rooms in the tenant.

Requires the delegated Place.Read.All permission. Use the returned email addresses with graph_get_schedule to check availability, or as attendees on graph_create_event to book a room.

Args: room_list: Room list email address to list rooms from. Empty lists every room in the tenant. top: Maximum number of rooms to return (default 50, maximum 50). skip: Number of items to skip before returning results (default 0). Graph returns at most 50 per call, so page by raising skip in steps of top. next_link: Opaque nextLink URL from a previous call, used to fetch the next page. Overrides the other paging arguments when supplied. include_next_link: Whether to wrap the result as {items, next_link} so paging can continue (default false, which returns a bare list).

graph_list_mailA

List emails from a mail folder.

Results are sorted newest first, except that the sort is dropped automatically when filter_query targets from/, sender/, toRecipients/ or ccRecipients/, because Graph cannot combine a sort with a filter on those properties.

Args: folder: Mail folder name or ID (default "inbox"). Common: inbox, sentitems, drafts, deleteditems, archive. top: Maximum number of emails to return per call (default 25, maximum 50). skip: Number of items to skip before returning results (default 0). Graph returns at most 50 per call, so page by raising skip in steps of top. filter_query: Optional OData filter (e.g. "isRead eq false"). Filtering on a sender or recipient drops the sort order, as described above. compact: Whether to return only the identifying fields instead of the full record (default false). Use it to page through large collections cheaply. next_link: Opaque nextLink URL from a previous call, used to fetch the next page. Overrides the other paging arguments when supplied. include_next_link: Whether to wrap the result as {items, next_link} so paging can continue (default false, which returns a bare list). immutable_ids: Whether to ask Graph for immutable message IDs (default false). A message ID changes when the message is moved, so a stored ID stops working; an immutable ID survives the move. mailbox: Shared mailbox address or user ID to act on. Empty targets your own mailbox. Requires the delegated Mail.*.Shared permissions.

graph_read_mailA

Read full details of a specific email.

Args: message_id: The email message ID. body_type: Body format to request: "html" or "text" (default "html"). Use "text" to avoid pulling large HTML bodies into context. immutable_ids: Whether to ask Graph for immutable message IDs (default false). A message ID changes when the message is moved, so a stored ID stops working; an immutable ID survives the move. mailbox: Shared mailbox address or user ID to act on. Empty targets your own mailbox. Requires the delegated Mail.*.Shared permissions.

graph_search_mailA

Search emails by keyword.

Args: query: Search query string. top: Maximum number of results (default 25). folder: Mail folder name or ID to search (default "", the whole mailbox). Scope the search to a folder when the mailbox holds thousands of messages. compact: Whether to return only the identifying fields instead of the full record (default false). Use it to page through large collections cheaply. next_link: Opaque nextLink URL from a previous call, used to fetch the next page. Overrides the other paging arguments when supplied. include_next_link: Whether to wrap the result as {items, next_link} so paging can continue (default false, which returns a bare list). immutable_ids: Whether to ask Graph for immutable message IDs (default false). A message ID changes when the message is moved, so a stored ID stops working; an immutable ID survives the move. mailbox: Shared mailbox address or user ID to act on. Empty targets your own mailbox. Requires the delegated Mail.*.Shared permissions.

graph_send_mailA

Send an email.

A non-empty mailbox posts to /users/{mailbox}/sendMail, so the message is sent as that shared mailbox and needs the delegated Mail.Send.Shared permission.

Args: to: List of recipient email addresses. subject: Email subject. body: Email body content. When is_html is true, send explicit HTML; markdown is not converted. cc: Optional list of CC email addresses. bcc: Optional list of BCC email addresses. is_html: Whether to send the email body as HTML content (default: True). Use false for plain text. importance: Message importance: "low", "normal", or "high" (default "normal"). reply_to: Optional list of addresses that replies should be sent to. save_to_sent_items: Whether to keep a copy in Sent Items (default true). mailbox: Shared mailbox address or user ID to act on. Empty targets your own mailbox. Requires the delegated Mail.*.Shared permissions.

graph_reply_mailA

Reply to an email.

Args: message_id: The email message ID to reply to. body: The reply body content. When is_html is true, send explicit HTML; markdown is not converted. reply_all: Whether to reply to all recipients (default: reply to sender only). is_html: Whether to send the reply body as HTML content (default: True). Use false for plain text. as_draft: Whether to leave the reply as an unsent draft (default false). Returns the created draft instead of a sent status. mailbox: Shared mailbox address or user ID to act on. Empty targets your own mailbox. Requires the delegated Mail.*.Shared permissions.

graph_list_mail_attachmentsB

List attachments on an email message.

Args: message_id: The email message ID. mailbox: Shared mailbox address or user ID to act on. Empty targets your own mailbox. Requires the delegated Mail.*.Shared permissions.

graph_get_mail_attachmentA

Get a specific email attachment including its content.

The attachment content is returned as base64-encoded data in the 'contentBytes' field. For large attachments, only metadata is practical.

Args: message_id: The email message ID. attachment_id: The attachment ID (from graph_list_mail_attachments). mailbox: Shared mailbox address or user ID to act on. Empty targets your own mailbox. Requires the delegated Mail.*.Shared permissions.

graph_move_mailA

Move messages to a mail folder. Use this to archive mail.

Processes each message in order and reports per-message outcomes, so a partial failure still tells you what moved.

Args: message_ids: Message IDs to move (1-50 per call). destination_folder: Destination folder ID or well-known name (default "archive"). Common: archive, inbox, deleteditems, junkemail. mailbox: Shared mailbox address or user ID to act on. Empty targets your own mailbox. Requires the delegated Mail.*.Shared permissions.

graph_delete_mailA

Delete messages. They are moved to Deleted Items, not erased.

Processes each message in order and reports per-message outcomes.

Args: message_ids: Message IDs to delete (1-50 per call). mailbox: Shared mailbox address or user ID to act on. Empty targets your own mailbox. Requires the delegated Mail.*.Shared permissions.

graph_mark_mail_readA

Mark messages as read or unread.

Processes each message in order and reports per-message outcomes.

Args: message_ids: Message IDs to update (1-50 per call). is_read: Whether the messages are read (default true). Use false to mark them unread. mailbox: Shared mailbox address or user ID to act on. Empty targets your own mailbox. Requires the delegated Mail.*.Shared permissions.

graph_flag_mailA

Set the follow-up flag on messages.

Processes each message in order and reports per-message outcomes.

Args: message_ids: Message IDs to update (1-50 per call). flag_status: Flag state: "notFlagged", "flagged", or "complete" (default "flagged"). mailbox: Shared mailbox address or user ID to act on. Empty targets your own mailbox. Requires the delegated Mail.*.Shared permissions.

graph_list_mail_foldersA

List mail folders, including their unread and total counts.

Use the returned folder IDs with graph_list_mail or graph_move_mail.

Args: parent_folder_id: Parent folder ID. Empty lists top-level folders. top: Maximum number of folders to return (default 25). skip: Number of items to skip before returning results (default 0). Graph returns at most 50 per call, so page by raising skip in steps of top. next_link: Opaque nextLink URL from a previous call, used to fetch the next page. Overrides the other paging arguments when supplied. include_next_link: Whether to wrap the result as {items, next_link} so paging can continue (default false, which returns a bare list). mailbox: Shared mailbox address or user ID to act on. Empty targets your own mailbox. Requires the delegated Mail.*.Shared permissions.

graph_create_mail_folderA

Create a mail folder.

Args: display_name: Name of the new folder. parent_folder_id: Parent folder ID. Empty creates a top-level folder. mailbox: Shared mailbox address or user ID to act on. Empty targets your own mailbox. Requires the delegated Mail.*.Shared permissions.

graph_forward_mailA

Forward an email to other recipients.

Args: message_id: The email message ID to forward. to: List of recipient email addresses. comment: Optional note to add above the forwarded message. When is_html is true, send explicit HTML; markdown is not converted. is_html: Whether the comment is HTML content (default: True). Use false for plain text. as_draft: Whether to leave the forward as an unsent draft (default false). Returns the created draft instead of a sent status. mailbox: Shared mailbox address or user ID to act on. Empty targets your own mailbox. Requires the delegated Mail.*.Shared permissions.

graph_create_mail_draftA

Create a draft email without sending it.

Use graph_add_mail_attachment to attach files to the draft and graph_send_mail_draft to send it.

Args: to: List of recipient email addresses. subject: Email subject. body: Email body content. When is_html is true, send explicit HTML; markdown is not converted. cc: Optional list of CC email addresses. bcc: Optional list of BCC email addresses. is_html: Whether the body is HTML content (default: True). Use false for plain text. importance: Message importance: "low", "normal", or "high" (default "normal"). reply_to: Optional list of addresses that replies should be sent to. mailbox: Shared mailbox address or user ID to act on. Empty targets your own mailbox. Requires the delegated Mail.*.Shared permissions.

graph_add_mail_attachmentA

Attach a file to an existing draft message (max 3MB).

Args: message_id: The draft message ID (from graph_create_mail_draft). file_name: File name to show on the attachment. content_base64: File content encoded as base64. content_type: MIME type (default "application/octet-stream"). mailbox: Shared mailbox address or user ID to act on. Empty targets your own mailbox. Requires the delegated Mail.*.Shared permissions.

graph_send_mail_draftA

Send an existing draft message.

Args: message_id: The draft message ID (from graph_create_mail_draft). mailbox: Shared mailbox address or user ID to act on. Empty targets your own mailbox. Requires the delegated Mail.*.Shared permissions.

graph_list_message_rulesA

List the inbox rules, including their conditions, actions, and order.

Args: mailbox: Shared mailbox address or user ID to act on. Empty targets your own mailbox. Requires the delegated Mail.*.Shared permissions.

graph_create_message_ruleA

Create an inbox rule that Exchange runs on incoming mail.

At least one condition and at least one action are required; only the parts you supply are sent to Graph.

Args: display_name: Name of the rule. sequence: Order in which the rule runs, lowest first (default 1). from_addresses: Sender addresses the rule matches. subject_contains: Strings the subject must contain. body_contains: Strings the body must contain. move_to_folder: Destination folder ID for matching messages. mark_as_read: Whether matching messages are marked read (default false). delete_message: Whether matching messages move to Deleted Items (default false). is_enabled: Whether the rule is active (default true). stop_processing: Whether later rules are skipped once this rule matches (default false). mailbox: Shared mailbox address or user ID to act on. Empty targets your own mailbox. Requires the delegated Mail.*.Shared permissions.

graph_delete_message_ruleA

Delete an inbox rule.

Args: rule_id: The rule ID (from graph_list_message_rules). mailbox: Shared mailbox address or user ID to act on. Empty targets your own mailbox. Requires the delegated Mail.*.Shared permissions.

graph_categorize_mailA

Set the categories on messages, replacing the categories already set.

Each category must match the display name of a master category, so create it with graph_create_master_category first. Processes each message in order and reports per-message outcomes.

Args: message_ids: Message IDs to update (1-50 per call). categories: Category display names to apply. An empty list clears them. mailbox: Shared mailbox address or user ID to act on. Empty targets your own mailbox. Requires the delegated Mail.*.Shared permissions.

graph_list_master_categoriesA

List the master categories available for mail and events.

Args: mailbox: Shared mailbox address or user ID to act on. Empty targets your own mailbox. Requires the delegated Mail.*.Shared permissions.

graph_create_master_categoryA

Create a master category so it can be applied to mail and events.

The displayName is immutable after creation: to rename a category, delete it and create a new one. Colors are the presets preset0 through preset24.

Args: display_name: Name of the new category. color: Color preset, preset0 through preset24 (default "preset0"). mailbox: Shared mailbox address or user ID to act on. Empty targets your own mailbox. Requires the delegated Mail.*.Shared permissions.

graph_get_mail_tipsA

Get mail tips for recipients. Use this to check whether someone is out of office.

Args: email_addresses: Recipient addresses to look up. options: Mail tips to request (default "automaticReplies", "mailboxFullStatus", "recipientScope"). Other values: customMailTip, deliveryRestriction, externalMemberCount, maxMessageSize, moderationStatus, totalMemberCount. mailbox: Shared mailbox address or user ID to act on. Empty targets your own mailbox. Requires the delegated Mail.*.Shared permissions.

graph_get_mail_deltaA

List the changes in a mail folder since a previous delta token.

Call it once without delta_link to seed a token, then pass the returned delta_token to receive only what changed since, including read-state changes and removals. Graph tracks one folder at a time and rejects $search on a delta query, so page through the folder you care about.

Args: folder: Mail folder name or ID (default "inbox"). delta_link: Opaque delta token from a previous call. Empty starts a new sync of the folder. top: Maximum number of messages per page (default 50). mailbox: Shared mailbox address or user ID to act on. Empty targets your own mailbox. Requires the delegated Mail.*.Shared permissions.

graph_get_mailbox_settingsA

Get mailbox settings, including automatic replies, time zone, and working hours.

Args: user: Colleague's address or user ID whose settings to read. Empty targets your own mailbox. Reading someone else needs delegate rights on that mailbox plus the MailboxSettings.Read permission.

graph_set_automatic_repliesA

Set or clear the automatic reply (out of office) message.

Args: status: "disabled", "alwaysEnabled", or "scheduled". Scheduled requires start_datetime and end_datetime. internal_message: Reply sent to people inside the organization. When is_html is true, send explicit HTML; markdown is not converted. external_message: Reply sent to people outside the organization. Empty reuses internal_message. external_audience: Who outside the organization receives a reply: "none", "contactsOnly", or "all" (default "none"). start_datetime: Scheduled window start (ISO 8601, e.g. "2025-03-01T09:00:00"). end_datetime: Scheduled window end (ISO 8601). timezone: Timezone for the scheduled window (default "UTC"). is_html: Whether the messages are HTML content (default: True). Use false for plain text.

graph_update_mailbox_settingsA

Update the mailbox time zone and working hours.

Only the parts you supply are sent, so the rest of the mailbox settings stay as they are. This always targets your own mailbox: Graph exposes no shared variant of mailbox settings.

Args: time_zone: Mailbox time zone name (e.g. "Pacific Standard Time"). working_days: Working days, lowercase (e.g. ["monday", "tuesday"]). working_hours_start: Start of the working day (e.g. "09:00:00"). working_hours_end: End of the working day (e.g. "17:00:00"). working_hours_timezone: Time zone name for the working hours.

graph_search_usersA

Search for users in the organization directory by name or email.

Graph does not support $skip alongside $search on /users, so page with next_link instead of an offset.

Args: query: Name or email address to look up. top: Maximum number of users to return (default 10, maximum 25). compact: Whether to return only the identifying fields instead of the full record (default false). Use it to page through large collections cheaply. next_link: Opaque nextLink URL from a previous call, used to fetch the next page. Overrides the other paging arguments when supplied. include_next_link: Whether to wrap the result as {items, next_link} so paging can continue (default false, which returns a bare list).

graph_get_managerA

Get a user's manager from the organization directory.

Reading someone else's manager requires the User.Read.All permission.

Args: user_id: User ID or email address. Empty targets the signed-in user.

graph_list_direct_reportsA

List the people who report directly to a user.

Reading someone else's direct reports requires the User.Read.All permission.

Args: user_id: User ID or email address. Empty targets the signed-in user. top: Maximum number of reports to return (default 50, maximum 50). skip: Number of items to skip before returning results (default 0). Graph returns at most 50 per call, so page by raising skip in steps of top. compact: Whether to return only the identifying fields instead of the full record (default false). Use it to page through large collections cheaply. next_link: Opaque nextLink URL from a previous call, used to fetch the next page. Overrides the other paging arguments when supplied. include_next_link: Whether to wrap the result as {items, next_link} so paging can continue (default false, which returns a bare list).

graph_get_my_presenceB

Get the authenticated user's current presence status.

graph_get_user_presenceC

Get another user's presence status.

graph_set_my_presenceC

Set the authenticated user's presence status.

graph_get_presences_by_user_idsA

Get presence for up to 650 users in one round trip.

Use this instead of calling graph_get_user_presence once per person. Needs the Presence.Read.All permission.

Args: user_ids: User IDs to look up (1-650 per call).

graph_set_status_messageA

Set your Teams status message, the note shown under your name.

This is separate from availability, which graph_set_my_presence controls.

Args: message: The status message text. expiry_datetime: Optional expiry in ISO 8601 (e.g. "2026-03-01T17:00:00"). Empty means the message does not expire. timezone: Timezone for expiry_datetime (default "UTC").

graph_clear_my_presenceA

Clear your presence. This is how you undo graph_set_my_presence.

graph_set_my_presence sets a preferred presence, so pass preferred=true to undo it and let Teams calculate your availability again.

Args: preferred: Whether to clear the preferred presence set by graph_set_my_presence (default false clears only this app's session presence).

graph_search_messagesC

Search messages across Teams chats and channels.

graph_search_allA

Search mail, calendar, files, and Teams in one relevance-ranked query.

Use this when you do not know where something lives. chatMessage cannot be combined with SharePoint entity types like site, list, listItem, drive, or driveItem, so search Teams messages separately.

Args: query: Search query string (KQL is supported). entity_types: Resource types to search (default ["message", "event", "driveItem"]). One or more of: message, event, driveItem, drive, site, list, listItem, chatMessage, person. size: Maximum number of hits to return (default 25, maximum 50). from: Number of hits to skip for paging (default 0). compact: Whether to flatten the response into one list of hits, each reduced to {id, rank, summary, resource_type, name_or_subject, web_url} (default false, which returns the full hitsContainers payload). id is the hitId, falling back to the resource id; name_or_subject is the resource subject, name, displayName or title; web_url is its webUrl or webLink; a field the hit does not carry is omitted.

graph_list_online_meetingsA

Look up an online meeting by join URL or by the numeric meeting ID.

Microsoft Graph has no unfiltered list of online meetings, so exactly one of join_url or join_meeting_id is required; without one the request fails with "One of the required parameters to lookup meeting by QueryOptions is null or empty". Either lookup returns a collection holding at most one meeting. When you only have a calendar event or a meeting chat thread, call graph_get_meeting_id.

Args: join_url: Teams meeting join URL, passed exactly as Graph reports it in onlineMeeting.joinUrl. Empty to look up by join_meeting_id. join_meeting_id: The numeric meeting ID printed in the invite, with or without spaces (for example "359 232 213 325 013"). Empty to look up by join_url. next_link: Opaque nextLink URL from a previous call, used to fetch the next page. Overrides the other paging arguments when supplied. include_next_link: Whether to wrap the result as {items, next_link} so paging can continue (default false, which returns a bare list).

graph_get_meeting_idA

Resolve the online meeting ID that the other meeting tools require.

Takes a calendar event, a Teams join URL, or a meeting chat thread and returns the ID used by graph_get_online_meeting, graph_list_meeting_transcripts, graph_get_transcript_content, graph_list_meeting_recordings, graph_get_meeting_recording_url and graph_get_meeting_attendance. It prefers the join URL lookup Graph documents and, when that finds nothing, derives the ID from the meeting thread and organizer instead, so it still answers for meetings the lookup misses. The returned "source" says which route produced the ID.

Only meetings the signed-in user organized are reachable through the delegated meeting tools, whoever owns the calendar item.

Args: event_id: Calendar event ID to resolve. Empty to use join_url or thread_id. join_url: Teams meeting join URL to resolve. Empty to use event_id or thread_id. thread_id: Meeting chat thread ID such as "19:meeting_@thread.v2". Empty to use event_id or join_url. organizer_id: The organizer's Microsoft Entra object ID. Used only with thread_id; empty resolves the signed-in user.

graph_list_meeting_transcriptsA

List available transcripts for an online meeting.

Args: meeting_id: The online meeting ID, from graph_get_meeting_id or the id field of graph_list_online_meetings. next_link: Opaque nextLink URL from a previous call, used to fetch the next page. Overrides the other paging arguments when supplied. include_next_link: Whether to wrap the result as {items, next_link} so paging can continue (default false, which returns a bare list).

graph_get_transcript_contentA

Get the text content of a meeting transcript.

Returns the transcript in VTT (Web Video Text Tracks) format, which includes timestamps and speaker attribution.

Args: meeting_id: The online meeting ID, from graph_get_meeting_id or the id field of graph_list_online_meetings. transcript_id: The transcript ID (from graph_list_meeting_transcripts).

graph_list_meeting_recordingsA

List available recordings for an online meeting.

Args: meeting_id: The online meeting ID, from graph_get_meeting_id or the id field of graph_list_online_meetings. next_link: Opaque nextLink URL from a previous call, used to fetch the next page. Overrides the other paging arguments when supplied. include_next_link: Whether to wrap the result as {items, next_link} so paging can continue (default false, which returns a bare list).

graph_get_meeting_recording_urlA

Get metadata and download URL for a meeting recording.

Returns recording metadata including a temporary download URL. The recording content itself is binary video and is not returned inline.

Args: meeting_id: The online meeting ID, from graph_get_meeting_id or the id field of graph_list_online_meetings. recording_id: The recording ID (from graph_list_meeting_recordings).

graph_create_online_meetingA

Create a Teams online meeting and get its join link.

The joinWebUrl field in the response is the link to share. This creates a meeting without a calendar event; use graph_create_event with is_online_meeting for a meeting that also appears on calendars. Needs the OnlineMeetings.ReadWrite permission.

Args: subject: Meeting subject. start_datetime: Start time in ISO 8601 with an offset or Z (e.g. "2026-03-01T10:00:00Z"). end_datetime: End time in ISO 8601 with an offset or Z. attendees: Optional list of attendee email addresses or user IDs. allowed_presenters: Who can present: "everyone", "organization", "roleIsPresenter", or "organizer" (default "everyone").

graph_get_online_meetingA

Get a single online meeting, including its join link and settings.

Args: meeting_id: The online meeting ID, from graph_get_meeting_id or the id field of graph_list_online_meetings.

graph_get_meeting_attendanceA

Get meeting attendance: who actually joined and for how long.

Without report_id this lists the available attendance reports. With report_id it returns that report expanded with per-attendee join and leave times, and the paging arguments do not apply. Needs the OnlineMeetingArtifact.Read.All permission, which requires admin consent.

Args: meeting_id: The online meeting ID, from graph_get_meeting_id or the id field of graph_list_online_meetings. report_id: Attendance report ID. Empty lists the available reports. next_link: Opaque nextLink URL from a previous call, used to fetch the next page. Overrides the other paging arguments when supplied. include_next_link: Whether to wrap the result as {items, next_link} so paging can continue (default false, which returns a bare list).

graph_list_filesA

List files and folders in OneDrive or a SharePoint document library.

Args: folder_id: Folder ID to list contents of. Empty for root folder. top: Maximum number of items to return (default 25). compact: Whether to return only the identifying fields instead of the full record (default false). Use it to page through large collections cheaply. skip: Number of items to skip before returning results (default 0). Graph returns at most 50 per call, so page by raising skip in steps of top. next_link: Opaque nextLink URL from a previous call, used to fetch the next page. Overrides the other paging arguments when supplied. include_next_link: Whether to wrap the result as {items, next_link} so paging can continue (default false, which returns a bare list). drive_id: Drive ID to act on. Empty targets your own OneDrive.

graph_search_filesA

Search for files by name or content in OneDrive or a SharePoint document library.

Graph rejects $skip on the search function, so page with next_link instead.

Args: query: Search query string. top: Maximum number of results (default 25). compact: Whether to return only the identifying fields instead of the full record (default false). Use it to page through large collections cheaply. next_link: Opaque nextLink URL from a previous call, used to fetch the next page. Overrides the other paging arguments when supplied. include_next_link: Whether to wrap the result as {items, next_link} so paging can continue (default false, which returns a bare list). drive_id: Drive ID to act on. Empty targets your own OneDrive.

graph_get_file_contentA

Get the content of a file from OneDrive or a SharePoint document library.

For text-based files (txt, csv, json, etc.), returns the file content directly. For binary files (images, docx, pdf, etc.), returns a temporary download URL instead. Use graph_get_file_bytes when you have no way to fetch that URL yourself.

Args: file_id: The file ID (from graph_list_files or graph_search_files). drive_id: Drive ID to act on. Empty targets your own OneDrive.

graph_get_file_bytesA

Download a file as base64-encoded bytes (max 4MB).

Use this for a binary file when you cannot fetch the downloadUrl that graph_get_file_content hands back. The bytes are returned in the 'contentBytes' field. Larger files are rejected, so use the downloadUrl for those.

Args: file_id: The file ID (from graph_list_files or graph_search_files). drive_id: Drive ID to act on. Empty targets your own OneDrive.

graph_upload_fileB

Upload a small file to OneDrive (max 4MB).

Args: file_path: Destination path in OneDrive (e.g. "Documents/report.txt"). content_base64: File content encoded as base64 string.

graph_share_fileB

Create a sharing link for a OneDrive file.

Args: file_id: The file ID to share. share_type: Permission type: "view", "edit", or "embed" (default "view"). scope: Share scope: "anonymous", "organization", or "users" (default "organization").

graph_create_folderC

Create a folder in OneDrive.

Args: folder_name: Name of the new folder. parent_folder_id: Parent folder ID. Empty for the drive root.

graph_delete_fileB

Delete a file or folder from OneDrive.

The item is moved to the OneDrive recycle bin.

Args: item_id: The file or folder ID to delete.

graph_move_fileA

Move and/or rename a file or folder in OneDrive.

At least one of new_parent_folder_id or new_name must be provided.

Args: item_id: The file or folder ID to move. new_parent_folder_id: Destination folder ID. Empty to keep the current parent. new_name: New name for the item. Empty to keep the current name.

graph_list_shared_filesA

List files other people have shared with the user.

Teams chat attachments do not show up here, so use graph_resolve_share_link on the attachment contentUrl instead. Only $top is passed because sharedWithMe does not support $select or $skip reliably, so page with next_link instead.

Args: top: Maximum number of items to return (default 25). next_link: Opaque nextLink URL from a previous call, used to fetch the next page. Overrides the other paging arguments when supplied. include_next_link: Whether to wrap the result as {items, next_link} so paging can continue (default false, which returns a bare list).

graph_copy_fileA

Copy a file or folder in OneDrive.

The copy is asynchronous: Graph returns 202 with a monitor URL rather than the finished item, so the new item may not exist yet when this call returns.

Args: item_id: The file or folder ID to copy. destination_folder_id: Destination folder ID. Empty to copy into the current parent. new_name: Name for the copy. Empty to keep the current name. drive_id: Drive ID to act on. Empty targets your own OneDrive.

graph_list_file_permissionsA

List who currently has access to a file or folder.

Args: item_id: The file or folder ID. next_link: Opaque nextLink URL from a previous call, used to fetch the next page. Overrides the other paging arguments when supplied. include_next_link: Whether to wrap the result as {items, next_link} so paging can continue (default false, which returns a bare list). drive_id: Drive ID to act on. Empty targets your own OneDrive.

graph_delete_file_permissionA

Revoke a sharing link or a person's access to a file or folder.

Args: item_id: The file or folder ID. permission_id: The permission ID (from graph_list_file_permissions). drive_id: Drive ID to act on. Empty targets your own OneDrive.

graph_invite_to_fileB

Invite people to a file or folder by email.

Args: item_id: The file or folder ID to share. emails: Email addresses of the people to invite. role: Access to grant: "read" or "write" (default "read"). send_email: Whether Graph should email the invitation (default false). message: Optional message to include with the invitation. drive_id: Drive ID to act on. Empty targets your own OneDrive.

graph_list_file_versionsA

List the stored versions of a file.

Args: item_id: The file ID. next_link: Opaque nextLink URL from a previous call, used to fetch the next page. Overrides the other paging arguments when supplied. include_next_link: Whether to wrap the result as {items, next_link} so paging can continue (default false, which returns a bare list). drive_id: Drive ID to act on. Empty targets your own OneDrive.

graph_restore_file_versionB

Restore a file to an earlier version.

Args: item_id: The file ID. version_id: The version ID (from graph_list_file_versions). drive_id: Drive ID to act on. Empty targets your own OneDrive.

graph_list_recent_filesA

List what the user worked on recently across their OneDrive.

Args: top: Maximum number of items to return (default 25, maximum 50). skip: Number of items to skip before returning results (default 0). Graph returns at most 50 per call, so page by raising skip in steps of top. next_link: Opaque nextLink URL from a previous call, used to fetch the next page. Overrides the other paging arguments when supplied. include_next_link: Whether to wrap the result as {items, next_link} so paging can continue (default false, which returns a bare list).

graph_list_drivesA

List the drives the user can reach, including their OneDrive and followed document libraries.

Args: skip: Number of items to skip before returning results (default 0). Graph returns at most 50 per call, so page by raising skip in steps of top. next_link: Opaque nextLink URL from a previous call, used to fetch the next page. Overrides the other paging arguments when supplied. include_next_link: Whether to wrap the result as {items, next_link} so paging can continue (default false, which returns a bare list).

graph_resolve_share_linkA

Resolve a sharing link to the file or folder it points to.

The response carries a short-lived '@microsoft.graph.downloadUrl' that needs no Authorization header, plus the 'parentReference.driveId' to pass as drive_id to the other file tools.

Args: share_url: The sharing URL to resolve.

graph_search_sitesA

Search SharePoint sites by keyword.

Needs the Sites.Read.All permission, which requires admin consent. Listing every site without a search term is application-only, so a query is always sent.

Args: query: Search query string. top: Maximum number of results (default 25, maximum 50).

graph_list_site_drivesA

List the document libraries of a SharePoint site.

Args: site_id: The SharePoint site ID (from graph_search_sites). skip: Number of items to skip before returning results (default 0). Graph returns at most 50 per call, so page by raising skip in steps of top. next_link: Opaque nextLink URL from a previous call, used to fetch the next page. Overrides the other paging arguments when supplied. include_next_link: Whether to wrap the result as {items, next_link} so paging can continue (default false, which returns a bare list).

graph_list_worksheetsA

List the worksheets in an Excel workbook.

Excel workbook APIs need the Files.ReadWrite permission and only work on .xlsx files.

Args: item_id: The workbook file ID. next_link: Opaque nextLink URL from a previous call, used to fetch the next page. Overrides the other paging arguments when supplied. include_next_link: Whether to wrap the result as {items, next_link} so paging can continue (default false, which returns a bare list). drive_id: Drive ID to act on. Empty targets your own OneDrive.

graph_get_worksheet_rangeA

Read cell values from a worksheet range.

The response values array holds the cell values, one inner array per row. Excel workbook APIs need the Files.ReadWrite permission and only work on .xlsx files.

Args: item_id: The workbook file ID. worksheet: Worksheet ID or name. address: Range address (e.g. "A1:D10"). Empty reads the used range. drive_id: Drive ID to act on. Empty targets your own OneDrive.

graph_update_worksheet_rangeA

Write cell values to a worksheet range.

Excel workbook APIs need the Files.ReadWrite permission and only work on .xlsx files.

Args: item_id: The workbook file ID. worksheet: Worksheet ID or name. address: Range address to write (e.g. "A1:D10"). Its shape must match values. values: Cell values as a 2D array, one inner array per row. Cells may be strings, numbers, booleans, or null. drive_id: Drive ID to act on. Empty targets your own OneDrive.

graph_search_peopleA

Search people the user works with, ranked by relevance.

Covers colleagues, saved contacts, and external people the user has mailed, so prefer this over graph_search_users when looking someone up by name. $search on /me/people only works for the signed-in user, and Graph does not support $skip alongside it, so page with next_link instead of an offset. Requires the People.Read permission.

Args: query: Name, email address, or partial text to look up. top: Maximum number of people to return (default 10, maximum 50). compact: Whether to return only the identifying fields instead of the full record (default false). Use it to page through large collections cheaply. next_link: Opaque nextLink URL from a previous call, used to fetch the next page. Overrides the other paging arguments when supplied. include_next_link: Whether to wrap the result as {items, next_link} so paging can continue (default false, which returns a bare list).

graph_list_contactsA

List the user's saved Outlook contacts.

Args: top: Maximum number of contacts to return (default 25, maximum 50). folder_id: Contact folder ID. Empty lists the default contacts folder. skip: Number of items to skip before returning results (default 0). Graph returns at most 50 per call, so page by raising skip in steps of top. compact: Whether to return only the identifying fields instead of the full record (default false). Use it to page through large collections cheaply. next_link: Opaque nextLink URL from a previous call, used to fetch the next page. Overrides the other paging arguments when supplied. include_next_link: Whether to wrap the result as {items, next_link} so paging can continue (default false, which returns a bare list).

graph_create_contactB

Create an Outlook contact. Requires the Contacts.ReadWrite permission.

Empty fields are omitted from the created contact.

Args: given_name: First name of the contact. surname: Last name of the contact. email: Primary email address. mobile_phone: Mobile phone number. company_name: Company the contact works for. job_title: Job title of the contact.

graph_update_contactB

Update an Outlook contact. Only the supplied fields are changed.

Args: contact_id: The contact ID to update. given_name: New first name. surname: New last name. email: New primary email address. mobile_phone: New mobile phone number. company_name: New company name. job_title: New job title.

graph_delete_contactC

Delete an Outlook contact.

Args: contact_id: The contact ID to delete.

graph_list_contact_foldersA

List contact folders.

Use the returned folder IDs with graph_list_contacts.

Args: top: Maximum number of folders to return (default 25, maximum 50). skip: Number of items to skip before returning results (default 0). Graph returns at most 50 per call, so page by raising skip in steps of top. next_link: Opaque nextLink URL from a previous call, used to fetch the next page. Overrides the other paging arguments when supplied. include_next_link: Whether to wrap the result as {items, next_link} so paging can continue (default false, which returns a bare list).

graph_list_todo_listsA

List Microsoft To Do task lists.

Use the returned list IDs with the other To Do tools.

Args: top: Maximum number of lists to return (default 25, maximum 50). skip: Number of items to skip before returning results (default 0). Graph returns at most 50 per call, so page by raising skip in steps of top. next_link: Opaque nextLink URL from a previous call, used to fetch the next page. Overrides the other paging arguments when supplied. include_next_link: Whether to wrap the result as {items, next_link} so paging can continue (default false, which returns a bare list).

graph_list_todo_tasksA

List tasks in a Microsoft To Do list.

Args: list_id: The task list ID (from graph_list_todo_lists). top: Maximum number of tasks to return (default 25, maximum 50). filter_query: Optional OData filter (e.g. "status eq 'completed'"). Replaces the default incomplete-only filter. include_completed: Whether to include completed tasks (default false). When false and no filter_query is given, only incomplete tasks are returned. skip: Number of items to skip before returning results (default 0). Graph returns at most 50 per call, so page by raising skip in steps of top. next_link: Opaque nextLink URL from a previous call, used to fetch the next page. Overrides the other paging arguments when supplied. include_next_link: Whether to wrap the result as {items, next_link} so paging can continue (default false, which returns a bare list).

graph_create_todo_taskA

Create a task in a Microsoft To Do list. Requires the Tasks.ReadWrite permission.

Empty fields are omitted from the created task.

Args: list_id: The task list ID (from graph_list_todo_lists). title: Task title. notes: Optional plain-text notes stored in the task body. due_datetime: Optional due date and time (ISO 8601, e.g. "2025-03-01T17:00:00"). timezone: Timezone for due_datetime and reminder_datetime (default "UTC"). importance: Task importance: "low", "normal", or "high" (default "normal"). reminder_datetime: Optional reminder date and time (ISO 8601).

graph_update_todo_taskA

Update a task in a Microsoft To Do list. Only the supplied fields are changed.

Complete a task by setting status to "completed".

Args: list_id: The task list ID (from graph_list_todo_lists). task_id: The task ID to update. title: New task title. notes: New plain-text notes for the task body. due_datetime: New due date and time (ISO 8601). timezone: Timezone for due_datetime (default "UTC"). status: New status: "notStarted", "inProgress", "completed", "waitingOnOthers", or "deferred". Empty leaves the status unchanged. importance: New importance: "low", "normal", or "high". Empty leaves the importance unchanged.

graph_delete_todo_taskB

Delete a task from a Microsoft To Do list.

Args: list_id: The task list ID (from graph_list_todo_lists). task_id: The task ID to delete.

graph_list_my_planner_tasksA

List Microsoft Planner tasks assigned to the user.

Planner tasks live on plans owned by Microsoft 365 groups, so this is separate from Microsoft To Do. Requires the Tasks.Read permission.

Args: top: Maximum number of tasks to return (default 25, maximum 50). skip: Number of items to skip before returning results (default 0). Graph returns at most 50 per call, so page by raising skip in steps of top. next_link: Opaque nextLink URL from a previous call, used to fetch the next page. Overrides the other paging arguments when supplied. include_next_link: Whether to wrap the result as {items, next_link} so paging can continue (default false, which returns a bare list).

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

B3.3/5.0

Scored across 127 tools

Disambiguation4/5

Most tools map to distinct resource/action pairs across mail, calendar, Teams, files, contacts, To Do, presence, and auth. A few boundaries are fuzzy, especially graph_search_people vs graph_search_users, graph_search_messages vs graph_search_all, and graph_get_file_content vs graph_get_file_bytes, but descriptions generally clarify the intended choices.

Naming Consistency5/5

The naming is highly consistent: every tool uses the graph_ prefix followed by a snake_case verb_noun pattern. Variants like graph_get_my_presence vs graph_get_user_presence are still predictable and readable.

Tool Count1/5

127 tools is far beyond a practical single-server tool surface, even for a broad Microsoft Graph integration. The count creates substantial selection and maintenance overhead, and most related operations could be grouped or gated behind higher-level workflows.

Completeness4/5

The surface covers core mail, calendar, Teams, file, contact, To Do, Planner read, user, and presence workflows quite thoroughly. Some lifecycle gaps remain, such as team/channel creation or deletion beyond messages, Planner task writes, and create/delete operations for To Do lists and contact folders.