calendarAll
Access and manage all calendars within the Routine MCP server to organize schedules, tasks, and notes efficiently.
Instructions
All calendars.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "calendarAll"
}
}Input 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);