Skip to main content
Glama

get_timetable

Read-onlyIdempotent

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

NameRequiredDescriptionDefault
response_formatNomarkdown

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive and open-world behavior, so the safety profile is covered. The description does add value beyond that by documenting failure modes: an "Error: ..." string on API/auth failure and "No timetable entries found." for an empty plan. It stops short of stating caching/freshness or auth requirements, so it is a modest supplement rather than a rich behavioral picture.

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?

Purpose is front-loaded and the error-handling note is useful, but the description embeds a full multi-line JSON return schema even though an output schema already exists, which is significant redundancy. The docstring-style Args/Returns/Error Handling scaffolding adds length without proportional information.

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?

For a single-parameter read tool this covers what an agent needs to call it: what is returned, the two format options, and both failure modes. The return-value block is superfluous given a real output schema exists, and auth/config prerequisites are unstated, but nothing essential to correct invocation is missing.

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

Parameters3/5

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

Only one optional parameter exists and schema coverage is nominally 0%, so the description does carry some weight by stating the accepted values 'markdown' (default) or 'json'. However, this largely duplicates the enum and default already present in the schema, and it explains nothing about how the format affects the response beyond the obvious.

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

Purpose4/5

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

The first sentence names a specific verb and resource ("Return the weekly timetable (Stundenplan) from Lanis") and the second spells out what the data contains: subjects per day/hour, room and teacher. The resource is unambiguous and distinguishable from most siblings, but it never explicitly contrasts with the closely related get_substitution_plan, leaving that boundary to inference.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no when-to-use or when-not-to-use guidance and no named alternative. The phrase "current class timetable" hints that it is scoped to the caller's own class, but nothing states prerequisites (login/auth), whether it can target another class, or how it relates to get_substitution_plan.

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