get_timetable
Retrieve a class's weekly timetable from Lanis, including subjects, days, hours, rooms, and teachers. Use it to check the current schedule or export timetable data as markdown or JSON.
Instructions
Return the weekly timetable (Stundenplan) from Lanis.
Fetches the current class timetable showing which subjects are taught on which day and hour, including room and teacher information.
Args: response_format: Output format - 'markdown' (default) or 'json'.
Returns: Timetable data. JSON schema: { "class_name": str, "valid_from": "YYYY-MM-DD", "entries": [ { "hour": str, # e.g. "erste Stunde" "time": str, # e.g. "08:00 - 08:45" "day": str, # e.g. "Montag" "subject": str, # subject code "room": str, # room number/name "teacher": str, # teacher abbreviation "info": str, # full info from title attribute "duration": int # number of school hours this lesson spans } ] }
Error Handling: - Returns "Error: ..." on API or auth failure - Returns "No timetable entries found." if the timetable is empty
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_timetable"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| response_format | No | markdown |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |