Skip to main content
Glama
Softeria

Microsoft 365 MCP Server

by Softeria

create-mail-rule

create-mail-rule
Destructive

Create Outlook rules to automate inbox management: define conditions for incoming messages and specify actions like moving, forwarding, or deleting them.

Instructions

Create a messageRule object by specifying a set of conditions and actions. Outlook carries out those actions if an incoming message in the user's Inbox meets the specified conditions.

šŸ’” TIP: Creates a message rule for a mail folder. Use the Inbox folder ID (get it from list-mail-folders) for inbox rules. Body: { displayName: 'Rule name', sequence: 1, isEnabled: true, conditions: { fromAddresses: [{ emailAddress: { address: 'user@example.com' } }] }, actions: { moveToFolder: 'folder-id' } }. Actions: moveToFolder, copyToFolder, forwardTo, forwardAsAttachmentTo, delete, markAsRead, markImportance, stopProcessingRules.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
bodyYes
confirmNoFor destructive operations when the confirm gate is enabled (MS365_MCP_REQUIRE_CONFIRM=true; off by default). Set to true only after the user has explicitly approved this action. When the gate is on, calls without confirm: true return { error: "confirmation_required" } without touching user data.
mailFolderIdYesValue for the 'mailFolderId' path segment. Pass it under the name 'mailFolderId', not as 'id'. Use the 'id' field of the mail folder object as returned by Microsoft Graph.
includeHeadersNoInclude response headers (including ETag) in the response metadata
excludeResponseNoExclude the full response body and only return success or failure indication

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. Changed180 schema fields changedv0.145.2
    • removedInput schema / $defs
      Removed value: -{
      -  "def0": {
      -    "additionalProperties": true,
      -    "properties": {
      -      "emailAddress": {
      -        "additionalProperties": true,
      -        "properties": {
      -          "address": {
      -            "description": "The email address of the person or entity.",
      -            "type": [
      -              "string",
      -              "null"
      -            ]
      -          },
      -          "name": {
      -            "description": "The display name of the person or entity.",
      -            "type": [
      -              "string",
      -              "null"
      -            ]
      -          }
      -        },
      -        "type": "object"
      -      }
      -    },
      -    "type": "object"
      -  },
      -  "def1": {
      -    "enum": [
      -      "low",
      -      "normal",
      -      "high"
      -    ],
      -    "type": "string"
      -  },
      -  "def10": {
      -    "description": "Indicates whether an incoming message must be automatically forwarded in order for the condition or exception to apply.",
      -    "type": [
      -      "boolean",
      -      "null"
      -    ]
      -  },
      -  "def11": {
      -    "description": "Indicates whether an incoming message must be an auto reply in order for the condition or exception to apply.",
      -    "type": [
      -      "boolean",
      -      "null"
      -    ]
      -  },
      -  "def12": {
      -    "description": "Indicates whether an incoming message must be encrypted in order for the condition or exception to apply.",
      -    "type": [
      -      "boolean",
      -      "null"
      -    ]
      -  },
      -  "def13": {
      -    "description": "Indicates whether an incoming message must be a meeting request in order for the condition or exception to apply.",
      -    "type": [
      -      "boolean",
      -      "null"
      -    ]
      -  },
      -  "def14": {
      -    "description": "Indicates whether an incoming message must be a meeting response in order for the condition or exception to apply.",
      -    "type": [
      -      "boolean",
      -      "null"
      -    ]
      -  },
      -  "def15": {
      -    "description": "Indicates whether an incoming message must be a non-delivery report in order for the condition or exception to apply.",
      -    "type": [
      -      "boolean",
      -      "null"
      -    ]
      -  },
      -  "def16": {
      -    "description": "Indicates whether an incoming message must be permission controlled (RMS-protected) in order for the condition or exception to apply.",
      -    "type": [
      -      "boolean",
      -      "null"
      -    ]
      -  },
      -  "def17": {
      -    "description": "Indicates whether an incoming message must be a read receipt in order for the condition or exception to apply.",
      -    "type": [
      -      "boolean",
      -      "null"
      -    ]
      -  },
      -  "def18": {
      -    "description": "Indicates whether an incoming message must be S/MIME-signed in order for the condition or exception to apply.",
      -    "type": [
      -      "boolean",
      -      "null"
      -    ]
      -  },
      -  "def19": {
      -    "description": "Indicates whether an incoming message must be a voice mail in order for the condition or exception to apply.",
      -    "type": [
      -      "boolean",
      -      "null"
      -    ]
      -  },
      -  "def2": {
      -    "description": "Represents the strings that should appear in the body of an incoming message in order for the condition or exception to apply.",
      -    "items": {
      -      "type": [
      -        "string",
      -        "null"
      -      ]
      -    },
      -    "type": "array"
      -  },
      -  "def20": {
      -    "enum": [
      -      "any",
      -      "call",
      -      "doNotForward",
      -      "followUp",
      -      "fyi",
      -      "forward",
      -      "noResponseNecessary",
      -      "read",
      -      "reply",
      -      "replyToAll",
      -      "review"
      -    ],
      -    "type": "string"
      -  },
      -  "def21": {
      -    "description": "Indicates whether the owner of the mailbox must not be a recipient of an incoming message in order for the condition or exception to apply.",
      -    "type": [
      -      "boolean",
      -      "null"
      -    ]
      -  },
      -  "def22": {
      -    "description": "Represents the strings that appear in either the toRecipients or ccRecipients properties of an incoming message in order for the condition or exception to apply.",
      -    "items": {
      -      "type": [
      -        "string",
      -        "null"
      -      ]
      -    },
      -    "type": "array"
      -  },
      -  "def23": {
      -    "description": "Represents the strings that appear in the from property of an incoming message in order for the condition or exception to apply.",
      -    "items": {
      -      "type": [
      -        "string",
      -        "null"
      -      ]
      -    },
      -    "type": "array"
      -  },
      -  "def24": {
      -    "enum": [
      -      "normal",
      -      "personal",
      -      "private",
      -      "confidential"
      -    ],
      -    "type": "string"
      -  },
      -  "def25": {
      -    "description": "Indicates whether the owner of the mailbox must be in the ccRecipients property of an incoming message in order for the condition or exception to apply.",
      -    "type": [
      -      "boolean",
      -      "null"
      -    ]
      -  },
      -  "def26": {
      -    "description": "Indicates whether the owner of the mailbox must be the only recipient in an incoming message in order for the condition or exception to apply.",
      -    "type": [
      -      "boolean",
      -      "null"
      -    ]
      -  },
      -  "def3": {
      -    "description": "Represents the strings that should appear in the body or subject of an incoming message in order for the condition or exception to apply.",
      -    "items": {
      -      "type": [
      -        "string",
      -        "null"
      -      ]
      -    },
      -    "type": "array"
      -  },
      -  "def4": {
      -    "description": "Represents the categories that an incoming message should be labeled with in order for the condition or exception to apply.",
      -    "items": {
      -      "type": [
      -        "string",
      -        "null"
      -      ]
      -    },
      -    "type": "array"
      -  },
      -  "def5": {
      -    "description": "Represents the specific sender email addresses of an incoming message in order for the condition or exception to apply.",
      -    "items": {
      -      "$ref": "#/$defs/def0"
      -    },
      -    "type": "array"
      -  },
      -  "def6": {
      -    "description": "Indicates whether an incoming message must have attachments in order for the condition or exception to apply.",
      -    "type": [
      -      "boolean",
      -      "null"
      -    ]
      -  },
      -  "def7": {
      -    "description": "Represents the strings that appear in the headers of an incoming message in order for the condition or exception to apply.",
      -    "items": {
      -      "type": [
      -        "string",
      -        "null"
      -      ]
      -    },
      -    "type": "array"
      -  },
      -  "def8": {
      -    "$ref": "#/$defs/def1"
      -  },
      -  "def9": {
      -    "description": "Indicates whether an incoming message must be an approval request in order for the condition or exception to apply.",
      -    "type": [
      -      "boolean",
      -      "null"
      -    ]
      -  }
      -}
    • removedInput schema / properties / body / properties / actions / properties / forwardAsAttachmentTo / items / $ref
      Removed value: -"#/$defs/def0"
    • addedInput schema / properties / body / properties / actions / properties / forwardAsAttachmentTo / items / additionalProperties
      Added value: +true
    • addedInput schema / properties / body / properties / actions / properties / forwardAsAttachmentTo / items / properties
      Added value: +{
      +  "emailAddress": {
      +    "additionalProperties": true,
      +    "properties": {
      +      "address": {
      +        "description": "The email address of the person or entity.",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "name": {
      +        "description": "The display name of the person or entity.",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      }
      +    },
      +    "type": "object"
      +  }
      +}
    • addedInput schema / properties / body / properties / actions / properties / forwardAsAttachmentTo / items / type
      Added value: +"object"
    • removedInput schema / properties / body / properties / actions / properties / forwardTo / items / $ref
      Removed value: -"#/$defs/def0"
    • addedInput schema / properties / body / properties / actions / properties / forwardTo / items / additionalProperties
      Added value: +true
    • addedInput schema / properties / body / properties / actions / properties / forwardTo / items / properties
      Added value: +{
      +  "emailAddress": {
      +    "additionalProperties": true,
      +    "properties": {
      +      "address": {
      +        "description": "The email address of the person or entity.",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "name": {
      +        "description": "The display name of the person or entity.",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      }
      +    },
      +    "type": "object"
      +  }
      +}
    • addedInput schema / properties / body / properties / actions / properties / forwardTo / items / type
      Added value: +"object"
    • removedInput schema / properties / body / properties / actions / properties / markImportance / $ref
      Removed value: -"#/$defs/def1"
    • addedInput schema / properties / body / properties / actions / properties / markImportance / enum
      Added value: +[
      +  "low",
      +  "normal",
      +  "high"
      +]
    • addedInput schema / properties / body / properties / actions / properties / markImportance / type
      Added value: +"string"
    • removedInput schema / properties / body / properties / actions / properties / redirectTo / items / $ref
      Removed value: -"#/$defs/def0"
    • addedInput schema / properties / body / properties / actions / properties / redirectTo / items / additionalProperties
      Added value: +true
    • addedInput schema / properties / body / properties / actions / properties / redirectTo / items / properties
      Added value: +{
      +  "emailAddress": {
      +    "additionalProperties": true,
      +    "properties": {
      +      "address": {
      +        "description": "The email address of the person or entity.",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "name": {
      +        "description": "The display name of the person or entity.",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      }
      +    },
      +    "type": "object"
      +  }
      +}
    • addedInput schema / properties / body / properties / actions / properties / redirectTo / items / type
      Added value: +"object"
    • removedInput schema / properties / body / properties / conditions / properties / bodyContains / $ref
      Removed value: -"#/$defs/def2"
    • addedInput schema / properties / body / properties / conditions / properties / bodyContains / description
      Added value: +"Represents the strings that should appear in the body of an incoming message in order for the condition or exception to apply."
    • addedInput schema / properties / body / properties / conditions / properties / bodyContains / items
      Added value: +{
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedInput schema / properties / body / properties / conditions / properties / bodyContains / type
      Added value: +"array"
    • removedInput schema / properties / body / properties / conditions / properties / bodyOrSubjectContains / $ref
      Removed value: -"#/$defs/def3"
    • addedInput schema / properties / body / properties / conditions / properties / bodyOrSubjectContains / description
      Added value: +"Represents the strings that should appear in the body or subject of an incoming message in order for the condition or exception to apply."
    • addedInput schema / properties / body / properties / conditions / properties / bodyOrSubjectContains / items
      Added value: +{
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedInput schema / properties / body / properties / conditions / properties / bodyOrSubjectContains / type
      Added value: +"array"
    • removedInput schema / properties / body / properties / conditions / properties / categories / $ref
      Removed value: -"#/$defs/def4"
    • addedInput schema / properties / body / properties / conditions / properties / categories / description
      Added value: +"Represents the categories that an incoming message should be labeled with in order for the condition or exception to apply."
    • addedInput schema / properties / body / properties / conditions / properties / categories / items
      Added value: +{
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedInput schema / properties / body / properties / conditions / properties / categories / type
      Added value: +"array"
    • removedInput schema / properties / body / properties / conditions / properties / fromAddresses / $ref
      Removed value: -"#/$defs/def5"
    • addedInput schema / properties / body / properties / conditions / properties / fromAddresses / description
      Added value: +"Represents the specific sender email addresses of an incoming message in order for the condition or exception to apply."
    • addedInput schema / properties / body / properties / conditions / properties / fromAddresses / items
      Added value: +{
      +  "additionalProperties": true,
      +  "properties": {
      +    "emailAddress": {
      +      "additionalProperties": true,
      +      "properties": {
      +        "address": {
      +          "description": "The email address of the person or entity.",
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "name": {
      +          "description": "The display name of the person or entity.",
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        }
      +      },
      +      "type": "object"
      +    }
      +  },
      +  "type": "object"
      +}
    • addedInput schema / properties / body / properties / conditions / properties / fromAddresses / type
      Added value: +"array"
    • removedInput schema / properties / body / properties / conditions / properties / hasAttachments / $ref
      Removed value: -"#/$defs/def6"
    • addedInput schema / properties / body / properties / conditions / properties / hasAttachments / description
      Added value: +"Indicates whether an incoming message must have attachments in order for the condition or exception to apply."
    • addedInput schema / properties / body / properties / conditions / properties / hasAttachments / type
      Added value: +[
      +  "boolean",
      +  "null"
      +]
    • removedInput schema / properties / body / properties / conditions / properties / headerContains / $ref
      Removed value: -"#/$defs/def7"
    • addedInput schema / properties / body / properties / conditions / properties / headerContains / description
      Added value: +"Represents the strings that appear in the headers of an incoming message in order for the condition or exception to apply."
    • addedInput schema / properties / body / properties / conditions / properties / headerContains / items
      Added value: +{
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedInput schema / properties / body / properties / conditions / properties / headerContains / type
      Added value: +"array"
    • removedInput schema / properties / body / properties / conditions / properties / importance / $ref
      Removed value: -"#/$defs/def8"
    • addedInput schema / properties / body / properties / conditions / properties / importance / enum
      Added value: +[
      +  "low",
      +  "normal",
      +  "high"
      +]
    • addedInput schema / properties / body / properties / conditions / properties / importance / type
      Added value: +"string"
    • removedInput schema / properties / body / properties / conditions / properties / isApprovalRequest / $ref
      Removed value: -"#/$defs/def9"
    • addedInput schema / properties / body / properties / conditions / properties / isApprovalRequest / description
      Added value: +"Indicates whether an incoming message must be an approval request in order for the condition or exception to apply."
    • addedInput schema / properties / body / properties / conditions / properties / isApprovalRequest / type
      Added value: +[
      +  "boolean",
      +  "null"
      +]
    • removedInput schema / properties / body / properties / conditions / properties / isAutomaticForward / $ref
      Removed value: -"#/$defs/def10"
    • addedInput schema / properties / body / properties / conditions / properties / isAutomaticForward / description
      Added value: +"Indicates whether an incoming message must be automatically forwarded in order for the condition or exception to apply."
    • addedInput schema / properties / body / properties / conditions / properties / isAutomaticForward / type
      Added value: +[
      +  "boolean",
      +  "null"
      +]
    • removedInput schema / properties / body / properties / conditions / properties / isAutomaticReply / $ref
      Removed value: -"#/$defs/def11"
    • addedInput schema / properties / body / properties / conditions / properties / isAutomaticReply / description
      Added value: +"Indicates whether an incoming message must be an auto reply in order for the condition or exception to apply."
    • addedInput schema / properties / body / properties / conditions / properties / isAutomaticReply / type
      Added value: +[
      +  "boolean",
      +  "null"
      +]
    • removedInput schema / properties / body / properties / conditions / properties / isEncrypted / $ref
      Removed value: -"#/$defs/def12"
    • addedInput schema / properties / body / properties / conditions / properties / isEncrypted / description
      Added value: +"Indicates whether an incoming message must be encrypted in order for the condition or exception to apply."
    • addedInput schema / properties / body / properties / conditions / properties / isEncrypted / type
      Added value: +[
      +  "boolean",
      +  "null"
      +]
    • removedInput schema / properties / body / properties / conditions / properties / isMeetingRequest / $ref
      Removed value: -"#/$defs/def13"
    • addedInput schema / properties / body / properties / conditions / properties / isMeetingRequest / description
      Added value: +"Indicates whether an incoming message must be a meeting request in order for the condition or exception to apply."
    • addedInput schema / properties / body / properties / conditions / properties / isMeetingRequest / type
      Added value: +[
      +  "boolean",
      +  "null"
      +]
    • removedInput schema / properties / body / properties / conditions / properties / isMeetingResponse / $ref
      Removed value: -"#/$defs/def14"
    • addedInput schema / properties / body / properties / conditions / properties / isMeetingResponse / description
      Added value: +"Indicates whether an incoming message must be a meeting response in order for the condition or exception to apply."
    • addedInput schema / properties / body / properties / conditions / properties / isMeetingResponse / type
      Added value: +[
      +  "boolean",
      +  "null"
      +]
    • removedInput schema / properties / body / properties / conditions / properties / isNonDeliveryReport / $ref
      Removed value: -"#/$defs/def15"
    • addedInput schema / properties / body / properties / conditions / properties / isNonDeliveryReport / description
      Added value: +"Indicates whether an incoming message must be a non-delivery report in order for the condition or exception to apply."
    • addedInput schema / properties / body / properties / conditions / properties / isNonDeliveryReport / type
      Added value: +[
      +  "boolean",
      +  "null"
      +]
    • removedInput schema / properties / body / properties / conditions / properties / isPermissionControlled / $ref
      Removed value: -"#/$defs/def16"
    • addedInput schema / properties / body / properties / conditions / properties / isPermissionControlled / description
      Added value: +"Indicates whether an incoming message must be permission controlled (RMS-protected) in order for the condition or exception to apply."
    • addedInput schema / properties / body / properties / conditions / properties / isPermissionControlled / type
      Added value: +[
      +  "boolean",
      +  "null"
      +]
    • removedInput schema / properties / body / properties / conditions / properties / isReadReceipt / $ref
      Removed value: -"#/$defs/def17"
    • addedInput schema / properties / body / properties / conditions / properties / isReadReceipt / description
      Added value: +"Indicates whether an incoming message must be a read receipt in order for the condition or exception to apply."
    • addedInput schema / properties / body / properties / conditions / properties / isReadReceipt / type
      Added value: +[
      +  "boolean",
      +  "null"
      +]
    • removedInput schema / properties / body / properties / conditions / properties / isSigned / $ref
      Removed value: -"#/$defs/def18"
    • addedInput schema / properties / body / properties / conditions / properties / isSigned / description
      Added value: +"Indicates whether an incoming message must be S/MIME-signed in order for the condition or exception to apply."
    • addedInput schema / properties / body / properties / conditions / properties / isSigned / type
      Added value: +[
      +  "boolean",
      +  "null"
      +]
    • removedInput schema / properties / body / properties / conditions / properties / isVoicemail / $ref
      Removed value: -"#/$defs/def19"
    • addedInput schema / properties / body / properties / conditions / properties / isVoicemail / description
      Added value: +"Indicates whether an incoming message must be a voice mail in order for the condition or exception to apply."
    • addedInput schema / properties / body / properties / conditions / properties / isVoicemail / type
      Added value: +[
      +  "boolean",
      +  "null"
      +]
    • removedInput schema / properties / body / properties / conditions / properties / messageActionFlag / $ref
      Removed value: -"#/$defs/def20"
    • addedInput schema / properties / body / properties / conditions / properties / messageActionFlag / enum
      Added value: +[
      +  "any",
      +  "call",
      +  "doNotForward",
      +  "followUp",
      +  "fyi",
      +  "forward",
      +  "noResponseNecessary",
      +  "read",
      +  "reply",
      +  "replyToAll",
      +  "review"
      +]
    • addedInput schema / properties / body / properties / conditions / properties / messageActionFlag / type
      Added value: +"string"
    • removedInput schema / properties / body / properties / conditions / properties / notSentToMe / $ref
      Removed value: -"#/$defs/def21"
    • addedInput schema / properties / body / properties / conditions / properties / notSentToMe / description
      Added value: +"Indicates whether the owner of the mailbox must not be a recipient of an incoming message in order for the condition or exception to apply."
    • addedInput schema / properties / body / properties / conditions / properties / notSentToMe / type
      Added value: +[
      +  "boolean",
      +  "null"
      +]
    • removedInput schema / properties / body / properties / conditions / properties / recipientContains / $ref
      Removed value: -"#/$defs/def22"
    • addedInput schema / properties / body / properties / conditions / properties / recipientContains / description
      Added value: +"Represents the strings that appear in either the toRecipients or ccRecipients properties of an incoming message in order for the condition or exception to apply."
    • addedInput schema / properties / body / properties / conditions / properties / recipientContains / items
      Added value: +{
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedInput schema / properties / body / properties / conditions / properties / recipientContains / type
      Added value: +"array"
    • removedInput schema / properties / body / properties / conditions / properties / senderContains / $ref
      Removed value: -"#/$defs/def23"
    • addedInput schema / properties / body / properties / conditions / properties / senderContains / description
      Added value: +"Represents the strings that appear in the from property of an incoming message in order for the condition or exception to apply."
    • addedInput schema / properties / body / properties / conditions / properties / senderContains / items
      Added value: +{
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedInput schema / properties / body / properties / conditions / properties / senderContains / type
      Added value: +"array"
    • removedInput schema / properties / body / properties / conditions / properties / sensitivity / $ref
      Removed value: -"#/$defs/def24"
    • addedInput schema / properties / body / properties / conditions / properties / sensitivity / enum
      Added value: +[
      +  "normal",
      +  "personal",
      +  "private",
      +  "confidential"
      +]
    • addedInput schema / properties / body / properties / conditions / properties / sensitivity / type
      Added value: +"string"
    • removedInput schema / properties / body / properties / conditions / properties / sentCcMe / $ref
      Removed value: -"#/$defs/def25"
    • addedInput schema / properties / body / properties / conditions / properties / sentCcMe / description
      Added value: +"Indicates whether the owner of the mailbox must be in the ccRecipients property of an incoming message in order for the condition or exception to apply."
    • addedInput schema / properties / body / properties / conditions / properties / sentCcMe / type
      Added value: +[
      +  "boolean",
      +  "null"
      +]
    • removedInput schema / properties / body / properties / conditions / properties / sentOnlyToMe / $ref
      Removed value: -"#/$defs/def26"
    • addedInput schema / properties / body / properties / conditions / properties / sentOnlyToMe / description
      Added value: +"Indicates whether the owner of the mailbox must be the only recipient in an incoming message in order for the condition or exception to apply."
    • addedInput schema / properties / body / properties / conditions / properties / sentOnlyToMe / type
      Added value: +[
      +  "boolean",
      +  "null"
      +]
    • removedInput schema / properties / body / properties / exceptions / properties / bodyContains / $ref
      Removed value: -"#/$defs/def2"
    • addedInput schema / properties / body / properties / exceptions / properties / bodyContains / description
      Added value: +"Represents the strings that should appear in the body of an incoming message in order for the condition or exception to apply."
    • addedInput schema / properties / body / properties / exceptions / properties / bodyContains / items
      Added value: +{
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedInput schema / properties / body / properties / exceptions / properties / bodyContains / type
      Added value: +"array"
    • removedInput schema / properties / body / properties / exceptions / properties / bodyOrSubjectContains / $ref
      Removed value: -"#/$defs/def3"
    • addedInput schema / properties / body / properties / exceptions / properties / bodyOrSubjectContains / description
      Added value: +"Represents the strings that should appear in the body or subject of an incoming message in order for the condition or exception to apply."
    • addedInput schema / properties / body / properties / exceptions / properties / bodyOrSubjectContains / items
      Added value: +{
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedInput schema / properties / body / properties / exceptions / properties / bodyOrSubjectContains / type
      Added value: +"array"
    • removedInput schema / properties / body / properties / exceptions / properties / categories / $ref
      Removed value: -"#/$defs/def4"
    • addedInput schema / properties / body / properties / exceptions / properties / categories / description
      Added value: +"Represents the categories that an incoming message should be labeled with in order for the condition or exception to apply."
    • addedInput schema / properties / body / properties / exceptions / properties / categories / items
      Added value: +{
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedInput schema / properties / body / properties / exceptions / properties / categories / type
      Added value: +"array"
    • removedInput schema / properties / body / properties / exceptions / properties / fromAddresses / $ref
      Removed value: -"#/$defs/def5"
    • addedInput schema / properties / body / properties / exceptions / properties / fromAddresses / description
      Added value: +"Represents the specific sender email addresses of an incoming message in order for the condition or exception to apply."
    • addedInput schema / properties / body / properties / exceptions / properties / fromAddresses / items
      Added value: +{
      +  "additionalProperties": true,
      +  "properties": {
      +    "emailAddress": {
      +      "additionalProperties": true,
      +      "properties": {
      +        "address": {
      +          "description": "The email address of the person or entity.",
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "name": {
      +          "description": "The display name of the person or entity.",
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        }
      +      },
      +      "type": "object"
      +    }
      +  },
      +  "type": "object"
      +}
    • addedInput schema / properties / body / properties / exceptions / properties / fromAddresses / type
      Added value: +"array"
    • removedInput schema / properties / body / properties / exceptions / properties / hasAttachments / $ref
      Removed value: -"#/$defs/def6"
    • addedInput schema / properties / body / properties / exceptions / properties / hasAttachments / description
      Added value: +"Indicates whether an incoming message must have attachments in order for the condition or exception to apply."
    • addedInput schema / properties / body / properties / exceptions / properties / hasAttachments / type
      Added value: +[
      +  "boolean",
      +  "null"
      +]
    • removedInput schema / properties / body / properties / exceptions / properties / headerContains / $ref
      Removed value: -"#/$defs/def7"
    • addedInput schema / properties / body / properties / exceptions / properties / headerContains / description
      Added value: +"Represents the strings that appear in the headers of an incoming message in order for the condition or exception to apply."
    • addedInput schema / properties / body / properties / exceptions / properties / headerContains / items
      Added value: +{
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedInput schema / properties / body / properties / exceptions / properties / headerContains / type
      Added value: +"array"
    • removedInput schema / properties / body / properties / exceptions / properties / importance / $ref
      Removed value: -"#/$defs/def8"
    • addedInput schema / properties / body / properties / exceptions / properties / importance / enum
      Added value: +[
      +  "low",
      +  "normal",
      +  "high"
      +]
    • addedInput schema / properties / body / properties / exceptions / properties / importance / type
      Added value: +"string"
    • removedInput schema / properties / body / properties / exceptions / properties / isApprovalRequest / $ref
      Removed value: -"#/$defs/def9"
    • addedInput schema / properties / body / properties / exceptions / properties / isApprovalRequest / description
      Added value: +"Indicates whether an incoming message must be an approval request in order for the condition or exception to apply."
    • addedInput schema / properties / body / properties / exceptions / properties / isApprovalRequest / type
      Added value: +[
      +  "boolean",
      +  "null"
      +]
    • removedInput schema / properties / body / properties / exceptions / properties / isAutomaticForward / $ref
      Removed value: -"#/$defs/def10"
    • addedInput schema / properties / body / properties / exceptions / properties / isAutomaticForward / description
      Added value: +"Indicates whether an incoming message must be automatically forwarded in order for the condition or exception to apply."
    • addedInput schema / properties / body / properties / exceptions / properties / isAutomaticForward / type
      Added value: +[
      +  "boolean",
      +  "null"
      +]
    • removedInput schema / properties / body / properties / exceptions / properties / isAutomaticReply / $ref
      Removed value: -"#/$defs/def11"
    • addedInput schema / properties / body / properties / exceptions / properties / isAutomaticReply / description
      Added value: +"Indicates whether an incoming message must be an auto reply in order for the condition or exception to apply."
    • addedInput schema / properties / body / properties / exceptions / properties / isAutomaticReply / type
      Added value: +[
      +  "boolean",
      +  "null"
      +]
    • removedInput schema / properties / body / properties / exceptions / properties / isEncrypted / $ref
      Removed value: -"#/$defs/def12"
    • addedInput schema / properties / body / properties / exceptions / properties / isEncrypted / description
      Added value: +"Indicates whether an incoming message must be encrypted in order for the condition or exception to apply."
    • addedInput schema / properties / body / properties / exceptions / properties / isEncrypted / type
      Added value: +[
      +  "boolean",
      +  "null"
      +]
    • removedInput schema / properties / body / properties / exceptions / properties / isMeetingRequest / $ref
      Removed value: -"#/$defs/def13"
    • addedInput schema / properties / body / properties / exceptions / properties / isMeetingRequest / description
      Added value: +"Indicates whether an incoming message must be a meeting request in order for the condition or exception to apply."
    • addedInput schema / properties / body / properties / exceptions / properties / isMeetingRequest / type
      Added value: +[
      +  "boolean",
      +  "null"
      +]
    • removedInput schema / properties / body / properties / exceptions / properties / isMeetingResponse / $ref
      Removed value: -"#/$defs/def14"
    • addedInput schema / properties / body / properties / exceptions / properties / isMeetingResponse / description
      Added value: +"Indicates whether an incoming message must be a meeting response in order for the condition or exception to apply."
    • addedInput schema / properties / body / properties / exceptions / properties / isMeetingResponse / type
      Added value: +[
      +  "boolean",
      +  "null"
      +]
    • removedInput schema / properties / body / properties / exceptions / properties / isNonDeliveryReport / $ref
      Removed value: -"#/$defs/def15"
    • addedInput schema / properties / body / properties / exceptions / properties / isNonDeliveryReport / description
      Added value: +"Indicates whether an incoming message must be a non-delivery report in order for the condition or exception to apply."
    • addedInput schema / properties / body / properties / exceptions / properties / isNonDeliveryReport / type
      Added value: +[
      +  "boolean",
      +  "null"
      +]
    • removedInput schema / properties / body / properties / exceptions / properties / isPermissionControlled / $ref
      Removed value: -"#/$defs/def16"
    • addedInput schema / properties / body / properties / exceptions / properties / isPermissionControlled / description
      Added value: +"Indicates whether an incoming message must be permission controlled (RMS-protected) in order for the condition or exception to apply."
    • addedInput schema / properties / body / properties / exceptions / properties / isPermissionControlled / type
      Added value: +[
      +  "boolean",
      +  "null"
      +]
    • removedInput schema / properties / body / properties / exceptions / properties / isReadReceipt / $ref
      Removed value: -"#/$defs/def17"
    • addedInput schema / properties / body / properties / exceptions / properties / isReadReceipt / description
      Added value: +"Indicates whether an incoming message must be a read receipt in order for the condition or exception to apply."
    • addedInput schema / properties / body / properties / exceptions / properties / isReadReceipt / type
      Added value: +[
      +  "boolean",
      +  "null"
      +]
    • removedInput schema / properties / body / properties / exceptions / properties / isSigned / $ref
      Removed value: -"#/$defs/def18"
    • addedInput schema / properties / body / properties / exceptions / properties / isSigned / description
      Added value: +"Indicates whether an incoming message must be S/MIME-signed in order for the condition or exception to apply."
    • addedInput schema / properties / body / properties / exceptions / properties / isSigned / type
      Added value: +[
      +  "boolean",
      +  "null"
      +]
    • removedInput schema / properties / body / properties / exceptions / properties / isVoicemail / $ref
      Removed value: -"#/$defs/def19"
    • addedInput schema / properties / body / properties / exceptions / properties / isVoicemail / description
      Added value: +"Indicates whether an incoming message must be a voice mail in order for the condition or exception to apply."
    • addedInput schema / properties / body / properties / exceptions / properties / isVoicemail / type
      Added value: +[
      +  "boolean",
      +  "null"
      +]
    • removedInput schema / properties / body / properties / exceptions / properties / messageActionFlag / $ref
      Removed value: -"#/$defs/def20"
    • addedInput schema / properties / body / properties / exceptions / properties / messageActionFlag / enum
      Added value: +[
      +  "any",
      +  "call",
      +  "doNotForward",
      +  "followUp",
      +  "fyi",
      +  "forward",
      +  "noResponseNecessary",
      +  "read",
      +  "reply",
      +  "replyToAll",
      +  "review"
      +]
    • addedInput schema / properties / body / properties / exceptions / properties / messageActionFlag / type
      Added value: +"string"
    • removedInput schema / properties / body / properties / exceptions / properties / notSentToMe / $ref
      Removed value: -"#/$defs/def21"
    • addedInput schema / properties / body / properties / exceptions / properties / notSentToMe / description
      Added value: +"Indicates whether the owner of the mailbox must not be a recipient of an incoming message in order for the condition or exception to apply."
    • addedInput schema / properties / body / properties / exceptions / properties / notSentToMe / type
      Added value: +[
      +  "boolean",
      +  "null"
      +]
    • removedInput schema / properties / body / properties / exceptions / properties / recipientContains / $ref
      Removed value: -"#/$defs/def22"
    • addedInput schema / properties / body / properties / exceptions / properties / recipientContains / description
      Added value: +"Represents the strings that appear in either the toRecipients or ccRecipients properties of an incoming message in order for the condition or exception to apply."
    • addedInput schema / properties / body / properties / exceptions / properties / recipientContains / items
      Added value: +{
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedInput schema / properties / body / properties / exceptions / properties / recipientContains / type
      Added value: +"array"
    • removedInput schema / properties / body / properties / exceptions / properties / senderContains / $ref
      Removed value: -"#/$defs/def23"
    • addedInput schema / properties / body / properties / exceptions / properties / senderContains / description
      Added value: +"Represents the strings that appear in the from property of an incoming message in order for the condition or exception to apply."
    • addedInput schema / properties / body / properties / exceptions / properties / senderContains / items
      Added value: +{
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedInput schema / properties / body / properties / exceptions / properties / senderContains / type
      Added value: +"array"
    • removedInput schema / properties / body / properties / exceptions / properties / sensitivity / $ref
      Removed value: -"#/$defs/def24"
    • addedInput schema / properties / body / properties / exceptions / properties / sensitivity / enum
      Added value: +[
      +  "normal",
      +  "personal",
      +  "private",
      +  "confidential"
      +]
    • addedInput schema / properties / body / properties / exceptions / properties / sensitivity / type
      Added value: +"string"
    • removedInput schema / properties / body / properties / exceptions / properties / sentCcMe / $ref
      Removed value: -"#/$defs/def25"
    • addedInput schema / properties / body / properties / exceptions / properties / sentCcMe / description
      Added value: +"Indicates whether the owner of the mailbox must be in the ccRecipients property of an incoming message in order for the condition or exception to apply."
    • addedInput schema / properties / body / properties / exceptions / properties / sentCcMe / type
      Added value: +[
      +  "boolean",
      +  "null"
      +]
    • removedInput schema / properties / body / properties / exceptions / properties / sentOnlyToMe / $ref
      Removed value: -"#/$defs/def26"
    • addedInput schema / properties / body / properties / exceptions / properties / sentOnlyToMe / description
      Added value: +"Indicates whether the owner of the mailbox must be the only recipient in an incoming message in order for the condition or exception to apply."
    • addedInput schema / properties / body / properties / exceptions / properties / sentOnlyToMe / type
      Added value: +[
      +  "boolean",
      +  "null"
      +]
  2. Addedv0.134.4
  3. Removedv0.131.2
  4. Changed1 schema field changedv0.131.1
    • addedInput schema / properties / confirm
      Added value: +{
      +  "description": "For destructive operations when the confirm gate is enabled (MS365_MCP_REQUIRE_CONFIRM=true; off by default). Set to true only after the user has explicitly approved this action. When the gate is on, calls without confirm: true return { error: \"confirmation_required\" } without touching user data.",
      +  "type": "boolean"
      +}
  5. Addedv0.114.0
  6. Removedv0.112.2
  7. Addedv0.110.0
  8. Removedv0.108.0
  9. Addedv0.96.0

TDQS

A4.3/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

The description states that Outlook carries out the specified actions when an incoming message meets the conditions, which clarifies the operational behavior. Annotations already indicate destructiveHint=true and readOnlyHint=false, so the agent knows this is a mutation, and the description aligns without contradiction. It does not elaborate on side effects or permanence beyond the core behavior, but annotations cover the safety profile.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is well-structured with a clear opening sentence, a tip section, and a sample body. It is not overly verbose and front-loads the core purpose. The inclusion of an example is justified given the complexity of the body object, and the formatting with a line break and emoji improves readability.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the complexity of the tool with multiple nested objects and many condition/action properties, the description provides a sample body and lists the available actions, which is helpful. The schema extensively documents individual properties, so the description does not need to repeat all that. However, it does not mention what the tool returns on success (e.g., the created messageRule object), which could be a minor gap since no output schema is provided.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema covers 80% of parameters with descriptions, so the baseline is high. The description adds a practical example body showing how to structure displayName, sequence, isEnabled, conditions, and actions, which is not in the schema. It also clarifies that mailFolderId must be passed under that name, not as 'id', and points to list-mail-folders for obtaining it, adding semantic clarity beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the action (create), the resource (messageRule object), and the context (incoming messages in the user's Inbox). It distinguishes itself from sibling tools like update-mail-rule and delete-mail-rule by focusing on creation and the conditions/actions involved. The verb-resource pairing is specific and unambiguous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides clear guidance on when to use the tool, including a tip to use the Inbox folder ID from list-mail-folders for inbox rules. It also includes a concrete body example with required fields, which helps the agent construct a valid request. However, it does not explicitly contrast with alternatives like update-mail-rule or state scenarios where this tool should not be used.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Softeria/ms-365-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server