Skip to main content
Glama

update_mail_status

Destructive

Mark Mail messages as read or unread and flag or unflag them, optionally with a colour, by passing message IDs; dry-run previews changes.

Instructions

Mark Mail messages read/unread and flag/unflag them, optionally with a colour.

ids are RFC822 message-ids from a mail read, comma-separated; max 25 per call. mailbox is OPTIONAL and is the disambiguator: pass the folder value from the SAME read back VERBATIM (an opaque imap://<uuid>/<path> token) and the whole batch is addressed directly; omit it and each id is resolved through Mail's index (Full Disk Access), which also lets one call span several mailboxes. At least one of read, flagged or flag_color is required. flag_color is a name — red/orange/yellow/green/blue/purple/grey — and setting one implies flagged. dry_run defaults to FALSE: this changes two booleans, destroys nothing, and re-issuing it with the opposite value is the undo — so it does not use the backup plane that move_mail does. Each message is re-read after the write, so the per-id results report what actually persisted. Destructive (it modifies stored messages); needs Automation access for Mail.

Input Schema

NameRequiredDescriptionDefault
idsYes
readNo
dry_runNo
flaggedNo
mailboxNo
flag_colorNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.15.1

TDQS

A4.9/5.0
Behavior5/5

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

Annotations declare destructiveHint=true, and the description goes well beyond that: it explains that only two booleans change, that nothing is destroyed, that re-issuing the opposite value is the undo, that it skips the backup plane move_mail uses, that messages are re-read so `results` reflect what actually persisted, and that Automation access is required. That is unusually rich disclosure of write semantics and failure/verification behaviour.

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?

Purpose is front-loaded and almost every sentence adds actionable information. The middle paragraph is dense and chains multiple facts per sentence, which makes it harder to scan than a short bulleted structure, but there is no filler to cut.

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

Completeness5/5

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

The tool is a batch mutation with 6 parameters, an output schema and annotations; the description covers id format, batching limit, the mailbox disambiguation trade-off, the required-field invariant, colour semantics, undo story, persistence verification and permissions. An agent has everything needed to call it correctly.

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

Parameters5/5

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

Schema description coverage is 0%, so the description must carry all meaning and it does: `ids` is RFC822 message-ids from a prior read, comma-separated, max 25; `mailbox` is an opaque imap://<uuid>/<path> token taken verbatim; `flag_color` enumerates the allowed names and implies flagged; `dry_run` defaults to false. Every parameter is given semantics the bare schema lacks.

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 first clause names a specific verb pair and resource: 'Mark Mail messages read/unread and flag/unflag them.' The scope (status booleans + optional flag colour) is distinct from siblings like move_mail, trash_mail and mail_search, so an agent can route without opening the schema.

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

Usage Guidelines5/5

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

It states exactly when to pass `mailbox` (copy the `folder` token verbatim from the same read) versus when to omit it (each id resolved through Mail's index, allowing a multi-mailbox batch). It also gives the precondition 'at least one of read, flagged or flag_color is required' and explicitly contrasts itself with move_mail's backup plane.

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