Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

No arguments

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
db_search_stationA

Find Deutsche Bahn stations by name. Call this only when a name is ambiguous or another tool rejected it; the other tools accept plain station names directly. Returns name, EVA number (eva), products served, and the full bahn.de id (also accepted by other tools).

db_journeysA

Plan train connections between two stations with live bahn.de data.

Each connection: dep/arr (real-time; '(+7)' = 7 min late, '(+1d)' = next day), duration, changes, price in EUR for the given travellers/BahnCard (None with Deutschlandticket), load (occupancy) per class, recon_token (pass to db_journey_offers for Sparpreis/Flexpreis breakdown), and per leg: line, platforms (real-time, with *_platform_changed), stops count, amenities (WiFi, bike, step-free…), cancellations, journey_id (pass to db_trip_details), and disruption notes. A journey flagged alternative is DB's re-route around a disruption.

db_journey_offersA

All fares bahn.de offers for ONE specific connection (Super Sparpreis, Sparpreis, Flexpreis, regional day tickets…) with price and class, re-checked live. Use after db_journeys when the user asks 'how much' or 'cheapest ticket'. Prices are informational, not a booking.

db_best_priceA

Bestpreissuche: the cheapest available fare in each time band of a day (00–07, 07–10, 10–13, 13–16, 16–19, 19–24) with the connection it applies to. Use for 'when is it cheapest to go'. Typically only meaningful for long-distance routes booked in advance.

db_departuresA

Live departure board: time (real-time, with delay), line, destination, platform (real-time, platform_changed flag), cancellation, disruption notes, and journey_id for db_trip_details.

db_arrivalsC

Live arrival board, same shape as db_departures (direction = origin).

db_trip_detailsA

Every stop of one specific train run with scheduled and real-time arrival/departure, platform (real-time), load, and notes — i.e. 'where is this train now, is my stop still served, which platform at my stop'. Also returns train amenities and running days.

db_nearbyA

Stations and stops around a GPS position — 'stations near me'. Returns name, EVA number, products, and the bahn.de id usable in every other tool.

db_train_formationA

Coach order and platform sectors for a long-distance train at a station: which sector (A–G) 1st class, bistro, bike and quiet coaches stop at, and the real-time platform. Answers 'where do I stand on the platform'. ICE/IC/EC only; not available for regional trains.

Prompts

Interactive templates invoked by user choice

NameDescription
plan_tripGuided trip planning: connections, then fares, then platform advice.

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/capraCoder/db-fahrplan-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server