Skip to main content
Glama

get_substitution_plan

Read-onlyIdempotent

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

NameRequiredDescriptionDefault
response_formatNomarkdown

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/openWorld/non-destructive, so the safety bar is low, and the description adds genuinely new behavior: the three concrete error strings (expired session, no substitutions, plan not published yet). The session-expiry message hints at an auth prerequisite without fully spelling out how to renew, which keeps it from a 5.

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

Conciseness3/5

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

The purpose and args are correctly front-loaded, but the response is then documented twice — a bullet list of fields followed by a full JSON schema block — even though an output schema already exists. That duplication bloats the definition without adding selecting or invoking value.

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

Completeness4/5

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

Coverage is complete for what an agent needs: scope, the one parameter, and all failure modes are stated. The only deficiency is over-completeness on return values, which the output schema already provides and which the description redundantly restates.

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

Parameters4/5

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

Schema description coverage is reported as 0% for the single parameter, so the description must carry the load, and it does: it explains that response_format selects 'markdown' (default, human-readable) versus 'json' (machine-readable). That meaningfully exceeds the schema's terse enum description.

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

Purpose5/5

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

The opening sentence names a specific verb (Return), a specific resource (today's substitution plan / Vertretungsplan), the source (Lanis), and the temporal scope (current school day). It also lists the covered fields (class, subject, room, teacher/substitute, notices), so an agent can distinguish it from get_timetable or get_tasks immediately.

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 'today's' / 'current school day' framing implicitly tells the agent this tool cannot retrieve other dates, which is useful scoping. However, there is no explicit when-to-use versus when-not guidance and no mention of prerequisites such as an active Lanis session, so usage is only implied.

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