MCP server for fetching Jerusalem light rail schedules
This server has basic tool definitions with inconsistent quality. Tool naming is action-verb compliant (get-, find-, search-), but descriptions are sparse and vary wildly in depth. Parameter schemas are present with Zod declarations, but several parameters lack proper descriptions or constraints. Output schemas are not documented. Error handling exists but is minimal and not recovery-oriented. The server implements 4 READ_ONLY tools for a Jerusalem light rail schedule API. No critical security issues (no secrets exposed), but description quality and output documentation fall well below production standards.
Find a station ID by its Hebrew name
Get all light rail stations and their IDs
Get the train schedule between two stations
Search for trains between two stations using Hebrew station names
Incomplete output schema documentation. Tools fetch from external API and return raw JSON wrapped in generic 'content' fields. LLMs cannot infer return structure, missing documented schemas for stations, schedule results, train data, and error cases.
Tool descriptions are too brief and lack WHEN/WHY context. 'Get all light rail stations and their IDs' (47 chars) doesn't explain when to use this vs find-station, or what fields the response contains. Descriptions should be 50-200 chars with actionable context.
Parameter descriptions are inconsistent. 'get-stations' has empty input schema (no description). 'find-station' describes stationName as 'The Hebrew name of the station' (52 chars) but doesn't clarify that names must be exact matches or if partial matching is supported. 'get-train-schedule' parameter 'fromStationId' has type 'string|number' without explaining when to use which, or that both must be the same type in a single call.
Inferred effective spec: <=2025-11-25.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-22 | F | 46 | <=2025-11-25 | v2 |
| 2026-03-09 | D | 52 | - | v1 |
No enum constraints for date/time parameters. 'get-train-schedule' accepts date (YYYYMMDD) and time (HHMM) as free-form strings with no validation. LLMs will hallucinate invalid formats like '2024-01-15' or '15:30'. Should declare regex patterns or use proper date/time types with parsing guidance.
Error handling is minimal and not recovery-oriented. Catch blocks return generic error text like 'Failed to fetch stations: <error.message>'. No guidance on retryability, user action, or alternatives. Example: 'lא נמצאה תחנה בשם...' error suggests station wasn't found but doesn't tell LLM to call find-station or get-stations first.
Parameter dependencies undocumented. 'search-trains-by-name' accepts optional clientTime and fromStationName/toStationName but doesn't explain: Is clientTime required to resolve 'current time' defaults? What timezone is assumed? Does clientTime override the server's clock? LLMs will guess.
No pagination support documented. Tools return arrays (stations, schedules) with no limit/offset/page parameters. If Jerusalem light rail has 30+ stations or multiple schedule results, responses could inflate context. No indication of maximum result size.
Inconsistent parameter naming conventions. 'get-train-schedule' uses camelCase (fromStationId, toStationId, hour) but the API body serializes to snake_case (fsid, tsid, hour). The description mentions 'hour' but the tool title suggests 'time', ambiguous for LLM.