Skip to main content
Glama

Get DSBmobile Substitution Plans

get_timetables
Read-onlyIdempotent

Retrieve all available DSBmobile substitution plan entries with titles, last-updated timestamps, and links to each plan's HTML table and preview image.

Instructions

Retrieves all available substitution plan (Vertretungsplan) entries from DSBmobile.

Returns a list of substitution plan entries, each with:

  • id: Unique identifier for the plan entry

  • title: Plan name (e.g., "Vertretungen-heute" for today's substitutions)

  • date: Last updated timestamp in DD.MM.YYYY HH:MM format

  • url: URL to the HTML page containing the actual substitution plan table

  • previewUrl: URL to a preview image of the plan (optional)

The substitution plan HTML pages contain the detailed schedule showing which classes have substitutions, which teachers are replaced, which rooms are used, etc. The HTML format varies by school, so the URL is returned for further processing.

Use this tool when:

  • A user wants to know which plans are published and when they were last updated

  • A user wants the link to a plan or its preview image

For questions about the substitutions themselves ("Do I have any substitutions today?", teacher absences, cancelled lessons, room changes), use get_substitutions, which reads the plans and returns the entries.

Returns "No substitution plans available" if no plans are currently published.

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_timetables"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.5.0

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, openWorld and non-destructive, so the safety profile is covered; the description still adds real value beyond that with the empty-state string ('No substitution plans available'), the authentication-failure condition referencing DSB_USERNAME/DSB_PASSWORD, and the service-unavailable error case, none of which any structured field exposes. The one gap is that it never mentions pagination or how many plans a typical call returns, which for an 'all entries' listing is worth a sentence.

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

Conciseness4/5

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

Front-loaded with the core action and the return shape, then usage routing, then error handling in a clearly labelled block. The school-varying HTML explanation earns its place because it tells the caller why a URL rather than parsed data comes back, but the response-field list and the prose paragraph overlap slightly in restating that the pages contain the schedule detail.

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

Completeness5/5

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

There is no output schema, so the description carries the burden of documenting return fields, and it does so fully, including which fields are optional. With annotations covering the safety profile and an explicit sibling-routing rule, an agent has everything needed to call this correctly and interpret the result.

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?

The tool takes zero parameters, so there is no argument semantics to explain; the description instead spends its space on return-field semantics, which is the correct substitute. Baseline for a 0-parameter tool is met without any misleading parameter language.

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?

States a specific verb and resource (retrieve substitution plan entries from DSBmobile) and immediately lists exactly what each entry contains (id, title, date, url, previewUrl). It also explicitly distinguishes itself from get_substitutions, so an agent can tell the two apart without opening either schema.

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

Usage Guidelines5/5

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

Provides an explicit 'Use this tool when' block covering the two legitimate cases (listing published plans and their timestamps, and obtaining plan/preview links), plus an explicit hand-off rule for questions about the substitutions themselves. That is an unambiguous when/when-not split with a named alternative.

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