Microsoft 365 Teams
v0.3.5Microsoft 365 Teams via Graph: list chats, read/send messages, list teams/channels, presence.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
list_chats
List recent Teams chats (1:1, group, and meeting chats).
| Parameter | Type | Description |
|---|---|---|
top | number | Max chats to return (default: 25, max: 50) |
get_chat
Get details about a specific chat.
| Parameter | Type | Description |
|---|---|---|
chatId * | string | Chat ID |
list_chat_messages
Get recent messages from a chat.
| Parameter | Type | Description |
|---|---|---|
chatId * | string | Chat ID |
top | number | Max messages to return (default: 50, max: 50) |
compose_chat_message
Open an inline editable message compose form before sending to a Teams chat. Use this when the user wants to write or send a Teams message so they can review and edit it first. Does NOT send directly — the form posts the message (via send_chat_message) when the user clicks Send. PARAMETERS: target (the chat ID to send to), text (message content).
| Parameter | Type | Description |
|---|---|---|
target * | string | The chat ID to send the message to |
text * | string | Message content (HTML supported) |
send_chat_message
Send a message now to a Teams chat, as the user; everyone in the chat sees it straight away. It cannot be unsent from here. To let the user review and edit it first, use compose_chat_message.
| Parameter | Type | Description |
|---|---|---|
chatId * | string | Chat ID |
content * | string | Message content (HTML supported) |
reply_to_message
Send a reply now to a specific message in a Teams chat, as the user; everyone in the chat sees it. It cannot be unsent from here.
| Parameter | Type | Description |
|---|---|---|
chatId * | string | Chat ID |
content * | string | Reply content (HTML supported) |
messageId * | string | ID of the chat message to reply to |
search_messages
Search Teams chat and channel messages by keyword across conversations you can access.
| Parameter | Type | Description |
|---|---|---|
query * | string | Search text (keyword or phrase) |
top | number | Max results to return (default: 10, max: 25) |
find_user
Look up people in the organization by display name or email address. Use this to resolve a colleague to a user ID or email before creating a chat. Requires the User.ReadBasic.All Graph permission.
| Parameter | Type | Description |
|---|---|---|
query * | string | Display name or email address of the person to find |
create_chat
Create a new 1:1 or group chat with one or more colleagues (by email address or user ID) and return the new chat ID, which can then be used with send_chat_message. The chat, and any topic, is visible to everyone added to it; no message is sent. A chat cannot be deleted by this connector.
| Parameter | Type | Description |
|---|---|---|
members * | array | Email addresses or user IDs of the other participants (one for a 1:1 chat, several for a group chat) |
topic | string | Chat topic (group chats only) |
list_teams
List Teams you are a member of.
list_channels
List channels in a Team.
| Parameter | Type | Description |
|---|---|---|
teamId * | string | Team ID |
list_channel_messages
List recent messages in a Teams channel. Requires the ChannelMessage.Read.All Graph permission, which may need tenant admin approval.
| Parameter | Type | Description |
|---|---|---|
channelId * | string | Channel ID |
teamId * | string | Team ID |
top | number | Max messages to return (default: 25, max: 50) |
send_channel_message
Post a new message now to a Teams channel, as the user; everyone in the channel can see it and may be notified. It cannot be unsent from here. Requires the ChannelMessage.Send Graph permission, which may need tenant admin approval.
| Parameter | Type | Description |
|---|---|---|
channelId * | string | Channel ID |
content * | string | Message content (HTML supported) |
teamId * | string | Team ID |
reply_to_channel_message
Send a reply now to an existing message in a Teams channel, as the user; everyone in the channel can see it, and people in that thread may be notified. It cannot be unsent from here. Requires the ChannelMessage.Send Graph permission, which may need tenant admin approval.
| Parameter | Type | Description |
|---|---|---|
channelId * | string | Channel ID |
content * | string | Reply content (HTML supported) |
messageId * | string | ID of the channel message to reply to |
teamId * | string | Team ID |
get_presence
Get your current presence status (available, busy, away, etc.).
get_user_presence
Get a colleague's current presence status (available, busy, in a meeting, etc.). Requires the Presence.Read.All Graph permission, which may need tenant admin approval.
| Parameter | Type | Description |
|---|---|---|
userId * | string | User ID or email address of the colleague |
set_presence
Set your own presence status (e.g. Busy, DoNotDisturb, Away), optionally for a limited duration; colleagues see the new status in Teams, and DoNotDisturb silences the user's notifications. It can be changed back by calling this tool again. Requires the Presence.ReadWrite Graph permission.
| Parameter | Type | Description |
|---|---|---|
availability * | string | Presence availability to set |
durationMinutes | integer | How long the status applies, in whole minutes (5-480). Omit to keep it until changed. |