MCP server for Melbourne public transport, answering schedule questions from Victoria's published GTFS feed with optional realtime delays
ptv-mcp demonstrates solid fundamentals: all 10 tools have clear verb-noun naming (find_stop, next_departures, plan_trip) and substantive descriptions (avg 120 chars). Input schemas are present with typed parameters and descriptions. However, output schemas are entirely undocumented, the code shows tool implementations but no structured response definitions visible to LLMs. Error handling is minimal (basic 'not found' messages, no recovery guidance). Parameter descriptions lack format constraints (e.g., 'when' accepts 'HH:MM' but this is stated in prose, not as a regex or enum). The resolveStop() helper shows good UX design (accepts name OR id, returns alternatives on mismatch), but this pattern is not consistently applied across all tools. No tool annotations (readOnlyHint/destructiveHint) despite 9 READ_ONLY and 1 WRITE tool.
Compare departures from multiple stops to help choose the best one
Check the status of the GTFS database: when it was built, its size, and whether a rebuild is in progress
Find a station or stop by name and return its id. Always call this before any tool that needs a stop id: ids are not guessable.
Find the last service of the day from a stop, useful for planning evening trips
Get all stops a service calls on a particular leg of a journey
List the next departures from a stop, with live delays if available
Plan a trip from one location to another, returning multiple journey options with transfers and live delays
Output schemas completely undocumented. No visible response type definitions for any tool. LLMs cannot plan downstream calls or extract required fields (e.g., stop_id from find_stop results).
No tool annotations (readOnlyHint/destructiveHint). rebuild_database is WRITE but unmarked; 9 READ_ONLY tools lack explicit hints. LLMs cannot distinguish safe from unsafe operations.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | D | 58 | 2026-07-28+ | v2 |
Trigger a rebuild of the GTFS database from the latest feed. Rebuilds happen in the background and do not block other tools.
Get current service alerts and disruptions affecting routes or stops
Find stops near a location, grouped by transport mode
Parameter format constraints stated in prose, not machine-parseable. 'when' param accepts 'HH:MM' but no regex/pattern. 'limit' params unbounded (no min/max). LLMs may pass invalid values.
Error handling lacks recovery guidance. 'no stop matching X' is bare; should suggest 'Try find_stop with a partial name' or list alternatives.
Pagination not documented. Tools like next_departures and service_alerts accept 'limit' but no offset/cursor or total_count in response. Large result sets risk context window exhaustion.