Skip to main content
Glama

get_schedule

Retrieve school schedule information for a specific date from the N Lobby portal. Provide a date in YYYY-MM-DD format to access class timings and events.

Instructions

Get school schedule for a specific date (backward compatibility)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dateNoDate 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 ListToolsRequestSchema handler, including its description and input schema definition.
    {
      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)",
          },
        },
      },
    },
  • Handler implementation for the 'get_schedule' tool that parses input arguments, calls the API method this.api.getScheduleByDate(date), and returns the schedule data as JSON text or an error message.
    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`,
            },
          ],
        };
      }
  • Input schema definition for the 'get_schedule' tool, specifying the optional 'date' parameter.
        date: {
          type: "string",
          description:
            "Date in YYYY-MM-DD format (optional, defaults to today)",
        },
      },
    },

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/minagishl/nlobby-mcp'

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