Skip to main content
Glama
iCloud Mail MCP server

iCloud Mail MCP server

by lachsmith

Get thread

get_thread
Read-only

Retrieves the full email conversation for a given message UID, oldest first, across inbox, sent mail, and archive, with quoted history removed and up to 20 messages.

Instructions

Returns the conversation a message belongs to, oldest first, looking in the inbox, sent mail and the archive. Quoted history is removed from each message. At most 20 messages.

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": {
      "uid": "<uid>"
    },
    "name": "get_thread"
  }
}

Input Schema

NameRequiredDescriptionDefault
uidYesUid of any message in the conversation.
mailboxNoINBOX

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations only cover readOnly and openWorld safety; the description adds substantive behavior beyond them — search scope across inbox, sent mail and archive, quoted-history stripping, ordering, and a 20-message cap. It omits how to retrieve beyond the cap, but that is a modest gap.

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?

Three short sentences, front-loaded with the return value and scope, then ordering, then cleaning and size limit. No filler.

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?

With no output schema, the description usefully covers return ordering, content normalization, and truncation. It leaves open what happens when the thread spans mailboxes and whether truncation is recoverable, which matters for a 2-parameter tool with a hard cap.

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 50%: uid is documented but mailbox has no description, and the prose ('looking in the inbox, sent mail and the archive') arguably muddies rather than clarifies what the mailbox parameter restricts. It adds context on the result span but does not explain the mailbox argument.

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?

States a specific verb and resource ('Returns the conversation a message belongs to'), which is clearly distinct from get_message returning a single message. It does not explicitly name or route against any sibling, so it falls short of the top mark.

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?

Usage is only implied: an agent can infer this is the tool for fetching full thread context rather than one message. There is no explicit when-to-use, when-not-to-use, or named alternative.

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