eventTimeline
Generate an agenda view for a specific day using the Routine MCP server. Input a date to organize and manage events, tasks, and calendar details effectively.
Instructions
Agenda view for a day.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | Yes |
Implementation Reference
- src/tools.ts:157-175 (handler)Handler function that sends an RPC request to 'event.timeline' with the provided date tuple and returns the JSON-stringified response as text content, or an error message if failed.async ({ date }) => { try { const data = await sendRpcRequest("event.timeline", [date]); return { content: [{ type: "text", text: JSON.stringify(data, null, 2) }], }; } catch (error) { logger.error("Error fetching event.timeline: %o", error); return { content: [ { type: "text", text: `Error fetching auth id: ${error instanceof Error ? error.message : String(error)}`, }, ], isError: true, }; } }
- src/tools.ts:155-155 (schema)Zod input schema defining 'date' as a tuple of three integers representing year, month, and day.*/ date: z.tuple([z.number().int(), z.number().int(), z.number().int()]),
- src/tools.ts:150-176 (registration)MCP server.tool registration for 'eventTimeline', including description, input schema, and handler function."eventTimeline", "Agenda view for a day.", { /* {"items":[{"$schema":"https://json-schema.org/draft/2019-09/schema","type":"integer"},{"$schema":"https://json-schema.org/draft/2019-09/schema","type":"integer"},{"$schema":"https://json-schema.org/draft/2019-09/schema","type":"integer"}],"$id":"#date","$schema":"https://json-schema.org/draft/2019-09/schema","type":"array"} */ date: z.tuple([z.number().int(), z.number().int(), z.number().int()]), }, async ({ date }) => { try { const data = await sendRpcRequest("event.timeline", [date]); return { content: [{ type: "text", text: JSON.stringify(data, null, 2) }], }; } catch (error) { logger.error("Error fetching event.timeline: %o", error); return { content: [ { type: "text", text: `Error fetching auth id: ${error instanceof Error ? error.message : String(error)}`, }, ], isError: true, }; } } );