Skip to main content
Glama

Update Email Rule

emailrules_update
Idempotent

Update an existing email rule in Microsoft 365 to modify its conditions, actions, name, sequence, or enable/disable status.

Instructions

✏️ Update an existing message rule (requires user confirmation recommended)

Modifies rule properties, conditions, actions, or execution order. At least one field must be provided to update.

Allowed parameters: display_name, conditions, actions, sequence, is_enabled, exceptions.

Args: rule_id: The message rule ID to update account_id: Microsoft account ID display_name: New name for the rule (optional) conditions: New conditions (optional) actions: New actions (optional) sequence: New execution order (optional) is_enabled: Enable or disable the rule (optional) exceptions: New exception conditions (optional)

Returns: Updated rule configuration

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
rule_idYes
account_idYes
display_nameNo
conditionsNo
actionsNo
sequenceNo
is_enabledNo
exceptionsNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

Annotations indicate non-destructive and idempotent behavior. The description adds the important behavioral note that user confirmation is recommended, which goes beyond annotation hints. It does not contradict any annotations.

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 reasonably concise and well-structured, using a bullet-like list for parameters and front-loading key information with an icon. It avoids unnecessary elaboration.

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 an update tool with 8 parameters and no nested objects, the description covers the essential purpose, allowed fields, and return value. The presence of an output schema (not shown) reduces the need to describe return format further.

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?

With 0% schema description coverage, the description adds basic semantics for each parameter (e.g., 'New name for the rule (optional)'). However, it lacks details for complex parameters like conditions, actions, and exceptions, which remain opaque.

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 (update) and the resource (an existing message rule). It lists the modifiable properties and distinguishes from sibling tools like emailrules_create or emailrules_delete. The verb+resource combination 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 notes that user confirmation is recommended and that at least one field must be provided. While it doesn't explicitly state when not to use this tool versus alternatives (e.g., emailrules_create for new rules), the context from sibling names makes the distinction clear.

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/robin-collins/m365-mcp'

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