icloud_check_health
Check iCloud Mail, Calendar, Contacts, and Mac helper in one read-only pass to see which services are reachable, how long each took, and why any sign-in or connection failed.
Instructions
Test every enabled area live in one call (mail sign-in, calendar list, address book, Mac helper) and report which work, how long each took and why any failed.
Use when: a tool failed with a sign-in, connection or timeout error, before telling the owner a service is down. Not for the Mac helper alone (icloud_get_helper_status is instant and shows its queue) or for the time (use icloud_get_time). Parameters: none; it always checks every area enabled on this server. Behavior: read-only. It signs in to IMAP afresh and opens INBOX read-only, lists calendars over CalDAV, reads one address-book entry over CardDAV and reads the helper's status. Areas run in parallel, so it takes as long as the slowest. Failures are reported in the result, never raised. It still answers while the owner has paused the server. Returns: {ok, since_start_seconds, areas, safety_warnings_since_start}, plus paused and a note when paused.
ok is true only when every area passed. Disabled areas are absent from areas.
Each area has ok, ms and, on failure, error (credentials masked).
Per area: mail adds inbox_messages, calendar the calendar count, contacts the contact count, mac_helper its online status.
mail, calendar and contacts add connections: whether kept connections were warm before the check.
safety_warnings_since_start counts how often third-party text looked hostile.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||