calendarAll
Access and manage all calendars within the Routine MCP server to organize schedules, tasks, and notes efficiently.
Instructions
All calendars.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools.ts:26-44 (handler)Handler implementation for the 'calendarAll' MCP tool. It sends an RPC request to 'calendar.all' with no parameters, returns the JSON-stringified response as text content, and handles errors by logging and returning an error message.server.tool("calendarAll", "All calendars.", {}, async ({}) => { try { const data = await sendRpcRequest("calendar.all", []); return { content: [{ type: "text", text: JSON.stringify(data, null, 2) }], }; } catch (error) { logger.error("Error fetching calendar.all: %o", error); return { content: [ { type: "text", text: `Error fetching auth id: ${error instanceof Error ? error.message : String(error)}`, }, ], isError: true, }; } });
- src/tools.ts:26-44 (registration)Registration of the 'calendarAll' tool using server.tool within the registerServerTools function.server.tool("calendarAll", "All calendars.", {}, async ({}) => { try { const data = await sendRpcRequest("calendar.all", []); return { content: [{ type: "text", text: JSON.stringify(data, null, 2) }], }; } catch (error) { logger.error("Error fetching calendar.all: %o", error); return { content: [ { type: "text", text: `Error fetching auth id: ${error instanceof Error ? error.message : String(error)}`, }, ], isError: true, }; } });
- src/index.ts:234-235 (registration)Invocation of registerServerTools, which registers all tools including 'calendarAll' on the MCP server.registerServerTools(server, sendRpcRequest, logger);