Skip to main content
Glama
iCloud Mail MCP server

iCloud Mail MCP server

by lachsmith

Mark messages

mark_messages
Idempotent

Mark iCloud Mail messages as read or unread and flagged or unflagged by UID. Omit a field to leave that status unchanged; defaults to the INBOX mailbox.

Instructions

Marks messages read or unread, and flags or unflags them. Omit a field to leave it unchanged.

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": {
      "uids": "<uids>"
    },
    "name": "mark_messages"
  }
}

Input Schema

NameRequiredDescriptionDefault
readNo
uidsYes
flaggedNo
mailboxNoINBOX

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare non-read-only, idempotent, non-destructive, and open-world behavior, so the safety profile is covered. The description adds the useful partial-update semantic ('omit a field to leave it unchanged'), but says nothing about uid limits, mailbox scoping, or how failures on invalid uids are handled.

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 short sentences, the operation is front-loaded, and the partial-update rule follows immediately. No filler.

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?

With no output schema and zero schema description coverage across four parameters, the description should explain the target mailbox, the uid batch limits, and what changes when both flags are supplied. Those gaps are material for a mutation tool.

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

Parameters2/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 parameter meaning. It explains only 'read' and 'flagged' indirectly via 'read or unread' and 'flags or unflags'; the 'uids' array (1-200 entries) and the 'mailbox' parameter with its INBOX default are entirely unaddressed.

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 names specific verbs and state changes: mark read/unread and flag/unflag messages. It clearly distinguishes this from siblings like move_messages or search_messages by describing a state mutation rather than movement or retrieval, though it never explicitly routes the agent away from an alternative.

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

Usage Guidelines3/5

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

The clause 'Omit a field to leave it unchanged' implies partial-update usage, which is a real hint about how to call it. However, there is no explicit statement of when to use this tool versus alternatives such as move_messages, and no prerequisites are mentioned.

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