Skip to main content
Glama

Update mail

mail_update
Destructive

Update one or many Outlook emails: mark read/unread, flag, replace categories, move, or delete to Deleted Items; use filters to apply changes in bulk.

Instructions

Mark read/unread, flag, replace categories, move, or delete (to Deleted Items) one or many mails.

Give mail_refs, or where to change all matching mails in one call (e.g. all unread Renovate mails). A single move shows the new ref.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "mail_update"
  }
}

Input Schema

NameRequiredDescriptionDefault
flagNoset | clear | complete.
readNotrue = mark read, false = mark unread.
whereNoInstead of refs: update every mail matching this filter.
deleteNoMove to Deleted Items (also discards drafts).
move_toNoTarget folder, e.g. 'Inbox/Projects'.
mail_refsNoOne or more mail refs.
max_itemsNoUpper limit for `where` (default 50).
categoriesNoReplace categories ([] removes all).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.1

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, so the safety profile is covered. The description adds genuinely new behavioral facts: deletion is a soft move to Deleted Items (recoverable rather than permanent), a bulk `where` update hits all matching mail in a single call, and a single move returns the new ref. It does not address what happens when several mutation parameters are combined, or ordering of delete vs. move.

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?

Two sentences, front-loaded with the operation set and followed by the targeting rule. No restatement of the title, no filler; the example is short and does real work.

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 8-parameter destructive mutation tool with no output schema, the description covers what it changes, how targets are selected, and what a move returns. The remaining gaps — mutual exclusivity of delete/move_to, behavior when neither selector is supplied, and the `max_items` cap on bulk runs — are visible in the schema but not connected in prose.

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 each parameter is already documented, which sets the baseline at 3. The description adds one real semantic point beyond the schema — that `mail_refs` and `where` are alternative targeting strategies rather than cumulative — but leaves precedence/conflict handling between `delete`, `move_to`, and `categories` unstated.

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 opens with a specific set of verbs on a specific resource: mark read/unread, flag, replace categories, move, delete. It scopes the operation to 'one or many mails', which separates it cleanly from read-only siblings like mail_read or mail_find without needing their schemas.

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?

It explicitly presents the two invocation modes — pass `mail_refs` for specific messages, or `where` to apply the change to every matching mail in one call — and gives a concrete example ('all unread Renovate mails'). It stops short of stating exclusions or routing rules (e.g. use mail_find first to discover refs, or mail_read to inspect before mutating), so it is clear context rather than full when/when-not guidance.

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