Skip to main content
Glama
outlook-mcp

outlook-mcp

by Pepebits

create_rule

Destructive

Create an Outlook inbox rule that moves, deletes, marks read, or junks future incoming mail matching sender or subject conditions; mail already received is unaffected.

Instructions

Create an inbox rule that acts on future incoming mail matching the conditions (at least one of fromAddresses, senderContains, subjectContains). Actions: move (needs destinationFolderId, an id or a name like archive), delete (to Deleted Items), markRead, junk (to Junk Email). Does not affect mail already received.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "displayName": "<displayName>",
      "action": "<action>"
    },
    "name": "create_rule"
  }
}

Input Schema

NameRequiredDescriptionDefault
actionYes
displayNameYes
fromAddressesNoExact sender email addresses
senderContainsNoText the sender address must contain, e.g. "@example.com"
subjectContainsNo
destinationFolderIdNoFolder id or well-known name; required for action "move"
stopProcessingRulesNoStop evaluating later rules after this one (default true)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already flag a destructive, non-read-only write; the description adds real value beyond them by clarifying that existing mail is unaffected and by specifying the concrete side effects of delete (to Deleted Items) and junk (to Junk Email). It omits mention of stopProcessingRules, which affects rule evaluation, but that gap is partly covered in the schema.

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

Conciseness5/5

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

Three dense but well-structured sentences: scope, matching conditions, actions, and the effect boundary. Nothing is redundant and the key constraint (future mail only) is front-loaded.

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?

For a 7-parameter mutation tool with no output schema, the description covers matching, actions, and effect scope thoroughly. It does not say what the call returns (e.g., the created rule id), which is the main remaining gap.

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?

With 57% schema coverage, the description compensates well: it explains the condition parameters, ties the action enum values to their effects, and states that move accepts an id or a well-known name like archive. It leaves stopProcessingRules and displayName to the schema, which documents them adequately.

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?

States a specific verb and resource ("Create an inbox rule") and scopes it precisely: acts on future incoming mail, defines matching conditions, and enumerates the four action types. The distinction from list_rules/delete_rule is implicit in the verb but 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?

Gives clear preconditions (at least one of fromAddresses, senderContains, subjectContains) and the conditional requirement of destinationFolderId for the move action. It does not name alternatives or say when not to use it, but the usage context is explicit.

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