Lanis (Schulportal Hessen)

v1.3.1
io.github.udondan/lanis Checked 3 days ago Published 4 days ago

Unofficial read-only access to Schulportal Hessen: substitutions, timetable, calendar, messages

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

get_schools

List every school in Schulportal Hessen (Lanis) with its ID, name and city. The only tool that works without credentials: use it to find the school ID that LANIS_SCHOOL_ID needs. It returns the whole list, which is long, so search the result for the name or city. Returns "Error: ..." if Lanis can't be reached.

ParameterTypeDescription
response_format'markdown' (default) for text to show to the user, 'json' for data to process further.

get_substitution_plan

Return today's substitution plan (Vertretungsplan): cancelled and changed lessons. Use it for what changes today. For the regular weekly lessons use get_timetable. Each entry has the substitute and the original teacher (abbreviations, get_learning_groups resolves them), the affected hours and class, subject, room and a notice. The JSON also has the date and the general info box of the plan. Returns "No substitutions today (...)" if nothing changes, "No substitution plan published yet." before the school publishes one, and "Error: Session expired..." if the log…

ParameterTypeDescription
response_format'markdown' (default) for text to show to the user, 'json' for data to process further.

get_calendar

Return the school calendar events (Kalender) between two dates. Use it for dates beyond the current month, such as holidays, parent evenings or exams. For the current month, get_calendar_of_month needs no dates. Each event has a title, description, place, start and end and whether it lasts the whole day. Returns "Error: Invalid date format..." for a date that doesn't exist and "No events found between..." if the range has none.

ParameterTypeDescription
end *stringLast day of the range, YYYY-MM-DD (e.g. '2026-01-31').
start *stringFirst day of the range, YYYY-MM-DD (e.g. '2026-01-01').
include_responsiblebooleanAlso fetch the person responsible for each event. Costs one extra request to Lanis per event, so leave it off unless asked.
response_format'markdown' (default) for text to show to the user, 'json' for data to process further.

get_calendar_of_month

Return the school calendar events (Kalender) of the current month. The shortcut for questions about this month. For any other range use get_calendar with start and end. The events have the same fields as those of get_calendar. Returns "No events this month." if the month has none.

ParameterTypeDescription
include_responsiblebooleanAlso fetch the person responsible for each event. Costs one extra request to Lanis per event, so leave it off unless asked.
response_format'markdown' (default) for text to show to the user, 'json' for data to process further.

get_tasks

Return the homework and tasks of 'Mein Unterricht'. Use it for questions about homework or what a teacher assigned. Each task has a title, date, subject, teacher, description, details, the names of its attachments and a download link for all of them as a zip file. Returns "No tasks found." if there are none.

ParameterTypeDescription
response_format'markdown' (default) for text to show to the user, 'json' for data to process further.

get_conversations

Return the newest message threads from 'Nachrichten'. Use it for messages from teachers or the school. Each conversation has its ID, title, teacher, the dates of the first and newest message, whether it is unread, the receivers and the content. Returns "No conversations found." if there are none.

ParameterTypeDescription
numberintegerHow many conversations to fetch, newest first. Each one is a request to Lanis, so keep it small; -1 fetches all.
response_format'markdown' (default) for text to show to the user, 'json' for data to process further.

get_apps

Return every app tile of the user's Lanis dashboard with its link. Use it to find the link to a school app, including those this server can't read. Whether one of the apps these tools read is enabled is answered by get_available_apps (all four) or check_app_availability (one). Each tile has its name, link, colour, icon and the dashboard folders it is in (see get_folders). Returns "No apps found." if the dashboard is empty.

ParameterTypeDescription
response_format'markdown' (default) for text to show to the user, 'json' for data to process further.

get_available_apps

Return which of the apps these tools read are enabled at the user's school. Of Kalender, Mein Unterricht, Nachrichten - Beta-Version and Vertretungsplan, lists those the school offers, so you know which of the calendar, task, conversation and substitution plan tools can work. For a single app use check_app_availability, for all dashboard tiles get_apps. Returns a plain text list, or a message if the school offers none.

get_folders

Return the folders that group the app tiles on the Lanis dashboard. Only needed to show the dashboard's structure: get_apps already names the folders of each app. Each folder has a name, an icon and a colour, which may be empty. Returns "No folders found." if there are none.

ParameterTypeDescription
response_format'markdown' (default) for text to show to the user, 'json' for data to process further.

check_app_availability

Check whether one of the apps these tools read is enabled at the user's school. Use it before a calendar, task, conversation or substitution plan tool fails, or to tell the user why. For all four at once use get_available_apps. Returns a sentence saying whether the app is available, or "Error: Unknown app..." with the valid names.

ParameterTypeDescription
app_name *stringThe app to check, exactly one of: 'Kalender', 'Mein Unterricht', 'Nachrichten - Beta-Version', 'Vertretungsplan'.

get_timetable

Return the regular weekly timetable (Stundenplan) of the user's class. Use it for which lessons take place on which day. It doesn't show today's cancellations or substitutions: get_substitution_plan does. Each lesson has the day, the school hour and its time, subject, room, teacher abbreviation and how many hours it lasts. The JSON also has the class and the date the timetable is valid from. Returns "No timetable entries found." if the school publishes none.

ParameterTypeDescription
response_format'markdown' (default) for text to show to the user, 'json' for data to process further.

get_learning_groups

Return the courses (Lerngruppen) the user is enrolled in, with their teachers. Use it to list the subjects, or to turn a teacher abbreviation from the timetable or the substitution plan into a full name. Each group has its ID, semester, course name and code and the teacher's name with the abbreviation. Returns "No learning groups found." if there are none.

ParameterTypeDescription
response_format'markdown' (default) for text to show to the user, 'json' for data to process further.

get_file_storage

Return one folder of the school's file storage (Dateispeicher). Browse it one level per call: start without folder_id, then pass the ID of a sub-folder. Files that were sent to the user are in get_file_distribution instead. The result has the folder's ID and name, its sub-folders (ID, name, description) and its files (ID, name, description, download link). Returns "No items found in folder..." if the folder is empty.

ParameterTypeDescription
folder_idID of the folder to open, from the folders of an earlier call. Omit it for the top level.
response_format'markdown' (default) for text to show to the user, 'json' for data to process further.

get_file_distribution

Return the files the school sent to the user (Dateiverteilung), such as letters to parents. Use it for announcements and documents shared with the user's groups. The general file storage is get_file_storage. Each file has a name, description, download link and date. Returns "No distributed files available." if there are none.

ParameterTypeDescription
response_format'markdown' (default) for text to show to the user, 'json' for data to process further.

get_votes

Return the votes and elections (Wahlen) that are open at the school. Use it for questions about student council elections and other school votes. It only lists them; voting happens in Lanis itself. Each vote has its ID, title, description and status. Returns "No active votes." if there are none.

ParameterTypeDescription
response_format'markdown' (default) for text to show to the user, 'json' for data to process further.