You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: AbeckDev.DbTimetable.Mcp/Services/TimeTableService.cs
+9-7Lines changed: 9 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,8 @@ public TimeTableService(HttpClient httpClient, IOptions<Configuration> config)
17
17
}
18
18
19
19
/// <summary>
20
-
/// Get recent timetable changes for a specific event number
20
+
/// Get recent timetable changes for a specific event number. Recent changes are always a subset of the full changes. They may equal full changes but are typically much smaller.
21
+
/// Data includes only those changes that became known within the last 2 minutes.
/// Get full changes for a station at a specific time
63
+
/// Returns a Timetable object (see Timetable) that contains all known changes for the station given by evaNo.
64
+
/// The data includes all known changes from now on until ndefinitely into the future. Once changes become obsolete (because their trip departs from the station) they are removed from this resource
Copy file name to clipboardExpand all lines: AbeckDev.DbTimetable.Mcp/Tools.cs
+7-7Lines changed: 7 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -23,8 +23,8 @@ public TimetableTools(ITimeTableService timeTableService)
23
23
}
24
24
25
25
[McpServerTool]
26
-
[Description("Get full timetable changes for a specific train event. The data includes all known changes from now on until indefinitely into the future. Once changes become obsolete (because their trip departs from the station) they are removed.")]
27
-
publicasyncTask<string>GetFullTimetableChanges(
26
+
[Description("Get all known timetable changes for the station given by evaNo . The data includes all known changes from now on until indefinitely into the future. Once changes become obsolete (because their trip departs from the station) they are removed.")]
27
+
publicasyncTask<string>GetFullStationChanges(
28
28
[Description("Event number (EVA number) of the train event")]stringeventNo)
29
29
{
30
30
try
@@ -43,7 +43,7 @@ public async Task<string> GetFullTimetableChanges(
43
43
}
44
44
45
45
[McpServerTool]
46
-
[Description("Get station board (departures and arrivals) for a specific station. Returns XML data with train schedules.")]
46
+
[Description("Get station board (departures and arrivals) for a specific station in hourly slices. Returns XML data with train schedules.")]
47
47
publicasyncTask<string>GetStationBoard(
48
48
[Description("EVA station number (e.g., 8000105 for Frankfurt Hauptbahnhof)")]stringevaNo,
49
49
[Description("Date and time in format 'yyyy-MM-dd HH:mm' (UTC). Leave empty for current time.")]string?dateTime=null)
@@ -77,8 +77,8 @@ public async Task<string> GetStationBoard(
77
77
}
78
78
79
79
[McpServerTool]
80
-
[Description("Get all current changes (delays, cancellations, platform changes) for a specific station. Recent changes are always a subset of the full changes. They may equal full changes but are typically much smaller. Data includes only those changes that became known within the last 2 minutes.")]
81
-
publicasyncTask<string>GetStationChanges([Description("EVA station number (e.g., 8000105 for Frankfurt Hauptbahnhof)")]stringevaNo)
80
+
[Description("Get all recent changes (delays, cancellations, platform changes) for a specific station. Recent changes are always a subset of the full changes. They may equal full changes but are typically much smaller. Data includes only those changes that became known within the last 2 minutes.")]
81
+
publicasyncTask<string>GetRecentStationChanges([Description("EVA station number (e.g., 8000105 for Frankfurt Hauptbahnhof)")]stringevaNo)
82
82
{
83
83
try
84
84
{
@@ -96,8 +96,8 @@ public async Task<string> GetStationBoard(
96
96
}
97
97
98
98
[McpServerTool]
99
-
[Description("Get information about stations.")]
100
-
publicasyncTask<string>GetStationDetails([Description("Either a station name (prefix), eva number, ds100/rl100 code, wildcard (*); doesn't seem to work with umlauten in station name (prefix). If unsure use the Station Name e.g. \"Dresden Hbf\" ")]stringpattern)
99
+
[Description("Get information about stations. Returns Name, EVA number and ds100 code for the provided pattern. Can be used to find the EVA station number for a given full text station.")]
100
+
publicasyncTask<string>GetStationInformation([Description("Either a station name (prefix), eva number, ds100/rl100 code, wildcard (*); doesn't seem to work with umlauten in station name (prefix). If unsure use the Station Name e.g. \"Dresden Hbf\" ")]stringpattern)
0 commit comments