Skip to main content
Glama

getLists

Retrieve and manage lists from Apple Reminders using natural language commands. View, organize, and interact with reminders directly through the MCP server interface.

Input Schema

NameRequiredDescriptionDefault

No arguments

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": {}, "type": "object" }

Implementation Reference

  • The handler function for the MCP 'getLists' tool. It fetches the lists using the reminders helper and returns a JSON-formatted text response, handling errors appropriately.
    async () => { try { const lists = await reminders.getRemindersLists(); return { content: [{ type: "text", text: JSON.stringify({ lists }) }] }; } catch (error) { return { content: [{ type: "text", text: JSON.stringify({ error: "Failed to get reminder lists" }) }], isError: true }; } }
  • Empty input schema indicating the 'getLists' tool takes no parameters.
    {},
  • src/index.ts:13-35 (registration)
    Registration of the 'getLists' tool on the MCP server using server.tool(), specifying name, schema, and handler.
    server.tool( "getLists", {}, async () => { try { const lists = await reminders.getRemindersLists(); return { content: [{ type: "text", text: JSON.stringify({ lists }) }] }; } catch (error) { return { content: [{ type: "text", text: JSON.stringify({ error: "Failed to get reminder lists" }) }], isError: true }; } } );
  • Helper function that retrieves all reminder list names using the 'node-reminders' library and is called by the tool handler.
    export async function getRemindersLists(): Promise<string[]> { try { const lists = await reminders.getLists(); return lists.map(list => list.name); } catch (error) { console.error('Failed to get reminder lists:', error); throw new Error(`Failed to get reminder lists: ${error}`); } }

Other Tools

Related 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/shadowfax92/apple-reminders-mcp'

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