Outlook automation

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

Outlook automation is an AI agent skill from the GitHub repository aAAaqwq/AGI-Super-Team. Automate Outlook tasks via Rube MCP (Composio): emails, calendar, contacts, folders, attachments. Always search tools first for current schemas.

How to use this skill

Skill file

Outlook Automation via Rube MCP

Automate Microsoft Outlook operations through Composio's Outlook 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 outlook
  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. Search and Filter Emails

When to use: User wants to find specific emails across their mailbox

Tool sequence:

  1. OUTLOOK_SEARCH_MESSAGES - Search with KQL syntax across all folders [Required]
  2. OUTLOOK_GET_MESSAGE - Get full message details [Optional]
  3. OUTLOOK_LIST_OUTLOOK_ATTACHMENTS - List message attachments [Optional]
  4. OUTLOOK_DOWNLOAD_OUTLOOK_ATTACHMENT - Download attachment [Optional]

Key parameters:

Pitfalls:

2. Query Emails in a Folder

When to use: User wants to list emails in a specific folder with OData filters

Tool sequence:

  1. OUTLOOK_LIST_MAIL_FOLDERS - List mail folders to get folder IDs [Prerequisite]
  2. OUTLOOK_QUERY_EMAILS - Query emails with structured filters [Required]

Key parameters:

Pitfalls:

3. Manage Calendar Events

When to use: User wants to list, search, or inspect calendar events

Tool sequence:

  1. OUTLOOK_LIST_EVENTS - List events with filters [Optional]
  2. OUTLOOK_GET_CALENDAR_VIEW - Get events in a time window [Optional]
  3. OUTLOOK_GET_EVENT - Get specific event details [Optional]
  4. OUTLOOK_LIST_CALENDARS - List available calendars [Optional]
  5. OUTLOOK_GET_SCHEDULE - Get free/busy info [Optional]

Key parameters:

Pitfalls:

4. Manage Contacts

When to use: User wants to list, create, or organize contacts

Tool sequence:

  1. OUTLOOK_LIST_CONTACTS - List contacts [Optional]
  2. OUTLOOK_CREATE_CONTACT - Create a new contact [Optional]
  3. OUTLOOK_GET_CONTACT_FOLDERS - List contact folders [Optional]
  4. OUTLOOK_CREATE_CONTACT_FOLDER - Create contact folder [Optional]

Key parameters:

Pitfalls:

5. Manage Mail Folders

When to use: User wants to organize mail folders

Tool sequence:

  1. OUTLOOK_LIST_MAIL_FOLDERS - List top-level folders [Required]
  2. OUTLOOK_LIST_CHILD_MAIL_FOLDERS - List subfolders [Optional]
  3. OUTLOOK_CREATE_MAIL_FOLDER - Create a new folder [Optional]

Key parameters:

Pitfalls:

Common Patterns

KQL Search Syntax

Property filters:

Combinators:

OData Filter Syntax

Email filters:

Calendar filters:

Known Pitfalls

Account Types:

Field Confusion:

Quick Reference

| Task | Tool Slug | Key Params |

|------|-----------|------------|

| Search emails | OUTLOOK_SEARCH_MESSAGES | query, from_index, size |

| Query folder | OUTLOOK_QUERY_EMAILS | folder, filter, top |

| Get message | OUTLOOK_GET_MESSAGE | message_id |

| List attachments | OUTLOOK_LIST_OUTLOOK_ATTACHMENTS | message_id |

| Download attachment | OUTLOOK_DOWNLOAD_OUTLOOK_ATTACHMENT | message_id, attachment_id |

| List folders | OUTLOOK_LIST_MAIL_FOLDERS | (none) |

| Child folders | OUTLOOK_LIST_CHILD_MAIL_FOLDERS | parent_folder_id |

| List events | OUTLOOK_LIST_EVENTS | filter, timezone |

| Calendar view | OUTLOOK_GET_CALENDAR_VIEW | start_datetime, end_datetime |

| Get event | OUTLOOK_GET_EVENT | event_id |

| List calendars | OUTLOOK_LIST_CALENDARS | (none) |

| Free/busy | OUTLOOK_GET_SCHEDULE | schedules, times |

| List contacts | OUTLOOK_LIST_CONTACTS | top, filter |

| Create contact | OUTLOOK_CREATE_CONTACT | givenName, emailAddresses |

| Contact folders | OUTLOOK_GET_CONTACT_FOLDERS | (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.