Skip to main content
Glama
icloud-mcp

icloud-mcp

by mcdscot

icloud_search_messages

Read-only

Search an iCloud mailbox and return message summaries newest first, with filters for text, sender, subject, recipients, dates, unseen and flagged status. Use paging to navigate results.

Instructions

Search one mailbox and return message summaries (newest first) with uid, sender, subject, date and flags.

With no filters it lists the most recent messages. Use offset/has_more to page.

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": "icloud_search_messages"
  }
}

Input Schema

NameRequiredDescriptionDefault
textNoSubstring anywhere in headers or body.
limitNo
sinceNoOn or after this date, YYYY-MM-DD.
beforeNoBefore this date, YYYY-MM-DD.
offsetNo
mailboxNoMailbox name, e.g. 'INBOX', 'Archive', 'Sent Messages'. See icloud_list_mailboxes.INBOX
subjectNoSubstring of the subject.
to_addressNoSubstring of the To header.
unseen_onlyNo
flagged_onlyNo
from_addressNoSubstring of the From header.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already cover safety (readOnlyHint) and reach (openWorldHint), and the description adds genuinely new behavioral facts: results are summaries rather than full messages, ordering is newest-first, and paging works through offset/has_more. It stops short of describing result caps or what happens when the mailbox name is invalid.

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 first front-loads scope and return shape, the second covers the default case and paging. No filler or redundant restatement of the title.

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

Completeness3/5

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

With an output schema present and annotations covering safety, the description need not explain return values, and it correctly does not. For an 11-parameter tool with only 64% schema coverage, though, a note on how multiple filters combine and on mailbox-name errors would make it complete.

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 coverage is 64% across 11 parameters; the schema already documents text, since, before, mailbox, subject, to and from matching semantics, and the remaining names (limit, offset, unseen_only, flagged_only) are largely self-explanatory. The description only adds meaning for offset/paging, so it neither compensates for nor undermines the schema — a baseline 3.

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 uses a specific verb+resource ("Search one mailbox") and enumerates the returned fields (uid, sender, subject, date, flags) with ordering (newest first), so the agent knows exactly what it gets. It does not explicitly distinguish itself from siblings such as icloud_get_message or icloud_list_mailboxes, so it falls short of a 5.

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?

"With no filters it lists the most recent messages" usefully documents the no-argument default, and the paging hint gives a usage pattern. However, there is no guidance on when to prefer this over icloud_get_message (single message fetch) or how to combine filters, leaving usage largely implied.

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