Skip to main content
Glama
adamzaidi

icloud-mcp

by adamzaidi

list_calendars

Retrieve all calendars from iCloud Calendar, including calendar IDs, names, and supported event types for organization and management.

Instructions

List all calendars in iCloud Calendar (e.g. Personal, Work, LSAT PREP). Returns calendarId, name, and supported event types.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The function listCalendars performs a PROPFIND request to the calendar home set to discover available calendars.
    export async function listCalendars() {
      const { dataHost, calendarsPath } = await discover();
    
      const body = propfindBody(`
        <A:resourcetype/>
        <A:displayname/>
        <A:sync-token/>
        <C:supported-calendar-component-set xmlns:C="urn:ietf:params:xml:ns:caldav"/>
      `);
    
      const resp = await davRequest('PROPFIND', `${dataHost}${calendarsPath}`, {
        depth: 1,
        contentType: 'application/xml; charset=utf-8',
        body,
      });
    
      const calendars = parseCalendarBlocks(resp.body);
      return { calendars, count: calendars.length };
    }
Behavior3/5

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

No annotations are provided, so the description carries full burden. It discloses return fields (calendarId, name, supported event types) which compensates for the missing output schema. However, it omits safety characteristics (read-only), idempotency, or rate limiting that would help an agent understand operational constraints.

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 efficiently structured sentences with zero waste. First sentence establishes scope with examples; second sentence discloses return values. Information is front-loaded and appropriately sized for the tool's simplicity.

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?

Given the tool's low complexity (no parameters, simple list operation) and absence of output schema, the description adequately covers return values. It could be improved by noting that no authentication parameters are required (since iCloud auth is implicit), but this is sufficient for agent selection.

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

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema contains zero parameters. According to scoring rules, 0 parameters establishes a baseline score of 4. The description does not need to compensate for parameter documentation gaps.

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 description uses specific verb 'List' with resource 'calendars' and context 'iCloud Calendar'. Examples (Personal, Work, LSAT PREP) clarify scope. It clearly distinguishes from sibling 'list_events' by targeting calendar containers rather than individual events.

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 description implies usage through the return value disclosure (calendarId), suggesting it's for discovering available calendars. However, it lacks explicit guidance on when to use this versus 'list_events' or prerequisites like 'use this first to get calendarIds before creating events'.

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/adamzaidi/icloud-mcp'

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