Skip to main content
Glama

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
NameRequiredDescriptionDefault
dateYes

Implementation Reference

  • 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, }; } }
  • 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, }; } } );

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/routineco/mcp-server'

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