get_substitution_plan
Fetches today's school substitution plan from Lanis, listing affected classes, subjects, rooms, teachers, substitute teachers, and notices as markdown or JSON.
Instructions
Return today's substitution plan (Vertretungsplan) from Lanis.
Fetches all substitutions for the current school day including class, subject, room, teacher/substitute, and any notices.
Args: response_format: Output format - 'markdown' (default, human-readable) or 'json' (machine-readable).
Returns: Substitution plan data with the following structure per substitution: - substitute: Abbreviation of the substitute teacher - teacher: Abbreviation of the original teacher - hours: Which school hours are affected (e.g. "3-4") - class_name: Affected class(es) - subject: Subject name (may be empty) - room: Room number/name - notice: Additional information
JSON schema:
{
"date": "YYYY-MM-DD",
"info": str, # General info box ("Allgemein"), may be empty
"substitutions": [
{
"substitute": str,
"teacher": str,
"hours": str,
"class_name": str,
"subject": str,
"room": str,
"notice": str
}
]
}Error Handling: - Returns "Error: Session expired..." if session needs renewal - Returns "No substitutions today." if there are none - Returns "No substitution plan published yet." before Lanis publishes one
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_substitution_plan"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| response_format | No | markdown |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |