> **Building with AI coding agents?** Install the authstack plugin with one command. This equips your agent with accurate Scalekit implementation patterns.
>
> **Recommended** (the `-y` flags skip prompts, so the command runs without an interactive terminal):
> ```bash
> npx -y @scalekit-inc/cli setup -y
> ```
>
> Global:
> ```bash
> npm install -g @scalekit-inc/cli
> scalekit setup -y
> ```
>
> Supports Claude Code, Cursor, GitHub Copilot, Codex + skills for other Agent Skills-compatible agents in `~/.agents/skills`.
> Skills: integrate-agentkit, implement-saaskit, add-mcp-oauth, implement-sso, implement-scim.
> [Full setup guide](https://docs.scalekit.com/dev-kit/build-with-ai/)

---

# Connect AI agents to Teams

The Teams connector lets your AI agent act in each user's Teams account. Each user signs in to Teams once, and Scalekit stores and refreshes their tokens, so your agent never handles credentials. It comes with 82 tools.

**Authentication:** OAuth 2.0
**Categories:** Communication, Collaboration
**Tools:** 82: 28 read, 42 write, 12 destructive
**Users sign in with:** OAuth
**OAuth app:** Scalekit's or your own
**Built by:** Scalekit connector
**Try it:** [Playground in the Scalekit dashboard](https://app.scalekit.com/ws/signup?sk_intent=playground&provider=MICROSOFTTEAMS)

## What you can do

- **Send and read messages**: post, reply to, edit, and read messages in channels and chats
- **Search messages**: find chat and channel messages across everything the user can access
- **Manage teams and channels**: create, update, archive, and delete teams and channels, and add or remove members
- **Run online meetings**: schedule and update meetings, and pull transcripts, recordings, and attendance reports
- **Manage chats**: start one-on-one or group chats and add or remove chat members
- **Handle shifts and time off**: create shifts, request swaps, and approve or decline time-off requests

## Setup

1. ### Install the SDK

   **Node.js**

   ```bash
   npm install @scalekit-sdk/node dotenv
   ```

   **Python**

   ```bash
   pip install scalekit-sdk-python python-dotenv
   ```

2. ### Set your credentials

   Add your Scalekit credentials to your `.env` file. Find values in **[app.scalekit.com](https://app.scalekit.com)** > **Developers** > **API Credentials**.

   ```sh title=".env"
   SCALEKIT_ENVIRONMENT_URL=<your-environment-url>
   SCALEKIT_CLIENT_ID=<your-client-id>
   SCALEKIT_CLIENT_SECRET=<your-client-secret>
   ```

3. ### Create the Teams connection

   In **AgentKit > Connections**, create a Teams connection. The name you give it is the `connection_name` your code passes. See [Configure connections](/agentkit/connections/).

   Scalekit credentials are available for Teams, so you don't need to register an OAuth app. To show your own app on the consent screen, use your own credentials instead.

   **Use your own OAuth app:**

   Register your Scalekit environment with the Microsoft Teams connector so Scalekit handles the authentication flow and token lifecycle for you. The connection name you create will be used to identify and invoke the connection programmatically. Then complete the configuration in your application as follows:

   1. ### Register an Azure app

       - In [Scalekit dashboard](https://app.scalekit.com), go to **AgentKit** > **Connections** > **Create Connection**. Find **Teams** and click **Create**. Copy the redirect URI. It will look like `https://<SCALEKIT_ENVIRONMENT_URL>/sso/v1/oauth/<CONNECTION_ID>/callback`.

         > Image: Copy redirect URI from Scalekit dashboard

       - Sign into [portal.azure.com](https://portal.azure.com) and go to **Microsoft Entra ID** → **App registrations** → **New registration**.

       - Enter a name for your app.

       - Under **Supported account types**, select **Accounts in any organizational directory (Any Azure AD directory - Multitenant)**.

       - Under **Redirect URI**, select **Web** and paste the redirect URI from step 1. Click **Register**.

         > Image: Register an application in Azure portal

       - Go to **Certificates & secrets** → **New client secret**, set an expiry, and click **Add**. Copy the **Value** immediately.

       - From the **Overview** page, copy the **Application (client) ID**.

   2. ### Create an Azure bot

       - In the Azure portal, search for **Azure Bot** and click **Create**.

       - Enter a bot handle name, select your subscription and resource group, and set the **Microsoft App ID** to the **Application (client) ID** from above. Click **Review + create**.

         > Image: Azure Bot setup

       - Once created, go to **Channels** and add the **Microsoft Teams** channel to enable Teams integration.

   3. ### Add credentials in Scalekit

       - In [Scalekit dashboard](https://app.scalekit.com), go to **AgentKit** > **Connections** and open the connection you created.

       - Enter your credentials:
         - Client ID (Application (client) ID from Azure App Registration)
         - Client Secret (from Certificates & secrets)
         - Permissions (scopes — see [Microsoft Graph permissions reference](https://learn.microsoft.com/en-us/graph/permissions-reference))

         > Image: Add credentials in Scalekit dashboard
       - Click **Save**.

4. ### Authorize a user and make your first call

   **Node.js** (`quickstart.mts`)

   ```typescript
   import { ScalekitClient } from '@scalekit-sdk/node'
   import 'dotenv/config'
   import { createInterface } from 'node:readline/promises'

   const scalekit = new ScalekitClient(
     process.env.SCALEKIT_ENVIRONMENT_URL,
     process.env.SCALEKIT_CLIENT_ID,
     process.env.SCALEKIT_CLIENT_SECRET,
   )
   const actions = scalekit.actions

   const connector = 'microsoftteams'
   const identifier = 'user_123'

   // Generate an authorization link for the user
   const { link } = await actions.getAuthorizationLink({ connectionName: connector, identifier })
   console.log('Authorize Teams:', link)
   const rl = createInterface({ input: process.stdin, output: process.stdout })
   await rl.question('Press Enter after authorizing...')
   rl.close()

   // Make your first call
   const result = await actions.executeTool({
     connector,
     identifier,
     toolName: 'microsoftteams_list_all_teams',
     toolInput: {},
   })
   console.log(result)
   ```

   ```bash
   npx tsx quickstart.mts
   ```

   **Python** (`quickstart.py`)

   ```python
   import os
   from scalekit import ScalekitClient
   from dotenv import load_dotenv
   load_dotenv()

   scalekit_client = ScalekitClient(
       env_url=os.getenv("SCALEKIT_ENVIRONMENT_URL"),
       client_id=os.getenv("SCALEKIT_CLIENT_ID"),
       client_secret=os.getenv("SCALEKIT_CLIENT_SECRET"),
   )
   actions = scalekit_client.actions

   connection_name = "microsoftteams"
   identifier = "user_123"

   # Generate an authorization link for the user
   link_response = actions.get_authorization_link(
       connection_name=connection_name,
       identifier=identifier,
   )
   print("Authorize Teams:", link_response.link)
   input("Press Enter after authorizing...")

   # Make your first call
   result = actions.execute_tool(
       tool_input={},
       tool_name="microsoftteams_list_all_teams",
       connection_name=connection_name,
       identifier=identifier,
   )
   print(result)
   ```

   ```bash
   python quickstart.py
   ```

   Each user signs in once. See [Authorize a user](/agentkit/tools/authorize/) for the full flow and statuses.

## Tools

Pass the exact name to `execute_tool`, with an input like each tool's example. To ask for a tool that's missing, use the [request form](https://scalekitsupport.portal.usepylon.com/forms/request-a-connector-tool).

**Node.js**

```typescript
const result = await actions.executeTool({
  toolName: 'microsoftteams_get_channel',
  toolInput: {
    channel_id: '<channel_id>',
    team_id: '<team_id>',
  },
  connector: 'microsoftteams',
  identifier: 'user_123',
})
```

**Python**

```python
result = actions.execute_tool(
    tool_name="microsoftteams_get_channel",
    tool_input={
        "channel_id": "<channel_id>",
        "team_id": "<team_id>",
    },
    connection_name="microsoftteams",
    identifier="user_123",
)
```

`result.data` is the app's response as JSON, and `result.execution_id` (`executionId` in Node.js) is the ID of the call.

### `microsoftteams_get_channel`

Get Teams Channel · Read-only

Retrieve the properties and metadata of a specific channel in a Microsoft Teams team, including its display name, description, membership type, and web URL.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `channel_id` (`string`, required): The unique identifier of the Teams channel to retrieve.
- `team_id` (`string`, required): The unique identifier of the Microsoft Teams team that contains the channel.

Example input: `{"channel_id":"<channel_id>","team_id":"<team_id>"}`

### `microsoftteams_get_channel_message`

Get Teams Channel Message · Read-only

Retrieve a single message from a Microsoft Teams channel by its ID, including body content, sender info, attachments, reactions, and metadata.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `channel_id` (`string`, required): The unique identifier of the Teams channel containing the message.
- `message_id` (`string`, required): The unique identifier of the Teams channel message to retrieve.
- `team_id` (`string`, required): The unique identifier of the Microsoft Teams team that contains the channel.

Example input: `{"channel_id":"<channel_id>","message_id":"<message_id>","team_id":"<team_id>"}`

### `microsoftteams_get_chat`

Get Teams Chat · Read-only

Retrieve the properties of a single Microsoft Teams chat (without its messages), such as its topic, chat type, and creation time.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `chat_id` (`string`, required): The unique identifier of the Teams chat.

Example input: `{"chat_id":"<chat_id>"}`

### `microsoftteams_get_chat_message`

Get Teams Chat Message · Read-only

Retrieve a single message from a Microsoft Teams chat by its ID, including body content, sender info, attachments, reactions, and metadata.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `chat_id` (`string`, required): The unique identifier of the Teams chat that contains the message.
- `message_id` (`string`, required): The unique identifier of the Teams chat message to retrieve.

Example input: `{"chat_id":"<chat_id>","message_id":"<message_id>"}`

### `microsoftteams_get_meeting_transcript_content`

Get Meeting Transcript Content · Read-only

Download the text content of a specific Microsoft Teams meeting transcript, identified by the meeting ID and transcript ID (obtained from microsoftteams_list_meeting_transcripts). Returned as WebVTT-formatted text with timestamped speaker turns.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `meeting_id` (`string`, required): The unique identifier of the online meeting the transcript belongs to.
- `transcript_id` (`string`, required): The unique identifier of the transcript to download. Obtain from microsoftteams_list_meeting_transcripts.

Example input: `{"meeting_id":"<meeting_id>","transcript_id":"<transcript_id>"}`

### `microsoftteams_get_online_meeting`

Get Teams Online Meeting · Read-only

Retrieve details of a specific Microsoft Teams online meeting by meeting ID. Returns meeting properties including subject, join URL, start/end times, participants, and meeting options.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `meeting_id` (`string`, required): The unique identifier of the online meeting to retrieve. Obtain from the create meeting response or list meetings API.

Example input: `{"meeting_id":"<meeting_id>"}`

### `microsoftteams_get_team`

Get Teams Team · Read-only

Retrieve the properties and relationships of a Microsoft Teams team by its team ID. Returns team details including display name, description, visibility, member settings, and guest settings.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `team_id` (`string`, required): The unique identifier of the Microsoft Teams team to retrieve.

Example input: `{"team_id":"<team_id>"}`

### `microsoftteams_list_all_teams`

List All Teams · Read-only

List all teams in the organization's tenant, not just those the signed-in user has joined. This is a tenant-wide directory query distinct from 'List Joined Teams' and typically requires an application permission such as Team.ReadBasic.All.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `filter` (`string`, optional): OData filter expression to narrow results. Example: "displayName eq 'Engineering'".
- `select` (`string`, optional): Comma-separated list of team properties to return. Reduces response payload size.
- `top` (`integer`, optional): Maximum number of teams to return per page. Use for pagination.

Example input: `{}`

### `microsoftteams_list_channel_members`

List Teams Channel Members · Read-only

List the members of a Microsoft Teams channel, including direct members of standard, private, and shared channels. Channel membership can differ from team membership, especially for private and shared channels.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `channel_id` (`string`, required): The unique identifier of the Teams channel.
- `team_id` (`string`, required): The unique identifier of the Microsoft Teams team.
- `filter` (`string`, optional): OData filter expression to narrow results.
- `select` (`string`, optional): Comma-separated list of member properties to return.
- `top` (`integer`, optional): Maximum number of members to return per page. Use for pagination.

Example input: `{"channel_id":"<channel_id>","team_id":"<team_id>"}`

### `microsoftteams_list_channel_message_replies`

List Teams Channel Message Replies · Read-only

List all replies in a Microsoft Teams channel message thread. Returns replies to the specified parent message with support for pagination.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `channel_id` (`string`, required): The unique identifier of the Teams channel containing the message thread.
- `message_id` (`string`, required): The unique identifier of the parent channel message whose replies to list.
- `team_id` (`string`, required): The unique identifier of the Microsoft Teams team that contains the channel.
- `$skip` (`integer`, optional): Number of replies to skip for pagination. Use with $top to page through results.
- `$top` (`integer`, optional): Maximum number of replies to return per page. Use to control page size.

Example input: `{"channel_id":"<channel_id>","message_id":"<message_id>","team_id":"<team_id>"}`

### `microsoftteams_list_channel_messages`

List Teams Channel Messages · Read-only

List messages in a Microsoft Teams channel with support for pagination. Returns up to 20 messages by default (max 50 per page).

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `channel_id` (`string`, required): The unique identifier of the Teams channel to list messages from.
- `team_id` (`string`, required): The unique identifier of the Microsoft Teams team that contains the channel.
- `$skip` (`integer`, optional): Number of messages to skip for pagination. Use with $top to page through results.
- `$top` (`integer`, optional): Number of channel messages to return per page (1–50, default: 20). Microsoft Graph caps this at 50 for channel messages. Default: `20`.

Example input: `{"channel_id":"<channel_id>","team_id":"<team_id>"}`

### `microsoftteams_list_channel_tabs`

List Teams Channel Tabs · Read-only

List all tabs pinned to a Microsoft Teams channel. By default expands the teamsApp relationship to include app details for each tab.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `channel_id` (`string`, required): The unique identifier of the Teams channel whose tabs to list.
- `team_id` (`string`, required): The unique identifier of the Microsoft Teams team that contains the channel.
- `expand` (`string`, optional): OData $expand expression to include related resources. Defaults to 'teamsApp' which includes the app details for each tab. Set to null to suppress expansion. Default: `teamsApp`.

Example input: `{"channel_id":"<channel_id>","team_id":"<team_id>"}`

### `microsoftteams_list_channels`

List Teams Channels · Read-only

List all channels in a Microsoft Teams team. Supports OData filtering (e.g., by membershipType) and field selection to reduce response size.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `team_id` (`string`, required): The unique identifier of the Microsoft Teams team whose channels to list.
- `filter` (`string`, optional): OData filter expression to narrow results. Example: "membershipType eq 'standard'" or "displayName eq 'General'".
- `select` (`string`, optional): Comma-separated list of channel properties to return. Example: 'id,displayName,membershipType,webUrl'. Reduces response payload size.

Example input: `{"team_id":"<team_id>"}`

### `microsoftteams_list_chat_members`

List Teams Chat Members · Read-only

List the conversation members of a Microsoft Teams chat.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `chat_id` (`string`, required): The unique identifier of the Teams chat.
- `filter` (`string`, optional): OData filter expression to narrow results.
- `select` (`string`, optional): Comma-separated list of member properties to return.
- `top` (`integer`, optional): Maximum number of members to return per page. Use for pagination.

Example input: `{"chat_id":"<chat_id>"}`

### `microsoftteams_list_chat_message_replies`

List Teams Chat Message Replies · Read-only

List all replies in a Microsoft Teams chat message thread. Returns replies to the specified parent message with support for pagination. This endpoint is available on the Microsoft Graph beta API.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `chat_id` (`string`, required): The unique identifier of the Teams chat.
- `message_id` (`string`, required): The unique identifier of the chat message.
- `skip` (`integer`, optional): Number of replies to skip for pagination. Use with $top to page through results.
- `top` (`integer`, optional): Maximum number of replies to return per page. Use to control page size.

Example input: `{"chat_id":"<chat_id>","message_id":"<message_id>"}`

### `microsoftteams_list_chat_messages`

List Teams Chat Messages · Read-only

List messages in a Microsoft Teams chat (1:1, group, or meeting chat) with support for pagination and ordering. Returns up to 50 messages per page ordered by creation time descending by default.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `chat_id` (`string`, required): The unique identifier of the Teams chat to list messages from. Obtain from the list chats API or Teams URL.
- `orderby` (`string`, optional): OData orderby expression for sorting messages. Default is 'createdDateTime desc' (newest first). Example: 'createdDateTime asc' for oldest first. Default: `createdDateTime desc`.
- `top` (`integer`, optional): Number of chat messages to return per page (1–50, default: 50). Microsoft Graph caps this at 50 for chat messages. Default: `50`.

Example input: `{"chat_id":"<chat_id>"}`

### `microsoftteams_list_chats`

List Teams Chats · Read-only

List the chats (one-on-one, group, and meeting chats) that the signed-in user is part of. Use this to discover chat_id values before calling the other chat-scoped Teams tools.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `filter` (`string`, optional): OData filter expression to narrow results.
- `select` (`string`, optional): Comma-separated list of chat properties to return.
- `top` (`integer`, optional): Maximum number of chats to return per page. Use for pagination.

Example input: `{}`

### `microsoftteams_list_installed_apps`

List Teams Installed Apps · Read-only

List the apps installed in a Microsoft Teams team. Use $expand=teamsApp to include the app's display name and other catalog details in the response.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `team_id` (`string`, required): The unique identifier of the Microsoft Teams team.
- `expand` (`string`, optional): OData $expand expression. Use 'teamsApp' to include the app's display name and details.
- `select` (`string`, optional): Comma-separated list of installation properties to return.
- `top` (`integer`, optional): Maximum number of installed apps to return per page. Use for pagination.

Example input: `{"team_id":"<team_id>"}`

### `microsoftteams_list_meeting_attendance_reports`

List Meeting Attendance Reports · Read-only

List the attendance reports for a Microsoft Teams online meeting, showing who joined/left and when for each meeting session. A meeting can have multiple attendance reports if it was started and stopped more than once.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `meeting_id` (`string`, required): The unique identifier of the online meeting to list attendance reports for. Obtain from the create meeting response or list meetings API.
- `top` (`integer`, optional): Maximum number of attendance reports to return. Example: 10.

Example input: `{"meeting_id":"<meeting_id>"}`

### `microsoftteams_list_meeting_recordings`

List Meeting Recordings · Read-only

List the recordings generated for a Microsoft Teams online meeting. Supports meetings scheduled on the user's calendar (not ad-hoc meetings created via the application API). Each recording includes a recordingContentUrl for downloading the video content.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `meeting_id` (`string`, required): The unique identifier of the online meeting to list recordings for. Obtain from the create meeting response or list meetings API.
- `filter` (`string`, optional): OData filter expression to narrow recording results. Example: "createdDateTime gt 2024-07-01T00:00:00Z".
- `top` (`integer`, optional): Maximum number of recordings to return. Example: 10.

Example input: `{"meeting_id":"<meeting_id>"}`

### `microsoftteams_list_meeting_transcripts`

List Meeting Transcripts · Read-only

List the transcripts generated for a Microsoft Teams online meeting. Supports meetings scheduled on the user's calendar (not ad-hoc meetings created via the application API). Use microsoftteams_get_meeting_transcript_content to download the actual transcript text for one of the returned transcript IDs.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `meeting_id` (`string`, required): The unique identifier of the online meeting to list transcripts for. Obtain from the create meeting response or list meetings API.
- `filter` (`string`, optional): OData filter expression to narrow transcript results. Example: "createdDateTime gt 2024-07-01T00:00:00Z".
- `top` (`integer`, optional): Maximum number of transcripts to return. Example: 10.

Example input: `{"meeting_id":"<meeting_id>"}`

### `microsoftteams_list_scheduling_groups`

List Scheduling Groups · Read-only

List the scheduling groups (team-member groupings that shifts can be assigned to) in a Microsoft Teams team's schedule. Use the returned group IDs with microsoftteams_create_shift's scheduling_group_id field.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `team_id` (`string`, required): The unique identifier of the Microsoft Teams team whose schedule's scheduling groups to list.

Example input: `{"team_id":"<team_id>"}`

### `microsoftteams_list_shift_swap_requests`

List Teams Shift Swap Requests · Read-only

List shift swap change requests in a Microsoft Teams team schedule. Supports OData $filter (e.g., filter by state) and $top to control the number of results returned.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `team_id` (`string`, required): The unique identifier of the Microsoft Teams team whose schedule shift swap requests to list.
- `filter` (`string`, optional): OData filter expression to narrow shift swap request results. Example: "state eq 'pending'" to fetch only pending swap requests.
- `top` (`integer`, optional): Maximum number of shift swap requests to return. Use to limit the response size. Example: 25.

Example input: `{"team_id":"<team_id>"}`

### `microsoftteams_list_shifts`

List Teams Shifts · Read-only

List shifts in a Microsoft Teams team schedule. Supports OData $filter (e.g., filter by start date) and $top to control the number of results returned.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `team_id` (`string`, required): The unique identifier of the Microsoft Teams team whose schedule shifts to list.
- `filter` (`string`, optional): OData filter expression to narrow shift results. Example: "sharedShift/startDateTime ge 2024-07-01T00:00:00Z" to fetch shifts starting on or after July 1, 2024.
- `top` (`integer`, optional): Maximum number of shifts to return. Use to limit the response size. Example: 25.

Example input: `{"team_id":"<team_id>"}`

### `microsoftteams_list_team_members`

List Teams Team Members · Read-only

List all members (including owners) of a Microsoft Teams team. Returns conversationMember resources with membership IDs, user details, and roles. Supports OData filtering and field selection.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `team_id` (`string`, required): The unique identifier of the Microsoft Teams team whose members to list.
- `filter` (`string`, optional): OData filter expression to narrow results. Example: "roles/any(r:r eq 'owner')" to list only owners.
- `select` (`string`, optional): Comma-separated list of member properties to return. Example: 'id,displayName,roles,email'. Reduces response payload size.
- `top` (`integer`, optional): Maximum number of members to return per page. Use for pagination.

Example input: `{"team_id":"<team_id>"}`

### `microsoftteams_list_teams`

List Joined Teams · Read-only

List all Microsoft Teams teams that the signed-in user has joined. Supports OData query options for filtering, field selection, and pagination.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `$filter` (`string`, optional): OData filter expression to narrow results. Example: "displayName eq 'Engineering'".
- `$select` (`string`, optional): Comma-separated list of team properties to return. Example: 'id,displayName,description,visibility'. Reduces response payload size.
- `$top` (`integer`, optional): Maximum number of teams to return per page. Use for pagination.

Example input: `{}`

### `microsoftteams_list_time_off_requests`

List Teams Time Off Requests · Read-only

List time-off requests in a Microsoft Teams team schedule. Supports OData $filter (e.g., filter by status or date range) and $top to control the number of results returned.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `team_id` (`string`, required): The unique identifier of the Microsoft Teams team whose schedule time-off requests to list.
- `filter` (`string`, optional): OData filter expression to narrow time-off request results. Example: "state eq 'pending'" to fetch only pending requests.
- `top` (`integer`, optional): Maximum number of time-off requests to return. Use to limit the response size. Example: 25.

Example input: `{"team_id":"<team_id>"}`

### `microsoftteams_search_messages`

Search Teams Messages · Read-only

Search Microsoft Teams chat messages across all chats and channels accessible to the signed-in user using the Microsoft Search API. Supports pagination via from/size parameters. Returns up to 25 results by default.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `query` (`string`, required): The search query string to find matching Teams messages. Supports keyword search and KQL (Keyword Query Language). Example: 'project kickoff' or 'from:alice@example.com subject:budget'.
- `from` (`integer`, optional): Zero-based index of the first result to return, used for pagination. Default is 0 (start from the first result). Default: `0`.
- `size` (`integer`, optional): Number of results to return per page. Default is 25, maximum is 200. Default: `25`.

Example input: `{"query":"project kickoff"}`

### `microsoftteams_add_channel_member`

Add Teams Channel Member · Write

Add a user as a conversationMember of a Microsoft Teams channel. This operation is only allowed for channels with a membershipType of private or shared; standard channel membership is derived from team membership instead.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `channel_id` (`string`, required): The unique identifier of the Teams channel.
- `team_id` (`string`, required): The unique identifier of the Microsoft Teams team.
- `user_id` (`string`, required): The Azure AD object ID of the user to add. This is the user's unique identifier in Microsoft Entra ID, not their email address.
- `role` (`string`, optional): The role to assign to the added user. Valid values: 'member' or 'owner'. Defaults to 'member'. One of: `member`, `owner`. Default: `member`.

Example input: `{"channel_id":"<channel_id>","team_id":"<team_id>","user_id":"<user_id>"}`

### `microsoftteams_add_chat_member`

Add Teams Chat Member · Write

Add a user as a conversationMember of a Microsoft Teams chat. Typically used to add members to an existing group chat; one-on-one chats cannot have a third member added (create a group chat instead).

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `chat_id` (`string`, required): The unique identifier of the Teams chat.
- `user_id` (`string`, required): The Azure AD object ID of the user to add. This is the user's unique identifier in Microsoft Entra ID, not their email address.
- `role` (`string`, optional): The role to assign to the added user. Valid values: 'member' or 'owner'. Defaults to 'member'. One of: `member`, `owner`. Default: `member`.

Example input: `{"chat_id":"<chat_id>","user_id":"<user_id>"}`

### `microsoftteams_add_team_member`

Add Teams Team Member · Write

Add a user to a Microsoft Teams team as a member or owner. Requires the team ID and the Azure AD user ID of the person to add. The user must exist in the same tenant. Returns the new conversationMember resource on success (HTTP 201).

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `team_id` (`string`, required): The unique identifier of the Microsoft Teams team to add the member to.
- `user_id` (`string`, required): The Azure AD object ID of the user to add to the team. This is the user's unique identifier in Microsoft Entra ID, not their email address.
- `role` (`string`, optional): The role to assign to the added user. Valid values: 'member' (standard member) or 'owner' (team owner with admin privileges). Defaults to 'member'. One of: `member`, `owner`. Default: `member`.

Example input: `{"team_id":"<team_id>","user_id":"<user_id>"}`

### `microsoftteams_approve_time_off_request`

Approve Teams Time Off Request · Write

Approve a pending time-off request in a Microsoft Teams team schedule. Requires the team ID and request ID. Optionally include a manager note to send with the approval. Returns HTTP 204 No Content on success.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `request_id` (`string`, required): The unique identifier of the time-off request to approve. Obtain from the list time-off requests API.
- `team_id` (`string`, required): The unique identifier of the Microsoft Teams team whose schedule contains the time-off request.
- `message` (`string`, optional): Optional message from the manager to include with the approval decision. Example: 'Approved, enjoy your vacation!'

Example input: `{"request_id":"<request_id>","team_id":"<team_id>"}`

### `microsoftteams_archive_channel`

Archive Teams Channel · Write

Archive a channel in a Microsoft Teams team, making it read-only for members. Archiving is reversible — the channel can be unarchived later. Optionally sets the associated SharePoint site to read-only.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `channel_id` (`string`, required): The unique identifier of the Teams channel to archive.
- `team_id` (`string`, required): The unique identifier of the Microsoft Teams team that contains the channel to archive.
- `set_spo_site_readonly` (`boolean`, optional): If true, the SharePoint Online (SPO) site associated with the channel will also be set to read-only when the channel is archived. Defaults to false. Default: `false`.

Example input: `{"channel_id":"<channel_id>","team_id":"<team_id>"}`

### `microsoftteams_archive_team`

Archive Teams Team · Write

Archive a Microsoft Teams team, making it read-only. The team is archived asynchronously (HTTP 202). Optionally set the SharePoint site associated with the team to read-only as well. To restore a team, use the unarchive endpoint.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `team_id` (`string`, required): The unique identifier of the Microsoft Teams team to archive.
- `should_set_spo_site_read_only_for_members` (`boolean`, optional): If true, sets the SharePoint Online site associated with the team to read-only for members. Defaults to false. Default: `false`.

Example input: `{"team_id":"<team_id>"}`

### `microsoftteams_clear_user_presence`

Clear Teams User Presence · Write

Clear a previously set presence override for the signed-in user in Microsoft Teams for a specific application session. Provide the same session ID used when calling setPresence. After clearing, Teams reverts to the user's actual computed presence. Requires the Presence.ReadWrite scope.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `session_id` (`string`, required): The GUID of the application session whose presence override should be cleared. Must match the session ID passed to the setPresence call. Example: '22553876-f5ab-4529-bffb-cfe50aa89f87'.

Example input: `{"session_id":"22553876-f5ab-4529-bffb-cfe50aa89f87"}`

### `microsoftteams_clone_team`

Clone Teams Team · Write

Clone an existing Microsoft Teams team into a new team, copying selected parts such as apps, tabs, settings, channels, and/or members. The clone operation is asynchronous (HTTP 202). Required: team_id, display_name, parts_to_clone.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `display_name` (`string`, required): The display name for the new cloned team.
- `parts_to_clone` (`string`, required): Comma-separated list of team parts to clone. Valid parts: apps, tabs, settings, channels, members. Example: 'apps,tabs,settings,channels,members'.
- `team_id` (`string`, required): The unique identifier of the Microsoft Teams team to clone.
- `classification` (`string`, optional): Classification label for the cloned team (organization-defined, e.g., 'Confidential', 'Internal'). Optional.
- `description` (`string`, optional): Optional description for the cloned team.
- `mail_nickname` (`string`, optional): The mail alias (nickname) for the new team's Microsoft 365 Group. Must be unique in the tenant and contain only alphanumeric characters and hyphens.
- `visibility` (`string`, optional): Visibility of the cloned team. Valid values: 'public' (anyone in org can join), 'private' (owner must invite). Defaults to 'private'. One of: `public`, `private`. Default: `private`.

Example input: `{"display_name":"Cashiers","parts_to_clone":"apps,tabs,settings,channels,members","team_id":"<team_id>"}`

### `microsoftteams_create_channel`

Create Teams Channel · Write

Create a new channel in a Microsoft Teams team. Supports standard, private, and shared channel membership types. Requires the team ID and a display name for the new channel.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `display_name` (`string`, required): The display name of the new channel. Must be unique within the team and cannot contain special characters like #, &, :, <, >, *, ?.
- `team_id` (`string`, required): The unique identifier of the Microsoft Teams team in which to create the channel.
- `description` (`string`, optional): Optional description for the new channel (plain text, up to 1024 characters).
- `membership_type` (`string`, optional): The membership type of the channel: 'standard' (visible to all team members), 'private' (invite-only subset of team members), or 'shared' (shared with people outside the team). Defaults to 'standard'. One of: `standard`, `private`, `shared`. Default: `standard`.

Example input: `{"display_name":"Cashiers","team_id":"<team_id>"}`

### `microsoftteams_create_channel_tab`

Create Teams Channel Tab · Write

Add (pin) a tab to a Microsoft Teams channel, backed by an app that is already installed in the team and has the configurableTabs property defined in its app manifest.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `channel_id` (`string`, required): The unique identifier of the Teams channel.
- `content_url` (`string`, required): URL used for rendering tab contents in Teams. Required for the tab to display content.
- `display_name` (`string`, required): Name of the tab.
- `team_id` (`string`, required): The unique identifier of the Microsoft Teams team.
- `teams_app_id` (`string`, required): The ID of the Teams app (from the app catalog) that is linked to the tab. This can't be changed after tab creation.
- `entity_id` (`string`, optional): Identifier for the entity hosted by the tab provider.
- `remove_url` (`string`, optional): URL called by Teams client when a tab is removed using the Teams client.
- `website_url` (`string`, optional): URL for showing tab contents outside of Teams.

Example input: `{"channel_id":"<channel_id>","content_url":"<content_url>","display_name":"Cashiers","team_id":"<team_id>","teams_app_id":"<teams_app_id>"}`

### `microsoftteams_create_chat`

Create Teams Chat · Write

Create a new one-on-one or group chat in Microsoft Teams with the given members. A oneOnOne chat requires exactly 2 members; a group chat requires 2 or more and may have a topic. All initial members are added with the 'owner' role, matching Microsoft Graph's requirement for chat creation.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `chat_type` (`string`, required): The type of chat to create. Valid values: 'oneOnOne' (exactly 2 members) or 'group' (2+ members). One of: `oneOnOne`, `group`.
- `member_user_ids` (`array`, required): Azure AD object IDs of the users to add as chat members.
- `topic` (`string`, optional): Optional subject or topic for the chat. Only available for group chats.

Example input: `{"chat_type":"oneOnOne","member_user_ids":[]}`

### `microsoftteams_create_online_meeting`

Create Teams Online Meeting · Write

Create a new Microsoft Teams online meeting for the signed-in user. Requires a subject, start time, and end time in ISO 8601 format. Optionally invite attendees by UPN (email) and control who can present.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `end_date_time` (`string`, required): The end date and time of the meeting in ISO 8601 UTC format. Example: '2024-07-15T10:00:00Z'.
- `start_date_time` (`string`, required): The start date and time of the meeting in ISO 8601 UTC format. Example: '2024-07-15T09:00:00Z'.
- `subject` (`string`, required): The subject/title of the online meeting. Displayed to all participants in the meeting invite and join page.
- `allowed_presenters` (`string`, optional): Who can present in the meeting. 'everyone' allows all participants, 'organization' restricts to org members, 'roleIsPresenter' limits to assigned presenters, 'organizer' restricts to the meeting organizer only. Defaults to 'organization'. One of: `everyone`, `organization`, `roleIsPresenter`, `organizer`. Default: `organization`.
- `attendee_upns` (`array`, optional): Array of UPN (User Principal Name / email address) strings for meeting attendees. Example: ["alice@contoso.com", "bob@contoso.com"]. Each UPN is mapped to an attendee object in the participants block.

Example input: `{"end_date_time":"2024-07-15T10:00:00Z","start_date_time":"2024-07-15T09:00:00Z","subject":"<subject>"}`

### `microsoftteams_create_scheduling_group`

Create Scheduling Group · Write

Create a new scheduling group (a team-member grouping shifts can be assigned to) in a Microsoft Teams team's schedule. Required before microsoftteams_create_shift can assign a shift to a group if none exist yet.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `display_name` (`string`, required): The display name for the scheduling group, shown on the schedule view. Example: 'Cashiers'.
- `team_id` (`string`, required): The unique identifier of the Microsoft Teams team whose schedule to create the scheduling group in.
- `code` (`string`, optional): An external identifier code for this scheduling group, for use with external systems.
- `is_active` (`boolean`, optional): Whether the scheduling group can be used when creating new shifts. Defaults to true. Default: `true`.
- `user_ids` (`array`, optional): The Azure AD object IDs of the users who are members of this scheduling group.

Example input: `{"display_name":"Cashiers","team_id":"<team_id>"}`

### `microsoftteams_create_shift`

Create Teams Shift · Write

Create a new shift in a Microsoft Teams team schedule. Requires team ID, user ID, scheduling group ID, and start/end date times in ISO 8601 format. Optionally set a display name, notes, and theme color for the shift.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `end_date_time` (`string`, required): The end date and time of the shift in ISO 8601 UTC format. Example: '2024-07-15T17:00:00Z'.
- `scheduling_group_id` (`string`, required): The unique identifier of the scheduling group (team member group) to assign the shift to. Obtain from the scheduling groups API.
- `start_date_time` (`string`, required): The start date and time of the shift in ISO 8601 UTC format. Example: '2024-07-15T09:00:00Z'.
- `team_id` (`string`, required): The unique identifier of the Microsoft Teams team whose schedule to create the shift in.
- `user_id` (`string`, required): The unique identifier (object ID) of the user to assign the shift to. Obtain from the Microsoft Entra user object or list users API.
- `display_name` (`string`, optional): Optional display name for the shift, shown on the schedule. Example: 'Morning Shift'.
- `notes` (`string`, optional): Optional notes or instructions for the shift, visible to the assigned user. Example: 'Please cover the front desk.'.
- `theme` (`string`, optional): Color theme for the shift block on the schedule view. Valid values: white, blue, green, purple, pink, yellow, gray, darkBlue, darkGreen, darkPurple, darkPink, darkYellow. Defaults to 'blue'. One of: `white`, `blue`, `green`, `purple`, `pink`, `yellow`, `gray`, `darkBlue`, `darkGreen`, `darkPurple`, `darkPink`, `darkYellow`. Default: `blue`.

Example input: `{"end_date_time":"2024-07-15T17:00:00Z","scheduling_group_id":"<scheduling_group_id>","start_date_time":"2024-07-15T09:00:00Z","team_id":"<team_id>","user_id":"<user_id>"}`

### `microsoftteams_create_shift_swap_request`

Create Teams Shift Swap Request · Write

Create a shift swap request in a Microsoft Teams team schedule, proposing that two employees exchange their shifts. Requires the team ID, both employees' user IDs and their respective shift IDs. Optionally include a message from the requester.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `recipient_shift_id` (`string`, required): The unique identifier of the shift belonging to the recipient (the employee whose shift the sender wants to take). Obtain from the list shifts API.
- `recipient_user_id` (`string`, required): The Azure AD object ID of the employee being asked to swap their shift.
- `sender_shift_id` (`string`, required): The unique identifier of the shift belonging to the sender (the employee initiating the swap). Obtain from the list shifts API.
- `sender_user_id` (`string`, required): The Azure AD object ID of the employee initiating the shift swap request.
- `team_id` (`string`, required): The unique identifier of the Microsoft Teams team whose schedule the shift swap request belongs to.
- `sender_message` (`string`, optional): Optional message from the requesting employee explaining why they want to swap. Example: 'I have a doctor's appointment during my shift.'

Example input: `{"recipient_shift_id":"<recipient_shift_id>","recipient_user_id":"<recipient_user_id>","sender_shift_id":"<sender_shift_id>","sender_user_id":"<sender_user_id>","team_id":"<team_id>"}`

### `microsoftteams_create_team`

Create Teams Team · Write

Create a new Microsoft Teams team from a template. The team is created asynchronously (HTTP 202); poll the returned operation URL for completion. Required: display_name. Optional: description and template (defaults to 'standard').

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `display_name` (`string`, required): The display name of the new team. Must be unique within the tenant.
- `description` (`string`, optional): Optional description for the new team (plain text, up to 1024 characters).
- `template` (`string`, optional): The Teams template to use when creating the team. Valid values: 'standard', 'educationClass', 'educationStaff', 'educationProfessionalLearningCommunity', 'healthcareWard', 'healthcareTeam'. Defaults to 'standard'. One of: `standard`, `educationClass`, `educationStaff`, `educationProfessionalLearningCommunity`, `healthcareWard`, `healthcareTeam`. Default: `standard`.

Example input: `{"display_name":"Cashiers"}`

### `microsoftteams_create_time_off_request`

Create Teams Time Off Request · Write

Submit a time-off request in a Microsoft Teams team schedule. Requires the team ID, the sender's user ID, start and end date-times in ISO 8601 UTC format, and the time-off reason ID. Optionally include a message from the sender to the manager.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `end_date_time` (`string`, required): The end date and time of the time-off period in ISO 8601 UTC format. Example: '2024-08-02T17:00:00Z'.
- `sender_user_id` (`string`, required): The Azure AD object ID of the employee submitting the time-off request. Obtain from the Microsoft Entra user object or list users API.
- `start_date_time` (`string`, required): The start date and time of the time-off period in ISO 8601 UTC format. Example: '2024-07-29T00:00:00Z'.
- `team_id` (`string`, required): The unique identifier of the Microsoft Teams team whose schedule the request belongs to.
- `time_off_reason_id` (`string`, required): The ID of the time-off reason (e.g., vacation, sick leave) defined in the team schedule. Obtain from the team's timeOffReasons API.
- `sender_message` (`string`, optional): Optional message from the employee to the manager accompanying the time-off request. Example: 'Family vacation.'

Example input: `{"end_date_time":"2024-08-02T17:00:00Z","sender_user_id":"<sender_user_id>","start_date_time":"2024-07-29T00:00:00Z","team_id":"<team_id>","time_off_reason_id":"<time_off_reason_id>"}`

### `microsoftteams_decline_time_off_request`

Decline Teams Time Off Request · Write

Decline a pending time-off request in a Microsoft Teams team schedule. Requires the team ID and request ID. Optionally include a manager message explaining the decision. Returns HTTP 204 No Content on success.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `request_id` (`string`, required): The unique identifier of the time-off request to decline. Obtain from the list time-off requests API.
- `team_id` (`string`, required): The unique identifier of the Microsoft Teams team whose schedule contains the time-off request.
- `message` (`string`, optional): Optional message from the manager to include with the decline decision. Example: 'Insufficient coverage during that period.'

Example input: `{"request_id":"<request_id>","team_id":"<team_id>"}`

### `microsoftteams_install_app`

Install Teams App · Write

Install an app from the tenant's app catalog into a Microsoft Teams team.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `team_id` (`string`, required): The unique identifier of the Microsoft Teams team.
- `teams_app_id` (`string`, required): The ID of the Teams app (from the tenant's app catalog) to install into the team.

Example input: `{"team_id":"<team_id>","teams_app_id":"<teams_app_id>"}`

### `microsoftteams_pin_channel_message`

Pin Teams Channel Message · Write

Pin a message in a Microsoft Teams channel so it appears in the channel's pinned messages list. Requires the team ID, channel ID, and message ID.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `channel_id` (`string`, required): The unique identifier of the Teams channel that contains the message to pin.
- `message_id` (`string`, required): The unique identifier of the Teams channel message to pin.
- `team_id` (`string`, required): The unique identifier of the Microsoft Teams team that contains the channel.

Example input: `{"channel_id":"<channel_id>","message_id":"<message_id>","team_id":"<team_id>"}`

### `microsoftteams_provision_channel_email`

Provision Teams Channel Email · Write

Provision an email address for a Microsoft Teams channel, enabling users to send emails directly to the channel. Returns the provisioned email address. If an email has already been provisioned, returns the existing address.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `channel_id` (`string`, required): The unique identifier of the Teams channel for which to provision an email address.
- `team_id` (`string`, required): The unique identifier of the Microsoft Teams team that contains the channel.

Example input: `{"channel_id":"<channel_id>","team_id":"<team_id>"}`

### `microsoftteams_react_to_channel_message`

React to Teams Channel Message · Write

Add a reaction (such as like, heart, laugh, surprised, sad, or angry) from the signed-in user to a Microsoft Teams channel message.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `channel_id` (`string`, required): The unique identifier of the Teams channel.
- `message_id` (`string`, required): The unique identifier of the chat message.
- `reaction_type` (`string`, required): The type of reaction to set on the message, e.g. 'like', 'heart', 'laugh', 'surprised', 'sad', or 'angry'.
- `team_id` (`string`, required): The unique identifier of the Microsoft Teams team.

Example input: `{"channel_id":"<channel_id>","message_id":"<message_id>","reaction_type":"like","team_id":"<team_id>"}`

### `microsoftteams_remove_channel_email`

Remove Teams Channel Email · Write

Remove the email address provisioned for a Microsoft Teams channel. After removal, emails can no longer be sent to the channel via that email address.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `channel_id` (`string`, required): The unique identifier of the Teams channel from which to remove the provisioned email address.
- `team_id` (`string`, required): The unique identifier of the Microsoft Teams team that contains the channel.

Example input: `{"channel_id":"<channel_id>","team_id":"<team_id>"}`

### `microsoftteams_reply_to_channel_message`

Reply to Teams Channel Message · Write

Post a reply to an existing Microsoft Teams channel message thread. Supports plain text or HTML content, an optional subject, and importance levels.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `channel_id` (`string`, required): The unique identifier of the Teams channel containing the message to reply to.
- `content` (`string`, required): The text or HTML content of the reply message.
- `message_id` (`string`, required): The unique identifier of the channel message to reply to.
- `team_id` (`string`, required): The unique identifier of the Microsoft Teams team that contains the channel.
- `content_type` (`string`, optional): The format of the reply content: 'text' for plain text or 'html' for HTML markup. Defaults to 'text'. One of: `text`, `html`. Default: `text`.
- `importance` (`string`, optional): The importance of the reply message. Valid values: 'normal', 'high', 'urgent'. One of: `normal`, `high`, `urgent`.
- `subject` (`string`, optional): Optional subject line for the reply (appears as a headline above the body).

Example input: `{"channel_id":"<channel_id>","content":"<content>","message_id":"<message_id>","team_id":"<team_id>"}`

### `microsoftteams_reply_to_chat_message`

Reply to Teams Chat Message · Write

Send a reply to an existing message in a Microsoft Teams chat thread. Supports plain text or HTML content. This endpoint is available on the Microsoft Graph beta API.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `chat_id` (`string`, required): The unique identifier of the Teams chat that contains the message to reply to.
- `content` (`string`, required): The text or HTML content of the reply message.
- `message_id` (`string`, required): The unique identifier of the Teams chat message to reply to.
- `content_type` (`string`, optional): The format of the reply content: 'text' for plain text or 'html' for HTML markup. Defaults to 'text'. One of: `text`, `html`. Default: `text`.

Example input: `{"chat_id":"<chat_id>","content":"<content>","message_id":"<message_id>"}`

### `microsoftteams_restore_channel_message`

Restore Teams Channel Message · Write

Undo the soft deletion of a Microsoft Teams channel message or reply, restoring its original content. Only works on messages that were previously soft-deleted.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `channel_id` (`string`, required): The unique identifier of the Teams channel.
- `message_id` (`string`, required): The unique identifier of the chat message.
- `team_id` (`string`, required): The unique identifier of the Microsoft Teams team.

Example input: `{"channel_id":"<channel_id>","message_id":"<message_id>","team_id":"<team_id>"}`

### `microsoftteams_send_channel_message`

Send Teams Channel Message · Write

Send a new message to a Microsoft Teams channel. Supports plain text or HTML content, an optional subject line, and importance levels (normal, high, urgent).

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `channel_id` (`string`, required): The unique identifier of the Teams channel to send the message to.
- `content` (`string`, required): The text or HTML content of the message to send.
- `team_id` (`string`, required): The unique identifier of the Microsoft Teams team that contains the channel.
- `content_type` (`string`, optional): The format of the message content: 'text' for plain text or 'html' for HTML markup. Defaults to 'text'. One of: `text`, `html`. Default: `text`.
- `importance` (`string`, optional): The importance of the message. Valid values: 'normal', 'high', 'urgent'. Defaults to normal if omitted. One of: `normal`, `high`, `urgent`.
- `subject` (`string`, optional): Optional subject line for the channel message (appears as a headline above the body).

Example input: `{"channel_id":"<channel_id>","content":"<content>","team_id":"<team_id>"}`

### `microsoftteams_send_chat_message`

Send Teams Chat Message · Write

Send a new message to a Microsoft Teams chat (1:1, group, or meeting chat). Supports plain text or HTML content. Requires Chat.ReadWrite scope.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `chat_id` (`string`, required): The unique identifier of the Teams chat to send the message to. Obtain from the list chats API or Teams client URL.
- `content` (`string`, required): The text or HTML content of the message to send to the chat.
- `content_type` (`string`, optional): The format of the message content: 'text' for plain text or 'html' for HTML markup. Defaults to 'text'. One of: `text`, `html`. Default: `text`.

Example input: `{"chat_id":"<chat_id>","content":"<content>"}`

### `microsoftteams_set_preferred_presence`

Set Teams Preferred Presence · Write

Set the preferred presence status for the signed-in user in Microsoft Teams. Unlike setPresence (which is session-scoped), this persists a user-level preferred status that overrides the computed presence. Requires availability and activity values. Optionally specify an expiration duration in ISO 8601 format (e.g., PT1H). Requires the Presence.ReadWrite scope.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `activity` (`string`, required): The preferred activity of the user. Must be consistent with the chosen availability. Valid values: Available, Busy, InACall, InAConferenceCall, InAMeeting, Presenting, Away, DoNotDisturb, UrgentInterruptionsOnly, OffWork. One of: `Available`, `Busy`, `InACall`, `InAConferenceCall`, `InAMeeting`, `Presenting`, `Away`, `DoNotDisturb`, `UrgentInterruptionsOnly`, `OffWork`.
- `availability` (`string`, required): The preferred presence state of the user at the user level (not session-scoped). Valid values: Available, Busy, DoNotDisturb, BeRightBack, Away, Offline. One of: `Available`, `Busy`, `DoNotDisturb`, `BeRightBack`, `Away`, `Offline`.
- `expiration_duration` (`string`, optional): How long the preferred presence override should remain active, expressed as an ISO 8601 duration. Example: 'PT1H' for 1 hour, 'PT4H' for 4 hours. If omitted, the preference persists until explicitly cleared via clearUserPreferredPresence.

Example input: `{"activity":"Available","availability":"Available"}`

### `microsoftteams_set_user_presence`

Set Teams User Presence · Write

Set the presence status of the signed-in user in Microsoft Teams for a specific application session. Requires a session ID (a stable GUID representing the calling app), an availability value (e.g., Available, Busy, DoNotDisturb), and an activity value. Optionally specify an expiration duration in ISO 8601 duration format (e.g., PT1H). Requires the Presence.ReadWrite scope.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `activity` (`string`, required): The current activity of the user. Must be consistent with the chosen availability. Valid values: Available, Busy, InACall, InAConferenceCall, InAMeeting, Presenting, Away, DoNotDisturb, UrgentInterruptionsOnly, OffWork. One of: `Available`, `Busy`, `InACall`, `InAConferenceCall`, `InAMeeting`, `Presenting`, `Away`, `DoNotDisturb`, `UrgentInterruptionsOnly`, `OffWork`.
- `availability` (`string`, required): The base presence state of the user. Valid values: Available, Busy, DoNotDisturb, BeRightBack, Away, Offline. One of: `Available`, `Busy`, `DoNotDisturb`, `BeRightBack`, `Away`, `Offline`.
- `session_id` (`string`, required): A stable GUID identifying the calling application session. Use a consistent GUID per application so multiple calls from the same app update the same session. Example: '22553876-f5ab-4529-bffb-cfe50aa89f87'.
- `expiration_duration` (`string`, optional): How long the presence override should remain active, expressed as an ISO 8601 duration. Example: 'PT1H' for 1 hour, 'PT30M' for 30 minutes. If omitted, the presence persists until explicitly cleared.

Example input: `{"activity":"Available","availability":"Available","session_id":"22553876-f5ab-4529-bffb-cfe50aa89f87"}`

### `microsoftteams_unarchive_channel`

Unarchive Teams Channel · Write

Restore an archived channel in a Microsoft Teams team, allowing members to send messages and edit the channel again. Unarchiving is an asynchronous operation (HTTP 202); the channel is fully restored once the async operation completes, which may occur after this call returns.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `channel_id` (`string`, required): The unique identifier of the Teams channel.
- `team_id` (`string`, required): The unique identifier of the Microsoft Teams team.

Example input: `{"channel_id":"<channel_id>","team_id":"<team_id>"}`

### `microsoftteams_unarchive_team`

Unarchive Teams Team · Write

Restore an archived Microsoft Teams team, allowing members to send messages and edit the team again. Unarchiving is an asynchronous operation (HTTP 202); the team is fully restored once the async operation completes, which may occur after this call returns.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `team_id` (`string`, required): The unique identifier of the Microsoft Teams team.

Example input: `{"team_id":"<team_id>"}`

### `microsoftteams_unpin_channel_message`

Unpin Teams Channel Message · Write

Unpin a previously pinned message in a Microsoft Teams channel. The message remains in the channel history but is removed from the pinned messages list.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `channel_id` (`string`, required): The unique identifier of the Teams channel that contains the pinned message.
- `message_id` (`string`, required): The unique identifier of the Teams channel message to unpin.
- `team_id` (`string`, required): The unique identifier of the Microsoft Teams team that contains the channel.

Example input: `{"channel_id":"<channel_id>","message_id":"<message_id>","team_id":"<team_id>"}`

### `microsoftteams_unreact_to_channel_message`

Remove Reaction from Teams Channel Message · Write

Remove a reaction previously set by the signed-in user from a Microsoft Teams channel message.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `channel_id` (`string`, required): The unique identifier of the Teams channel.
- `message_id` (`string`, required): The unique identifier of the chat message.
- `reaction_type` (`string`, required): The type of reaction to unset on the message, e.g. 'like', 'heart', 'laugh', 'surprised', 'sad', or 'angry'.
- `team_id` (`string`, required): The unique identifier of the Microsoft Teams team.

Example input: `{"channel_id":"<channel_id>","message_id":"<message_id>","reaction_type":"like","team_id":"<team_id>"}`

### `microsoftteams_update_channel`

Update Teams Channel · Write

Update the properties of an existing Microsoft Teams channel, such as its display name or description. At least one of display_name or description must be provided.

Read only: no. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `channel_id` (`string`, required): The unique identifier of the Teams channel to update.
- `team_id` (`string`, required): The unique identifier of the Microsoft Teams team that contains the channel to update.
- `description` (`string`, optional): New description for the channel. Optional. At least one of display_name or description must be provided.
- `display_name` (`string`, optional): New display name for the channel. Cannot contain special characters like #, &, :, <, >, *, ?. At least one of display_name or description must be provided.

Example input: `{"channel_id":"<channel_id>","team_id":"<team_id>"}`

### `microsoftteams_update_channel_message`

Update Teams Channel Message · Write

Update the body content of an existing Microsoft Teams channel message. Only the message body can be edited after posting.

Read only: no. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `channel_id` (`string`, required): The unique identifier of the Teams channel containing the message to update.
- `content` (`string`, required): The new text or HTML content to replace the existing message body with.
- `message_id` (`string`, required): The unique identifier of the channel message to update.
- `team_id` (`string`, required): The unique identifier of the Microsoft Teams team that contains the channel.
- `content_type` (`string`, optional): The format of the updated content: 'text' for plain text or 'html' for HTML markup. Defaults to 'text'. One of: `text`, `html`. Default: `text`.

Example input: `{"channel_id":"<channel_id>","content":"<content>","message_id":"<message_id>","team_id":"<team_id>"}`

### `microsoftteams_update_chat`

Update Teams Chat · Write

Rename a Microsoft Teams group chat by updating its topic. The topic property only applies to group chats.

Read only: no. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `chat_id` (`string`, required): The unique identifier of the Teams chat.
- `topic` (`string`, required): The new subject or topic for the chat. Only applies to group chats.

Example input: `{"chat_id":"<chat_id>","topic":"<topic>"}`

### `microsoftteams_update_chat_message`

Update Teams Chat Message · Write

Update the body content of an existing Microsoft Teams chat message. Only the message body can be edited after sending.

Read only: no. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `chat_id` (`string`, required): The unique identifier of the Teams chat.
- `content` (`string`, required): The new text or HTML content to replace the existing message body with.
- `message_id` (`string`, required): The unique identifier of the chat message.
- `content_type` (`string`, optional): The format of the updated content: 'text' or 'html'. Defaults to 'text'. One of: `text`, `html`. Default: `text`.

Example input: `{"chat_id":"<chat_id>","content":"<content>","message_id":"<message_id>"}`

### `microsoftteams_update_online_meeting`

Update Teams Online Meeting · Write

Update an existing Microsoft Teams online meeting by meeting ID. Any combination of subject, start time, end time, and allowed presenters can be updated in a single call.

Read only: no. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `meeting_id` (`string`, required): The unique identifier of the online meeting to update. Obtain from the ID field returned when creating or listing meetings.
- `allowed_presenters` (`string`, optional): Updated setting for who can present in the meeting. Valid values: 'everyone', 'organization', 'roleIsPresenter', 'organizer'. One of: `everyone`, `organization`, `roleIsPresenter`, `organizer`.
- `end_date_time` (`string`, optional): Updated end date and time for the meeting in ISO 8601 UTC format. Example: '2024-07-15T11:00:00Z'. Leave blank to keep the existing end time.
- `start_date_time` (`string`, optional): Updated start date and time for the meeting in ISO 8601 UTC format. Example: '2024-07-15T10:00:00Z'. Leave blank to keep the existing start time.
- `subject` (`string`, optional): Updated subject/title for the online meeting. Leave blank to keep the existing subject.

Example input: `{"meeting_id":"<meeting_id>"}`

### `microsoftteams_update_shift`

Update Teams Shift · Write

Update an existing shift in a Microsoft Teams team schedule by shift ID. Replaces the shift with the provided fields. Requires team ID and shift ID. The sharedShift block fields (start/end time, display name, notes, theme) are built conditionally from optional inputs.

Read only: no. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `shift_id` (`string`, required): The unique identifier of the shift to update. Obtain from the create shift response or list shifts API.
- `team_id` (`string`, required): The unique identifier of the Microsoft Teams team whose schedule contains the shift.
- `display_name` (`string`, optional): Updated display name for the shift shown on the schedule. Leave blank to keep the existing display name.
- `end_date_time` (`string`, optional): Updated end date and time for the shift in ISO 8601 UTC format. Example: '2024-07-15T18:00:00Z'. Leave blank to keep the existing end time.
- `notes` (`string`, optional): Updated notes for the shift visible to the assigned employee. Leave blank to keep the existing notes.
- `scheduling_group_id` (`string`, optional): Updated scheduling group ID for the shift. Leave blank to keep the existing scheduling group.
- `start_date_time` (`string`, optional): Updated start date and time for the shift in ISO 8601 UTC format. Example: '2024-07-15T10:00:00Z'. Leave blank to keep the existing start time.
- `theme` (`string`, optional): Updated color theme for the shift block on the schedule view. Valid values: white, blue, green, purple, pink, yellow, gray, darkBlue, darkGreen, darkPurple, darkPink, darkYellow. One of: `white`, `blue`, `green`, `purple`, `pink`, `yellow`, `gray`, `darkBlue`, `darkGreen`, `darkPurple`, `darkPink`, `darkYellow`.
- `user_id` (`string`, optional): Updated user ID (Azure AD object ID) to reassign the shift to. Leave blank to keep the existing assignment.

Example input: `{"shift_id":"<shift_id>","team_id":"<team_id>"}`

### `microsoftteams_update_team`

Update Teams Team · Write

Update the properties of an existing Microsoft Teams team. Requires team_id. At least one of display_name, description, or visibility must be provided. Returns HTTP 204 with no body on success.

Read only: no. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `team_id` (`string`, required): The unique identifier of the Microsoft Teams team to update.
- `description` (`string`, optional): New description for the team (plain text, up to 1024 characters).
- `display_name` (`string`, optional): New display name for the team.
- `visibility` (`string`, optional): Visibility of the team. Valid values: 'public' (anyone in org can join), 'private' (owner must invite). Note: changing from private to public is allowed; changing back may be restricted. One of: `public`, `private`.

Example input: `{"team_id":"<team_id>"}`

### `microsoftteams_update_team_member`

Update Teams Team Member · Write

Update the role of an existing member in a Microsoft Teams team, promoting them to owner or demoting them to member. Requires the team ID, the conversationMember ID (membership_id), and the new role. Returns the updated conversationMember resource (HTTP 200).

Read only: no. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `membership_id` (`string`, required): The conversationMember ID of the membership to update. This is the unique ID of the member's team membership returned by the list team members or add member APIs — it is NOT the Azure AD user ID.
- `role` (`string`, required): The new role to assign to the team member. Valid values: 'member' (standard member) or 'owner' (team owner with admin privileges). One of: `member`, `owner`.
- `team_id` (`string`, required): The unique identifier of the Microsoft Teams team containing the member to update.

Example input: `{"membership_id":"<membership_id>","role":"member","team_id":"<team_id>"}`

### `microsoftteams_delete_channel`

Delete Teams Channel · Destructive

Permanently delete a channel from a Microsoft Teams team. The General channel of a team cannot be deleted. This action is irreversible and removes all messages and content within the channel.

Read only: no. Destructive: yes. Idempotent (safe to retry): yes.

Inputs:

- `channel_id` (`string`, required): The unique identifier of the Teams channel to delete. The General channel cannot be deleted.
- `team_id` (`string`, required): The unique identifier of the Microsoft Teams team that contains the channel to delete.

Example input: `{"channel_id":"<channel_id>","team_id":"<team_id>"}`

### `microsoftteams_delete_channel_message`

Delete Teams Channel Message · Destructive

Soft-delete a Microsoft Teams channel message. The message is retracted and replaced with a tombstone indicating it was deleted.

Read only: no. Destructive: yes. Idempotent (safe to retry): no.

Inputs:

- `channel_id` (`string`, required): The unique identifier of the Teams channel containing the message to delete.
- `message_id` (`string`, required): The unique identifier of the channel message to soft-delete.
- `team_id` (`string`, required): The unique identifier of the Microsoft Teams team that contains the channel.

Example input: `{"channel_id":"<channel_id>","message_id":"<message_id>","team_id":"<team_id>"}`

### `microsoftteams_delete_channel_tab`

Delete Teams Channel Tab · Destructive

Remove (unpin) a tab from a Microsoft Teams channel.

Read only: no. Destructive: yes. Idempotent (safe to retry): yes.

Inputs:

- `channel_id` (`string`, required): The unique identifier of the Teams channel.
- `tab_id` (`string`, required): The unique identifier of the tab to remove.
- `team_id` (`string`, required): The unique identifier of the Microsoft Teams team.

Example input: `{"channel_id":"<channel_id>","tab_id":"<tab_id>","team_id":"<team_id>"}`

### `microsoftteams_delete_chat`

Delete Teams Chat · Destructive

Soft-delete a Microsoft Teams chat. When called with delegated permissions, this operation only works for tenant admins and Teams service admins.

Read only: no. Destructive: yes. Idempotent (safe to retry): yes.

Inputs:

- `chat_id` (`string`, required): The unique identifier of the Teams chat.

Example input: `{"chat_id":"<chat_id>"}`

### `microsoftteams_delete_chat_message`

Delete Teams Chat Message · Destructive

Soft-delete a Microsoft Teams chat message. The message is retracted and replaced with a tombstone indicating it was deleted.

Read only: no. Destructive: yes. Idempotent (safe to retry): no.

Inputs:

- `chat_id` (`string`, required): The unique identifier of the Teams chat.
- `message_id` (`string`, required): The unique identifier of the chat message.

Example input: `{"chat_id":"<chat_id>","message_id":"<message_id>"}`

### `microsoftteams_delete_online_meeting`

Delete Teams Online Meeting · Destructive

Permanently delete a Microsoft Teams online meeting by meeting ID. This action cannot be undone and removes the meeting for all participants.

Read only: no. Destructive: yes. Idempotent (safe to retry): no.

Inputs:

- `meeting_id` (`string`, required): The unique identifier of the online meeting to delete. Obtain from the create meeting response or list meetings API.

Example input: `{"meeting_id":"<meeting_id>"}`

### `microsoftteams_delete_shift`

Delete Teams Shift · Destructive

Permanently delete a shift from a Microsoft Teams team schedule. Requires both the team ID and the shift ID. This action cannot be undone.

Read only: no. Destructive: yes. Idempotent (safe to retry): no.

Inputs:

- `shift_id` (`string`, required): The unique identifier of the shift to delete. Obtain from the create shift response or list shifts API.
- `team_id` (`string`, required): The unique identifier of the Microsoft Teams team whose schedule contains the shift to delete.

Example input: `{"shift_id":"<shift_id>","team_id":"<team_id>"}`

### `microsoftteams_delete_team`

Delete Teams Team · Destructive

Permanently delete a Microsoft Teams team by deleting the underlying Microsoft 365 Group. This action is irreversible. The team and all its channels, messages, and files will be permanently removed. Returns HTTP 204 with no body on success.

Read only: no. Destructive: yes. Idempotent (safe to retry): yes.

Inputs:

- `team_id` (`string`, required): The unique identifier of the Microsoft Teams team (Group ID) to permanently delete.

Example input: `{"team_id":"<team_id>"}`

### `microsoftteams_remove_channel_member`

Remove Teams Channel Member · Destructive

Remove a member from a Microsoft Teams channel. Requires the conversationMember ID (not the Azure AD user ID) as returned by the list channel members or add channel member APIs.

Read only: no. Destructive: yes. Idempotent (safe to retry): yes.

Inputs:

- `channel_id` (`string`, required): The unique identifier of the Teams channel.
- `membership_id` (`string`, required): The conversationMember ID of the channel membership to remove. This is NOT the Azure AD user ID.
- `team_id` (`string`, required): The unique identifier of the Microsoft Teams team.

Example input: `{"channel_id":"<channel_id>","membership_id":"<membership_id>","team_id":"<team_id>"}`

### `microsoftteams_remove_chat_member`

Remove Teams Chat Member · Destructive

Remove a member from a Microsoft Teams chat. Requires the conversationMember ID (not the Azure AD user ID) as returned by the list chat members or add chat member APIs.

Read only: no. Destructive: yes. Idempotent (safe to retry): yes.

Inputs:

- `chat_id` (`string`, required): The unique identifier of the Teams chat.
- `membership_id` (`string`, required): The conversationMember ID of the chat membership to remove. This is NOT the Azure AD user ID.

Example input: `{"chat_id":"<chat_id>","membership_id":"<membership_id>"}`

### `microsoftteams_remove_team_member`

Remove Teams Team Member · Destructive

Remove a member from a Microsoft Teams team. Requires the team ID and the conversationMember ID (not the Azure AD user ID). The membership_id is the ID returned by the list team members or add team member APIs. Returns HTTP 204 with no body on success.

Read only: no. Destructive: yes. Idempotent (safe to retry): yes.

Inputs:

- `membership_id` (`string`, required): The conversationMember ID of the membership to remove. This is the unique ID of the member's team membership, returned by the list team members or add member APIs — it is NOT the Azure AD user ID.
- `team_id` (`string`, required): The unique identifier of the Microsoft Teams team from which to remove the member.

Example input: `{"membership_id":"<membership_id>","team_id":"<team_id>"}`

### `microsoftteams_uninstall_app`

Uninstall Teams App · Destructive

Uninstall an app from a Microsoft Teams team.

Read only: no. Destructive: yes. Idempotent (safe to retry): yes.

Inputs:

- `app_installation_id` (`string`, required): The unique identifier of the teamsAppInstallation to remove. This is NOT the app catalog ID.
- `team_id` (`string`, required): The unique identifier of the Microsoft Teams team.

Example input: `{"app_installation_id":"<app_installation_id>","team_id":"<team_id>"}`

## Workflows

**Proxy API call**

  **Node.js**

  ```typescript
  // Make a request via Scalekit proxy
  const result = await actions.request({
    connectionName: 'microsoftteams',
    identifier: 'user_123',
    path: '/v1.0/me',
    method: 'GET',
  });
  console.log(result);
  ```

  **Python**

  ```python
  # Make a request via Scalekit proxy
  result = actions.request(
      connection_name='microsoftteams',
      identifier='user_123',
      path="/v1.0/me",
      method="GET"
  )
  print(result)
  ```

**Execute a tool**

  **Node.js**

  ```typescript
  const result = await actions.executeTool({
    connector: 'microsoftteams',
    identifier: 'user_123',
    toolName: 'microsoftteams_list_teams',
    toolInput: {},
  });
  console.log(result);
  ```

  **Python**

  ```python
  result = actions.execute_tool(
      connection_name='microsoftteams',
      identifier='user_123',
      tool_name='microsoftteams_list_teams',
      tool_input={},
  )
  print(result)
  ```

## Related

Other Communication connectors ([all 78](/agentkit/connectors/?category=communication)):

- [Crisp](/agentkit/connectors/crisp/): Scalekit connector, API key, 50 tools
- [Gmail](/agentkit/connectors/gmail/): Scalekit connector, OAuth, 48 tools
- [Google Calendar](/agentkit/connectors/googlecalendar/): Scalekit connector, OAuth, 30 tools


---

## More Scalekit documentation

| Resource | What it contains | When to use it |
|----------|-----------------|----------------|
| [/llms.txt](/llms.txt) | Structured index with routing hints per product area | Start here — find which documentation set covers your topic before loading full content |
| [/llms-full.txt](/llms-full.txt) | Complete documentation for all Scalekit products in one file | Use when you need exhaustive context across multiple products or when the topic spans several areas |
| [sitemap-0.xml](https://docs.scalekit.com/sitemap-0.xml) | Full URL list of every documentation page | Use to discover specific page URLs you can fetch for targeted, page-level answers |
