Skip to main content
Glama

update_email_status

Mark emails as read/unread or flag/unflag them in Apple Mail using filters like subject, sender, or age, or by specifying exact message IDs.

Instructions

Update email status - mark as read/unread or flag/unflag emails.

When message_ids is provided, uses exact ID matching (ignores other filters). Otherwise filters by subject, sender, and/or age.

Args: account: Account name (e.g., "Gmail", "Work") action: Action to perform: "mark_read", "mark_unread", "flag", "unflag" subject_keyword: Optional keyword to filter emails by subject subject_keywords: Optional list of subject keywords; matches any keyword sender: Optional sender to filter emails by mailbox: Mailbox to search in (default: "INBOX") max_updates: Maximum number of emails to update (safety limit, default: 10) apply_to_all: Must be True to allow updates without any filter message_ids: Optional list of exact Mail message ids for precise targeting older_than_days: Optional age filter - only update emails older than N days

Returns: Confirmation message with details of updated emails

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
accountYes
actionYes
subject_keywordNo
subject_keywordsNo
senderNo
mailboxNoINBOX
max_updatesNo
apply_to_allNo
message_idsNo
older_than_daysNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

With no annotations provided, the description carries the full burden and discloses important behavioral traits: the precedence of message_ids over filters, the safety limit of max_updates (default 10), and the apply_to_all guardrail requirement. It also describes the return value. It does not mention error handling behavior or idempotency characteristics.

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 follows a logical docstring structure with purpose upfront, followed by behavioral logic, then detailed Args, and finally Returns. It is appropriately sized for the complexity (10 parameters with zero schema documentation), though the Args section contains some repetitive 'Optional' qualifiers that could be tightened.

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 mutation tool with 10 parameters, no annotations, and zero schema coverage, the description successfully documents all inputs and the filtering logic. The mention of output schema existence satisfies return value needs. Minor gaps remain regarding error scenarios (e.g., invalid message_ids) and atomicity guarantees.

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?

Given 0% schema description coverage, the Args section comprehensively compensates by documenting all 10 parameters with semantics, examples (e.g., 'Gmail', 'Work' for account), and valid values (e.g., 'mark_read', 'flag' for action), adding essential meaning absent from the structured schema.

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 opening sentence clearly states the specific action (update email status) and the exact operations supported (mark as read/unread or flag/unflag), distinguishing it from sibling tools like compose_email or move_email which handle different email operations.

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 provides clear internal logic for when to use message_ids (exact ID matching that ignores other filters) versus when to use filtering parameters (subject, sender, age). However, it does not explicitly contrast with sibling alternatives to guide selection between this and tools like manage_trash or move_email.

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/patrickfreyer/apple-mail-mcp'

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