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)",
        },
      },
    },
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries the full burden. It mentions 'backward compatibility,' hinting at legacy behavior, but doesn't disclose critical traits like authentication requirements, rate limits, error handling, or what happens if no schedule exists for the date. For a tool with no annotation coverage, this leaves significant gaps in understanding its behavior.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, efficient sentence that front-loads the core purpose ('Get school schedule for a specific date') and adds a useful note on backward compatibility. Every word earns its place, with no wasted text or redundancy.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's low complexity (1 optional parameter, no output schema, no annotations), the description is minimally adequate. It covers the basic purpose but lacks details on authentication, error cases, or return format, which are important for a tool interacting with school data. Without annotations or output schema, more context would improve completeness.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, with the parameter 'date' fully documented in the schema as optional with a default to today in YYYY-MM-DD format. The description adds minimal value beyond this, only implying date specificity without providing additional syntax or format details. Baseline 3 is appropriate when the schema does the heavy lifting.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the verb ('Get') and resource ('school schedule'), specifying it's for a specific date. It distinguishes from siblings like get_calendar_events by focusing on school schedules rather than general calendar events. However, it doesn't explicitly differentiate from get_required_courses, which might be related.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies usage for retrieving school schedules on specific dates, with the backward compatibility note suggesting it might be a legacy endpoint. It doesn't provide explicit guidance on when to use this versus alternatives like get_calendar_events or get_required_courses, nor does it mention prerequisites like authentication.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

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-cli'

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