Skip to main content
Glama

Create rule

create-rule

Creates a new Outlook inbox rule to automatically organize incoming messages by sender, subject, attachments, or read status; optionally move matching mail to a folder.

Instructions

Creates a new inbox rule

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": {
      "name": "<name>"
    },
    "name": "create-rule"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesRule display name
sequenceNoExecution order among rules
isEnabledNoEnable the rule immediately
markAsReadNoMark matching messages as read
moveToFolderNoFolder to move matching messages into
fromAddressesNoComma-separated sender addresses to match
hasAttachmentsNoMatch messages with attachments
containsSubjectNoSubject text to match

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/5.0
Behavior2/5

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

The only annotation is readOnlyHint=false, which already tells the agent this is a mutating operation, and the description is consistent with that. Beyond the annotations it adds nothing: it does not say whether the rule takes effect immediately, how unmatched filters behave, whether creating a duplicate name fails, or what permissions are required for an 8-parameter write.

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?

A single front-loaded sentence with zero wasted words. It is concise, though the brevity reflects under-specification rather than disciplined editing, which is captured in the completeness dimension.

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

Completeness2/5

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

For an 8-parameter mutation tool the description is far too thin: it omits filter/action semantics, authentication requirements, and any guidance about interaction with sibling rule tools. The output schema covers return values, but nothing else compensates for the missing behavioral and usage context.

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

Parameters3/5

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

Schema description coverage is 100%, so every parameter including sequence, moveToFolder, and fromAddresses is already documented in the schema. The description adds no meaning beyond the schema, which is the expected baseline when the schema does the heavy lifting.

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

Purpose4/5

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

The description states a specific verb and resource ("Creates a new inbox rule"), which is enough to tell it apart from read-oriented siblings like list-rules. However, it never contrasts itself with the sequence-editing sibling or clarifies that this creates the rule while edit-rule-sequence reorders existing ones, so differentiation is left implicit.

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

Usage Guidelines2/5

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

There is no guidance on when to use this tool, no mention of prerequisites such as being authenticated or having a target account, and no pointer to alternatives. An agent must infer from the name alone that this is the creation path versus edit-rule-sequence or list-rules.

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