get_schedule
Retrieve school schedules for a specific date using YYYY-MM-DD format. Access secure, browser-authenticated data through the N Lobby MCP Server.
Instructions
Get school schedule for a specific date (backward compatibility)
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | Date in YYYY-MM-DD format (optional, defaults to today) |
Implementation Reference
- src/server.ts:246-260 (registration)Registration of the 'get_schedule' tool in the ListTools handler, including its input schema (date optional string in YYYY-MM-DD).{ name: "get_schedule", description: "Get school schedule for a specific date (backward compatibility)", inputSchema: { type: "object", properties: { date: { type: "string", description: "Date in YYYY-MM-DD format (optional, defaults to today)", }, }, }, },
- src/server.ts:713-734 (handler)Handler for the 'get_schedule' tool: extracts optional date from args, calls this.api.getScheduleByDate(date), returns JSON stringified schedule or error message with auth instructions.case "get_schedule": try { const { date } = args as { date?: string }; const schedule = await this.api.getScheduleByDate(date); return { content: [ { type: "text", text: JSON.stringify(schedule, null, 2), }, ], }; } catch (error) { return { content: [ { type: "text", text: `Error: ${error instanceof Error ? error.message : "Unknown error"}\n\nTo authenticate:\n1. Login to N Lobby in your browser\n2. Open Developer Tools (F12)\n3. Go to Application/Storage tab\n4. Copy cookies and use the set_cookies tool\n5. Use health_check to verify connection`, }, ], }; }