Get DSBmobile Substitution Entries
get_substitutionsFetches and parses DSBmobile substitution plans, returning structured entries by class so users can check cancellations, replacements, teachers, periods, rooms, and notes.
Instructions
Fetches and parses the actual substitution plan (Vertretungsplan) pages from DSBmobile, returning structured substitution entries for each class.
Returns a list of substitution plans (one per day), each containing:
date: ISO date string (e.g., "2026-03-20")
lastUpdated: When the plan was last updated
entries: Array of substitution entries, each with:
className: The class (e.g., "05b", "Q2_Kra")
type: Substitution type (e.g., "Vertretung", "Statt-Vertretung", "Entfall")
period: Lesson period(s) (e.g., "3" or "5 - 6")
originalTeacher: Abbreviation of the absent teacher
substituteTeacher: Abbreviation of the substitute teacher
subject: Subject abbreviation (e.g., "SPO", "ETHI", "E")
originalRoom: Original room
substituteRoom: Substitute room
text: Additional notes
Use this tool when:
A user asks "Do I have any substitutions today?"
A user wants to know which teacher is substituting for whom
A user asks "Is lesson X cancelled?"
A user wants to filter substitutions by class name
This tool downloads and parses all plan pages, which may take a few seconds. For just the list of plan URLs, use get_timetables instead.
The className parameter is optional. If omitted, the DSB_CLASS environment variable is used as the default filter. If neither is set, all classes are returned. If the filter matches no entries, the plans are still returned with empty entries and totalEntries 0. If no plans are published, plans is an empty list.
Error handling:
Returns an error message if authentication fails (check DSB_USERNAME and DSB_PASSWORD)
Returns an error message if the DSBmobile service is unavailable
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_substitutions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| className | No | Optional: filter results to a specific class name (e.g. '05b', 'Q2_Kra'). Case-insensitive. Defaults to the DSB_CLASS environment variable if set. |