Microsoft Teams Automation via Rube MCP
Automate Microsoft Teams operations through Composio's Microsoft Teams toolkit via Rube MCP.
Prerequisites
- Rube MCP must be connected (RUBE_SEARCH_TOOLS available)
- Active Microsoft Teams connection via
RUBE_MANAGE_CONNECTIONS with toolkit microsoft_teams
- Always call
RUBE_SEARCH_TOOLS first to get current tool schemas
Setup
Get Rube MCP: Add https://rube.app/mcp as an MCP server in your client configuration. No API keys needed — just add the endpoint and it works.
- Verify Rube MCP is available by confirming
RUBE_SEARCH_TOOLS responds
- Call
RUBE_MANAGE_CONNECTIONS with toolkit microsoft_teams
- If connection is not ACTIVE, follow the returned auth link to complete Microsoft OAuth
- Confirm connection status shows ACTIVE before running any workflows
Core Workflows
1. Send Channel Messages
When to use: User wants to post a message to a Teams channel
Tool sequence:
MICROSOFT_TEAMS_TEAMS_LIST - List teams to find target team [Prerequisite]
MICROSOFT_TEAMS_TEAMS_LIST_CHANNELS - List channels in the team [Prerequisite]
MICROSOFT_TEAMS_TEAMS_POST_CHANNEL_MESSAGE - Post the message [Required]
Key parameters:
team_id: UUID of the team (from TEAMS_LIST)
channel_id: Channel ID (from LIST_CHANNELS, format: '19:...@thread.tacv2')
content: Message text or HTML
content_type: 'text' or 'html'
Pitfalls:
- team_id must be a valid UUID format
- channel_id must be in thread format (e.g., '19:abc@thread.tacv2')
- TEAMS_LIST may paginate (~100 items/page); follow @odata.nextLink to find all teams
- LIST_CHANNELS can return 403 if user lacks access to the team
- Messages over ~28KB can trigger 400/413 errors; split long content
- Throttling may return 429; use exponential backoff (1s/2s/4s)
2. Send Chat Messages
When to use: User wants to send a direct or group chat message
Tool sequence:
MICROSOFT_TEAMS_CHATS_GET_ALL_CHATS - List existing chats [Optional]
MICROSOFT_TEAMS_LIST_USERS - Find users for new chats [Optional]
MICROSOFT_TEAMS_TEAMS_CREATE_CHAT - Create a new chat [Optional]
MICROSOFT_TEAMS_TEAMS_POST_CHAT_MESSAGE - Send the message [Required]
Key parameters:
chat_id: Chat ID (from GET_ALL_CHATS or CREATE_CHAT)
content: Message content
content_type: 'text' or 'html'
chatType: 'oneOnOne' or 'group' (for CREATE_CHAT)
members: Array of member objects (for CREATE_CHAT)
Pitfalls:
- CREATE_CHAT requires the authenticated user as one of the members
- oneOnOne chats return existing chat if one already exists between the two users
- group chats require at least one member with 'owner' role
- member user_odata_bind must use full Microsoft Graph URL format
- Chat filter support is very limited; filter client-side when needed
3. Create Online Meetings
When to use: User wants to schedule a Microsoft Teams meeting
Tool sequence:
MICROSOFT_TEAMS_LIST_USERS - Find participant user IDs [Optional]
MICROSOFT_TEAMS_CREATE_MEETING - Create the meeting [Required]
Key parameters:
subject: Meeting title
start_date_time: ISO 8601 start time (e.g., '2024-08-15T10:00:00Z')
end_date_time: ISO 8601 end time (must be after start)
participants: Array of user objects with user_id and role
Pitfalls:
- end_date_time must be strictly after start_date_time
- Participants require valid Microsoft user_id (GUID) values, not emails
- This creates a standalone meeting not linked to a calendar event
- For calendar-linked meetings, use OUTLOOK_CALENDAR_CREATE_EVENT with is_online_meeting=true
4. Manage Teams and Channels
When to use: User wants to list, create, or manage teams and channels
Tool sequence:
MICROSOFT_TEAMS_TEAMS_LIST - List all accessible teams [Required]
MICROSOFT_TEAMS_GET_TEAM - Get details for a specific team [Optional]
MICROSOFT_TEAMS_TEAMS_LIST_CHANNELS - List channels in a team [Optional]
MICROSOFT_TEAMS_GET_CHANNEL - Get channel details [Optional]
MICROSOFT_TEAMS_TEAMS_CREATE_CHANNEL - Create a new channel [Optional]
MICROSOFT_TEAMS_LIST_TEAM_MEMBERS - List team members [Optional]
MICROSOFT_TEAMS_ADD_MEMBER_TO_TEAM - Add a member to the team [Optional]
Key parameters:
team_id: Team UUID
channel_id: Channel ID in thread format
filter: OData filter string (e.g., "startsWith(displayName,'Project')")
select: Comma-separated properties to return
Pitfalls:
- TEAMS_LIST pagination: follow @odata.nextLink in large tenants
- Private/shared channels may be omitted unless permissions align
- GET_CHANNEL returns 404 if team_id or channel_id is wrong
- Always source IDs from list operations; do not guess ID formats
5. Search Messages
When to use: User wants to find messages across Teams chats and channels
Tool sequence:
MICROSOFT_TEAMS_SEARCH_MESSAGES - Search with KQL syntax [Required]
Key parameters:
query: KQL search query (supports from:, sent:, attachments, boolean logic)
Pitfalls:
- Newly posted messages may take 30-60 seconds to appear in search
- Search is eventually consistent; do not rely on it for immediate delivery confirmation
- Use message listing tools for real-time message verification
Common Patterns
Team and Channel ID Resolution
1. Call MICROSOFT_TEAMS_TEAMS_LIST
2. Find team by displayName
3. Extract team id (UUID format)
4. Call MICROSOFT_TEAMS_TEAMS_LIST_CHANNELS with team_id
5. Find channel by displayName
6. Extract channel id (19:...@thread.tacv2 format)
User Resolution
1. Call MICROSOFT_TEAMS_LIST_USERS
2. Filter by displayName or email
3. Extract user id (UUID format)
4. Use for meeting participants, chat members, or team operations
Pagination
- Teams/Users: Follow @odata.nextLink URL for next page
- Chats: Auto-paginates up to limit; use top for page size (max 50)
- Use
top parameter to control page size
- Continue until @odata.nextLink is absent
Known Pitfalls
Authentication and Permissions:
- Different operations require different Microsoft Graph permissions
- 403 errors indicate insufficient permissions or team access
- Some operations require admin consent in the Azure AD tenant
ID Formats:
- Team IDs: UUID format (e.g., '87b0560f-fc0d-4442-add8-b380ca926707')
- Channel IDs: Thread format (e.g., '19:abc123@thread.tacv2')
- Chat IDs: Various formats (e.g., '19:meeting_xxx@thread.v2')
- User IDs: UUID format
- Never guess IDs; always resolve from list operations
Rate Limits:
- Microsoft Graph enforces throttling
- 429 responses include Retry-After header
- Keep requests to a few per second
- Batch operations help reduce total request count
Message Formatting:
- HTML content_type supports rich formatting
- Adaptive cards require additional handling
- Message size limit is approximately 28KB
- Split long content into multiple messages
Quick Reference
| Task |
Tool Slug |
Key Params |
| List teams |
MICROSOFT_TEAMS_TEAMS_LIST |
filter, select, top |
| Get team details |
MICROSOFT_TEAMS_GET_TEAM |
team_id |
| List channels |
MICROSOFT_TEAMS_TEAMS_LIST_CHANNELS |
team_id, filter |
| Get channel |
MICROSOFT_TEAMS_GET_CHANNEL |
team_id, channel_id |
| Create channel |
MICROSOFT_TEAMS_TEAMS_CREATE_CHANNEL |
team_id, displayName |
| Post to channel |
MICROSOFT_TEAMS_TEAMS_POST_CHANNEL_MESSAGE |
team_id, channel_id, content |
| List chats |
MICROSOFT_TEAMS_CHATS_GET_ALL_CHATS |
user_id, limit |
| Create chat |
MICROSOFT_TEAMS_TEAMS_CREATE_CHAT |
chatType, members, topic |
| Post to chat |
MICROSOFT_TEAMS_TEAMS_POST_CHAT_MESSAGE |
chat_id, content |
| Create meeting |
MICROSOFT_TEAMS_CREATE_MEETING |
subject, start_date_time, end_date_time |
| List users |
MICROSOFT_TEAMS_LIST_USERS |
filter, select, top |
| List team members |
MICROSOFT_TEAMS_LIST_TEAM_MEMBERS |
team_id |
| Add team member |
MICROSOFT_TEAMS_ADD_MEMBER_TO_TEAM |
team_id, user_id |
| Search messages |
MICROSOFT_TEAMS_SEARCH_MESSAGES |
query |
| Get chat message |
MICROSOFT_TEAMS_GET_CHAT_MESSAGE |
chat_id, message_id |
| List joined teams |
MICROSOFT_TEAMS_LIST_USER_JOINED_TEAMS |
(none) |
When to Use
This skill is applicable to execute the workflow or actions described in the overview.
Limitations
- Use this skill only when the task clearly matches the scope described above.
- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.
Source: sickn33/agentic-awesome-skills → skills/microsoft-teams-automation/SKILL.md
Also appears in: sickn33/agentic-awesome-skills/plugins/agentic-awesome-skills/skills/microsoft-teams-automation/SKILL.md, sickn33/agentic-awesome-skills/plugins/agentic-awesome-skills-claude/skills/microsoft-teams-automation/SKILL.md
1---2name: microsoft-teams-automation3description: "Automate Microsoft Teams tasks via Rube MCP (Composio): send messages, manage channels, create meetings, handle chats, and search messages. Always search tools first for current schemas."4category: mcp-and-integrations5source_repo: sickn33/agentic-awesome-skills6source_path: "skills/microsoft-teams-automation/SKILL.md"7source_url: https://github.com/sickn33/agentic-awesome-skills/blob/HEAD/skills/microsoft-teams-automation/SKILL.md8metadata:9 source: https://skillmd.com/skills/sickn33/microsoft-teams-automation10---111213# Microsoft Teams Automation via Rube MCP1415Automate Microsoft Teams operations through Composio's Microsoft Teams toolkit via Rube MCP.1617## Prerequisites1819- Rube MCP must be connected (RUBE_SEARCH_TOOLS available)20- Active Microsoft Teams connection via `RUBE_MANAGE_CONNECTIONS` with toolkit `microsoft_teams`21- Always call `RUBE_SEARCH_TOOLS` first to get current tool schemas2223## Setup2425**Get Rube MCP**: Add `https://rube.app/mcp` as an MCP server in your client configuration. No API keys needed — just add the endpoint and it works.2627281. Verify Rube MCP is available by confirming `RUBE_SEARCH_TOOLS` responds292. Call `RUBE_MANAGE_CONNECTIONS` with toolkit `microsoft_teams`303. If connection is not ACTIVE, follow the returned auth link to complete Microsoft OAuth314. Confirm connection status shows ACTIVE before running any workflows3233## Core Workflows3435### 1. Send Channel Messages3637**When to use**: User wants to post a message to a Teams channel3839**Tool sequence**:401. `MICROSOFT_TEAMS_TEAMS_LIST` - List teams to find target team [Prerequisite]412. `MICROSOFT_TEAMS_TEAMS_LIST_CHANNELS` - List channels in the team [Prerequisite]423. `MICROSOFT_TEAMS_TEAMS_POST_CHANNEL_MESSAGE` - Post the message [Required]4344**Key parameters**:45- `team_id`: UUID of the team (from TEAMS_LIST)46- `channel_id`: Channel ID (from LIST_CHANNELS, format: '19:...@thread.tacv2')47- `content`: Message text or HTML48- `content_type`: 'text' or 'html'4950**Pitfalls**:51- team_id must be a valid UUID format52- channel_id must be in thread format (e.g., '19:abc@thread.tacv2')53- TEAMS_LIST may paginate (~100 items/page); follow @odata.nextLink to find all teams54- LIST_CHANNELS can return 403 if user lacks access to the team55- Messages over ~28KB can trigger 400/413 errors; split long content56- Throttling may return 429; use exponential backoff (1s/2s/4s)5758### 2. Send Chat Messages5960**When to use**: User wants to send a direct or group chat message6162**Tool sequence**:631. `MICROSOFT_TEAMS_CHATS_GET_ALL_CHATS` - List existing chats [Optional]642. `MICROSOFT_TEAMS_LIST_USERS` - Find users for new chats [Optional]653. `MICROSOFT_TEAMS_TEAMS_CREATE_CHAT` - Create a new chat [Optional]664. `MICROSOFT_TEAMS_TEAMS_POST_CHAT_MESSAGE` - Send the message [Required]6768**Key parameters**:69- `chat_id`: Chat ID (from GET_ALL_CHATS or CREATE_CHAT)70- `content`: Message content71- `content_type`: 'text' or 'html'72- `chatType`: 'oneOnOne' or 'group' (for CREATE_CHAT)73- `members`: Array of member objects (for CREATE_CHAT)7475**Pitfalls**:76- CREATE_CHAT requires the authenticated user as one of the members77- oneOnOne chats return existing chat if one already exists between the two users78- group chats require at least one member with 'owner' role79- member user_odata_bind must use full Microsoft Graph URL format80- Chat filter support is very limited; filter client-side when needed8182### 3. Create Online Meetings8384**When to use**: User wants to schedule a Microsoft Teams meeting8586**Tool sequence**:871. `MICROSOFT_TEAMS_LIST_USERS` - Find participant user IDs [Optional]882. `MICROSOFT_TEAMS_CREATE_MEETING` - Create the meeting [Required]8990**Key parameters**:91- `subject`: Meeting title92- `start_date_time`: ISO 8601 start time (e.g., '2024-08-15T10:00:00Z')93- `end_date_time`: ISO 8601 end time (must be after start)94- `participants`: Array of user objects with user_id and role9596**Pitfalls**:97- end_date_time must be strictly after start_date_time98- Participants require valid Microsoft user_id (GUID) values, not emails99- This creates a standalone meeting not linked to a calendar event100- For calendar-linked meetings, use OUTLOOK_CALENDAR_CREATE_EVENT with is_online_meeting=true101102### 4. Manage Teams and Channels103104**When to use**: User wants to list, create, or manage teams and channels105106**Tool sequence**:1071. `MICROSOFT_TEAMS_TEAMS_LIST` - List all accessible teams [Required]1082. `MICROSOFT_TEAMS_GET_TEAM` - Get details for a specific team [Optional]1093. `MICROSOFT_TEAMS_TEAMS_LIST_CHANNELS` - List channels in a team [Optional]1104. `MICROSOFT_TEAMS_GET_CHANNEL` - Get channel details [Optional]1115. `MICROSOFT_TEAMS_TEAMS_CREATE_CHANNEL` - Create a new channel [Optional]1126. `MICROSOFT_TEAMS_LIST_TEAM_MEMBERS` - List team members [Optional]1137. `MICROSOFT_TEAMS_ADD_MEMBER_TO_TEAM` - Add a member to the team [Optional]114115**Key parameters**:116- `team_id`: Team UUID117- `channel_id`: Channel ID in thread format118- `filter`: OData filter string (e.g., "startsWith(displayName,'Project')")119- `select`: Comma-separated properties to return120121**Pitfalls**:122- TEAMS_LIST pagination: follow @odata.nextLink in large tenants123- Private/shared channels may be omitted unless permissions align124- GET_CHANNEL returns 404 if team_id or channel_id is wrong125- Always source IDs from list operations; do not guess ID formats126127### 5. Search Messages128129**When to use**: User wants to find messages across Teams chats and channels130131**Tool sequence**:1321. `MICROSOFT_TEAMS_SEARCH_MESSAGES` - Search with KQL syntax [Required]133134**Key parameters**:135- `query`: KQL search query (supports from:, sent:, attachments, boolean logic)136137**Pitfalls**:138- Newly posted messages may take 30-60 seconds to appear in search139- Search is eventually consistent; do not rely on it for immediate delivery confirmation140- Use message listing tools for real-time message verification141142## Common Patterns143144### Team and Channel ID Resolution145146```1471. Call MICROSOFT_TEAMS_TEAMS_LIST1482. Find team by displayName1493. Extract team id (UUID format)1504. Call MICROSOFT_TEAMS_TEAMS_LIST_CHANNELS with team_id1515. Find channel by displayName1526. Extract channel id (19:...@thread.tacv2 format)153```154155### User Resolution156157```1581. Call MICROSOFT_TEAMS_LIST_USERS1592. Filter by displayName or email1603. Extract user id (UUID format)1614. Use for meeting participants, chat members, or team operations162```163164### Pagination165166- Teams/Users: Follow @odata.nextLink URL for next page167- Chats: Auto-paginates up to limit; use top for page size (max 50)168- Use `top` parameter to control page size169- Continue until @odata.nextLink is absent170171## Known Pitfalls172173**Authentication and Permissions**:174- Different operations require different Microsoft Graph permissions175- 403 errors indicate insufficient permissions or team access176- Some operations require admin consent in the Azure AD tenant177178**ID Formats**:179- Team IDs: UUID format (e.g., '87b0560f-fc0d-4442-add8-b380ca926707')180- Channel IDs: Thread format (e.g., '19:abc123@thread.tacv2')181- Chat IDs: Various formats (e.g., '19:meeting_xxx@thread.v2')182- User IDs: UUID format183- Never guess IDs; always resolve from list operations184185**Rate Limits**:186- Microsoft Graph enforces throttling187- 429 responses include Retry-After header188- Keep requests to a few per second189- Batch operations help reduce total request count190191**Message Formatting**:192- HTML content_type supports rich formatting193- Adaptive cards require additional handling194- Message size limit is approximately 28KB195- Split long content into multiple messages196197## Quick Reference198199| Task | Tool Slug | Key Params |200|------|-----------|------------|201| List teams | MICROSOFT_TEAMS_TEAMS_LIST | filter, select, top |202| Get team details | MICROSOFT_TEAMS_GET_TEAM | team_id |203| List channels | MICROSOFT_TEAMS_TEAMS_LIST_CHANNELS | team_id, filter |204| Get channel | MICROSOFT_TEAMS_GET_CHANNEL | team_id, channel_id |205| Create channel | MICROSOFT_TEAMS_TEAMS_CREATE_CHANNEL | team_id, displayName |206| Post to channel | MICROSOFT_TEAMS_TEAMS_POST_CHANNEL_MESSAGE | team_id, channel_id, content |207| List chats | MICROSOFT_TEAMS_CHATS_GET_ALL_CHATS | user_id, limit |208| Create chat | MICROSOFT_TEAMS_TEAMS_CREATE_CHAT | chatType, members, topic |209| Post to chat | MICROSOFT_TEAMS_TEAMS_POST_CHAT_MESSAGE | chat_id, content |210| Create meeting | MICROSOFT_TEAMS_CREATE_MEETING | subject, start_date_time, end_date_time |211| List users | MICROSOFT_TEAMS_LIST_USERS | filter, select, top |212| List team members | MICROSOFT_TEAMS_LIST_TEAM_MEMBERS | team_id |213| Add team member | MICROSOFT_TEAMS_ADD_MEMBER_TO_TEAM | team_id, user_id |214| Search messages | MICROSOFT_TEAMS_SEARCH_MESSAGES | query |215| Get chat message | MICROSOFT_TEAMS_GET_CHAT_MESSAGE | chat_id, message_id |216| List joined teams | MICROSOFT_TEAMS_LIST_USER_JOINED_TEAMS | (none) |217218## When to Use219This skill is applicable to execute the workflow or actions described in the overview.220221## Limitations222- Use this skill only when the task clearly matches the scope described above.223- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.224- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.225226---227228**Source:** [`sickn33/agentic-awesome-skills`](https://github.com/sickn33/agentic-awesome-skills) → `skills/microsoft-teams-automation/SKILL.md`229230**Also appears in:** `sickn33/agentic-awesome-skills/plugins/agentic-awesome-skills/skills/microsoft-teams-automation/SKILL.md`, `sickn33/agentic-awesome-skills/plugins/agentic-awesome-skills-claude/skills/microsoft-teams-automation/SKILL.md`