Skip to main content
Glama

get_todays_events

Retrieve all Network School calendar events scheduled for today to stay informed about daily activities and opportunities.

Instructions

Get all Network School events happening today

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • src/index.ts:45-52 (registration)
    Registration of the 'get_todays_events' tool in the list_tools handler, including name, description, and input schema.
    { name: 'get_todays_events', description: 'Get all Network School events happening today', inputSchema: { type: 'object', properties: {}, }, },
  • Input schema for get_todays_events tool: empty object (no parameters).
    inputSchema: { type: 'object', properties: {}, },
  • Core handler logic: fetches all events via LumaClient, filters for today using filterTodaysEvents, formats with formatEventsList, returns formatted text response.
    case 'get_todays_events': { const response = await lumaClient.fetchEvents(); const todaysEvents = filterTodaysEvents(response.entries); const formatted = formatEventsList( todaysEvents, 'No events scheduled for today.' ); return { content: [ { type: 'text', text: formatted, }, ], }; }
  • Helper function to filter events occurring today using date-fns isToday check.
    export function filterTodaysEvents(entries: LumaEntry[]): LumaEntry[] { return entries.filter(entry => { const startDate = parseISO(entry.event.start_at); return isToday(startDate); }); }
  • Helper function to format a list of events into a readable markdown bullet-point list, or return empty message.
    export function formatEventsList(entries: LumaEntry[], emptyMessage: string = 'No events found.'): string { if (entries.length === 0) { return emptyMessage; } return entries.map(entry => formatEvent(entry)).join('\n\n'); }

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/tHeMaskedMan981/ns-mcp'

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