Microsoft teams automation

From aAAaqwq/AGI-Super-Team · View interactive version

Microsoft teams automation is an AI agent skill from the GitHub repository aAAaqwq/AGI-Super-Team. 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.

How to use this skill

Skill file

Microsoft Teams Automation via Rube MCP

Automate Microsoft Teams operations through Composio's Microsoft Teams toolkit via Rube MCP.

Prerequisites

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.

  1. Verify Rube MCP is available by confirming RUBE_SEARCH_TOOLS responds
  2. Call RUBE_MANAGE_CONNECTIONS with toolkit microsoft_teams
  3. If connection is not ACTIVE, follow the returned auth link to complete Microsoft OAuth
  4. 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:

  1. MICROSOFT_TEAMS_TEAMS_LIST - List teams to find target team [Prerequisite]
  2. MICROSOFT_TEAMS_TEAMS_LIST_CHANNELS - List channels in the team [Prerequisite]
  3. MICROSOFT_TEAMS_TEAMS_POST_CHANNEL_MESSAGE - Post the message [Required]

Key parameters:

Pitfalls:

2. Send Chat Messages

When to use: User wants to send a direct or group chat message

Tool sequence:

  1. MICROSOFT_TEAMS_CHATS_GET_ALL_CHATS - List existing chats [Optional]
  2. MICROSOFT_TEAMS_LIST_USERS - Find users for new chats [Optional]
  3. MICROSOFT_TEAMS_TEAMS_CREATE_CHAT - Create a new chat [Optional]
  4. MICROSOFT_TEAMS_TEAMS_POST_CHAT_MESSAGE - Send the message [Required]

Key parameters:

Pitfalls:

3. Create Online Meetings

When to use: User wants to schedule a Microsoft Teams meeting

Tool sequence:

  1. MICROSOFT_TEAMS_LIST_USERS - Find participant user IDs [Optional]
  2. MICROSOFT_TEAMS_CREATE_MEETING - Create the meeting [Required]

Key parameters:

Pitfalls:

4. Manage Teams and Channels

When to use: User wants to list, create, or manage teams and channels

Tool sequence:

  1. MICROSOFT_TEAMS_TEAMS_LIST - List all accessible teams [Required]
  2. MICROSOFT_TEAMS_GET_TEAM - Get details for a specific team [Optional]
  3. MICROSOFT_TEAMS_TEAMS_LIST_CHANNELS - List channels in a team [Optional]
  4. MICROSOFT_TEAMS_GET_CHANNEL - Get channel details [Optional]
  5. MICROSOFT_TEAMS_TEAMS_CREATE_CHANNEL - Create a new channel [Optional]
  6. MICROSOFT_TEAMS_LIST_TEAM_MEMBERS - List team members [Optional]
  7. MICROSOFT_TEAMS_ADD_MEMBER_TO_TEAM - Add a member to the team [Optional]

Key parameters:

Pitfalls:

5. Search Messages

When to use: User wants to find messages across Teams chats and channels

Tool sequence:

  1. MICROSOFT_TEAMS_SEARCH_MESSAGES - Search with KQL syntax [Required]

Key parameters:

Pitfalls:

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

Known Pitfalls

Authentication and Permissions:

ID Formats:

Rate Limits:

Message Formatting:

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) |

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.