mcp-lad-lviv-ua
Timetable API Node
リヴィウの交通機関時刻表データのためのExpressベースのAPI。読み取り専用のMCPエンドポイントを備えています。
要件
Node.js 22 (
.nvmrcを参照)
Related MCP server: GTFOBins MCP Server
ローカルでの実行
nvm use
make startテスト
nvm use && make testMCPサーバー
このサービスは、Streamable HTTP経由で公開読み取り専用のMCPエンドポイントを公開します。
MCPエンドポイント:
/mcpサーバーカード:
/.well-known/mcp/server-card.json発見ヒント:
/robots.txt(非標準のコメントヒント)
本番環境へのデプロイ(Cloud Run用の cloudbuild.yaml を参照)では、api.lad.lviv.ua から RESTおよびMCP を提供します。メインサイトの lad.lviv.ua は公共交通機関のウェブサイトです(このリポジトリは、APIホスト用ではなく、人々のためのHTMLサイトマップやテーブルとしてそこへリンクしています)。ローカルで実行する場合は、独自のオリジンを使用してください。
LLMと /mcp フロー
MCPクライアント(Claude、Cursor、またはMCP SDK)は、Streamable HTTP を介して POST /mcp にJSON-RPCで通信します。ツールハンドラーは、LokiJS の時刻表データ、GTFS SQLite(gtfs経由)、および ライブGTFS-RT フィード(例:track.ua-gis.com)によってサポートされるREST APIと同じExpressアクションを再利用します。
graph LR;
Client[LLM or MCP client] -->|JSON-RPC Streamable HTTP| Mcp["POST /mcp"];
Mcp --> Tools[Tool handlers];
Tools --> Actions[Express actions];
Actions --> Loki[(LokiJS)];
Actions --> Gtfs[(GTFS SQLite)];
Actions --> Rt[GTFS-RT upstream];
Loki --> Actions;
Gtfs --> Actions;
Rt --> Actions;
Actions --> Tools;
Tools --> Mcp;
Mcp -->|MCP tool result| Client;ライブAPIを試す
MCP Inspector (ローカル): npx @modelcontextprotocol/inspector を実行し、交通機関とサーバーURLが事前入力された状態でUIを開きます(inspector README を参照):
http://localhost:6274/?transport=streamable-http&serverUrl=https%3A%2F%2Fapi.lad.lviv.ua%2Fmcp
Content-Type: application/json を指定して POST https://api.lad.lviv.ua/mcp を実行します。Streamable HTTPトランスポートでは、MCPクライアントが自動的に設定する追加のヘッダーが必要になる場合があります。手動でテストする場合は、MCP SDKが使用するシーケンス(セッションの initialize、その後に tools/call)に従ってください。tools/call ボディの形状例:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "get_stop_realtime",
"arguments": { "stop_id": 101 }
}
}成功したツールレスポンスは、MCPの content アイテム(type: "text")内に 文字列化されたJSON を返し、各ペイロードは厳格なUI契約に従います:
{
"view": "transit_realtime",
"data": { "...": "tool-specific source data" },
"ui_blocks": [
{ "type": "map", "data": { "...": "map renderer input" } },
{ "type": "arrival_list", "data": { "...": "arrival list renderer input" } }
]
}一貫性ルール: 地図上にレンダリングされる各車両は、リストデータ内に一致するETAを持つか、eta_status: "unassigned" である必要があります。
公開されているツール
get_stop_realtimeget_route_staticget_route_realtimeget_stop_geometryget_stops_around_location
引数 (JSON):
フィールド | 型 | 必須 |
| 正の整数または数字のみの文字列 | はい |
結果の例 (形状のみ; 値はアップストリームからのもの):
{
"view": "transit_realtime",
"data": {
"stop": { "id": "707", "name": "Стадіон Сільмаш", "lat": 49.84, "lng": 24.03 },
"arrivals": [
{
"route": "T30",
"direction": "Рясівська",
"vehicle_type": "tram",
"arrival_minutes": 4,
"vehicle_id": "tram_123",
"lat": 49.83,
"lng": 24.02,
"bearing": 120
}
],
"updated_at": "2026-01-23T12:00:00Z"
},
"ui_blocks": [
{
"type": "map",
"data": { "center": [49.84, 24.03], "vehicles": [] }
},
{
"type": "arrival_list",
"data": { "arrivals": [] }
}
]
}引数 (JSON):
フィールド | 型 | 必須 |
| ルートの短い名前 (例: | はい |
結果の例 (形状のみ; 簡潔にするため停留所は省略):
{
"view": "transit_realtime",
"data": {
"route": {
"name": "T30",
"long_name": "Рясне-2 — Сихів",
"color": "#e81717",
"type": "tram"
},
"stops": [
[
{ "id": "101", "name": "Головний вокзал", "lat": 49.841, "lng": 24.003, "departures": ["05:30", "05:52"] },
{ "id": "707", "name": "Стадіон Сільмаш", "lat": 49.838, "lng": 24.021, "departures": [] }
],
[
{ "id": "707", "name": "Стадіон Сільмаш", "lat": 49.838, "lng": 24.021, "departures": [] },
{ "id": "101", "name": "Головний вокзал", "lat": 49.841, "lng": 24.003, "departures": [] }
]
],
"shapes": [
[[49.841, 24.003], [49.839, 24.012], [49.838, 24.021]],
[[49.838, 24.021], [49.839, 24.012], [49.841, 24.003]]
],
"updated_at": "2026-01-23T12:00:00Z"
},
"ui_blocks": [
{
"type": "map",
"data": {
"center": [49.841, 24.003],
"zoom": 13,
"polylines": [[[49.841, 24.003], [49.839, 24.012], [49.838, 24.021]]],
"stops": [
{ "id": "101", "name": "Головний вокзал", "lat": 49.841, "lng": 24.003 },
{ "id": "707", "name": "Стадіон Сільмаш", "lat": 49.838, "lng": 24.021 }
],
"vehicles": []
}
}
]
}stops[0] は方向0(往路)、stops[1] は方向1(復路)です。departures は方向0に対してのみ入力されます。shapes も同じ2要素の順序に従います。マップブロックは、方向0のポリラインとすべてのユニークな停留所をマーカーとして使用します。
引数 (JSON):
フィールド | 型 | 必須 |
| ルートの短い名前 (例: | はい |
結果の例:
{
"view": "transit_realtime",
"data": {
"route_name": "T30",
"vehicles": [
{
"id": "tram_123",
"direction": 0,
"lat": 49.838,
"lng": 24.021,
"bearing": 120,
"lowfloor": true
}
],
"updated_at": "2026-01-23T12:00:00Z"
},
"ui_blocks": [
{
"type": "map",
"data": {
"center": [49.838, 24.021],
"zoom": 13,
"vehicles": [
{
"id": "tram_123",
"direction": 0,
"lat": 49.838,
"lng": 24.021,
"bearing": 120,
"lowfloor": true
}
]
}
}
]
}direction は get_route_static の stops 配列へのインデックスと一致します(0 = 往路、1 = 復路)。lowfloor: true はノンステップ車両であることを示します。ルート上で現在車両が稼働していない場合は、空の vehicles 配列を返します。
引数:
フィールド | 型 | 必須 |
| 正の整数または数字のみの文字列 | はい |
結果の例:
{
"view": "transit_realtime",
"data": {
"stop": { "id": "707", "name": "Стадіон Сільмаш", "lat": 49.84, "lng": 24.03 },
"routes": [
{
"route": "T30",
"polyline": [[49.84, 24.03], [49.83, 24.02]]
}
]
},
"ui_blocks": [{ "type": "map", "data": { "routes": [] } }]
}地図上の地点に近い停留所(数値の コード、名前、座標、距離)を返します。map UIブロックをレンダリングするホスト(例:ChatGPT)向けです:複数の停留所マーカー と検索中心を含む1つのブロック。GET /closest と同じバックエンドを使用します(下記参照)。
引数 (JSON):
フィールド | 型 | 必須 |
| 数値, −90…90 | はい |
| 数値, −180…180 | はい |
| 整数, 50…3000 | いいえ (デフォルト 1000) |
結果の例 (形状のみ):
{
"view": "transit_realtime",
"data": {
"center_lat": 49.84,
"center_lng": 24.03,
"radius_meters": 1000,
"stops": [
{
"id": "707",
"name": "Стадіон Сільмаш",
"lat": 49.841,
"lng": 24.031,
"distance_meters": 120
}
],
"updated_at": "2026-01-23T12:00:00Z"
},
"ui_blocks": [
{
"type": "map",
"data": {
"center": [49.84, 24.03],
"zoom": 15,
"stops": [
{
"id": "707",
"name": "Стадіон Сільмаш",
"lat": 49.841,
"lng": 24.031,
"distance_meters": 120
}
],
"vehicles": []
}
}
]
}地図のズームレベルは、半径 ≤ 1500m の場合は 15、それより大きい半径(最大3000m)の場合は 14 です。
セキュリティモデル
公開読み取り専用(認証なし)。
変更を行うツールは公開されていません。
robots.txtはベストエフォート型の発見ヒントであり、プロトコル契約ではありません。
REST API
すべてのエンドポイントはJSONを返します。:code は数値の停留所コード、:name はルートの短い名前(例:T1, 32A)または数値の外部IDです。
停留所
GET /stops.json
すべての停留所をJSON配列として、コード順にソートして返します。
レスポンス:
{ code, name, eng_name, location: [lat, lng], routes, sign, sign_pdf }の配列。
(GET /stops はHTMLテーブルを返します。)
GET /stops/:code
ライブのリアルタイム時刻表を含む単一の停留所。短期間キャッシュされます(5〜10秒)。
オプション:
skipTimetableData=1— ライブの到着情報を省略します(長期間キャッシュされたレスポンス)。レスポンス:
{ code, name, eng_name, latitude, longitude, transfers, timetable }。
GET /stops/:code/timetable
停留所のライブ時刻表のみ。短期間キャッシュされます(5〜10秒)。
レスポンス: 時刻表アイテムの配列。
GET /stops/:code/static
ライブデータを含まない静的な停留所情報。長期間キャッシュされます(30日間)。
レスポンス:
{ code, name, eng_name, latitude, longitude, transfers }。
GET /closest?latitude={lat}&longitude={lng}
近くの停留所 — 非MCPクライアント向けに get_stops_around_location と同じ検索を行います。
オプション:
radius— メートル単位、50 から 3000 の間でクランプされます(デフォルト 1000)。レスポンス:
{ code, name, latitude, longitude, distance_meters }のJSON配列(距離順にソート)。
ルート
GET /routes.json
すべてのルートをJSON配列として、短い名前順にソートして返します。
レスポンス: 時刻表ストアからの生のルートオブジェクト。
(GET /routes はHTMLテーブルを返します。)
GET /routes/static/:name
ルートの形状、停留所リスト、メタデータ。長期間キャッシュされます(30日間)。
レスポンス:
{ id, color, type, route_short_name, route_long_name, stops: [[dir0…], [dir1…]], shapes }。
GET /routes/dynamic/:name
ルートのライブ車両位置。短期間キャッシュされます(10秒)。
レスポンス:
{ id, direction, location: [lat, lng], bearing, lowfloor }の配列。
車両
GET /vehicle/:vehicleId
1台の車両のライブ位置と今後の停留所到着予定。短期間キャッシュされます(5秒)。
レスポンス:
{ location: [lat, lng], routeId, bearing, direction, licensePlate, arrivals }。
GET /transport?latitude={lat}&longitude={lng}
地点から1km以内の車両。短期間キャッシュされます(10秒)。
レスポンス:
{ id, route, vehicle_type, color, location: [lat, lng], bearing, lowfloor }の配列。
Available Tools
5 toolsget_route_realtimeGet Route RealtimeARead-onlyIdempotentInspect
Returns live positions for all vehicles currently running on a route, optimised for map rendering. Use when the user asks "where is my tram/bus right now?" or wants to see all active vehicles on a specific route on a map. Prefer get_stop_realtime when the user is at a stop and wants to know arrival times rather than vehicle positions. Prefer get_route_static when only the route shape or stop list is needed without live data. Requires a route short name (e.g. "T30", "32A") or numeric external ID.
| Name | Required | Description | Default |
|---|---|---|---|
| route_name | Yes | Route short name (e.g. "T30", "32A") or numeric external ID. |
Output Schema
| Name | Required | Description |
|---|---|---|
| data | Yes | |
| view | Yes | |
| ui_blocks | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already indicate readOnlyHint=true, idempotentHint=true, openWorldHint=false. Description adds real-time and map rendering context, consistent with annotations. No contradictions, but could mention possible data latency or frequency of updates.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Two sentences plus a note, all valuable. Front-loaded with the main action, then usage guidelines and input format. No wasted words.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given that an output schema exists, the description does not need to explain return values. It covers what the tool does, when to use it, and input requirements. Fully sufficient for an agent to decide to invoke.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Only one parameter 'route_name' with 100% schema coverage. Description adds examples ('T30', '32A') and clarifies it accepts short name or numeric external ID, providing more meaning than the schema alone.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states it returns live positions for all vehicles on a route, optimized for map rendering. It distinguishes from siblings by specifying use cases like 'where is my tram/bus right now?' versus arrival times at a stop.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
Explicitly says when to use this tool vs alternatives: prefer get_stop_realtime for arrival times, get_route_static for route shape/stop list without live data. Also specifies input format requirement (route short name or numeric external ID).
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
get_route_staticGet Route StaticARead-onlyIdempotentInspect
Returns static route metadata: short and long name, vehicle type, brand colour, ordered stop lists for both directions, and route polylines (shapes) for map rendering. Use when the user asks which stops a route serves, what a route looks like on a map, or what the scheduled departure times are. Do NOT use this when live vehicle positions are needed — use get_route_realtime instead. Requires a route short name (e.g. "T30", "32A") or numeric external ID; call get_stops_around_location first if you only know a location and need to discover which routes serve it.
| Name | Required | Description | Default |
|---|---|---|---|
| route_name | Yes | Route short name (e.g. "T30", "32A") or numeric external ID. |
Output Schema
| Name | Required | Description |
|---|---|---|
| data | Yes | |
| view | Yes | |
| ui_blocks | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations (readOnlyHint, idempotentHint) already indicate safety. Description adds context that data is static and what it includes, but doesn't disclose any hidden behaviors. No contradictions.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Every sentence is purposeful. Front-loaded with purpose, then usage guidelines, then parameter notes. No redundancy.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a static data retrieval tool with an output schema (not shown) and sibling tools listed, the description covers all necessary context: what, when, when not, and how to get inputs. Complete.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema coverage is 100% and the parameter description is clear. Description adds value by explaining how to obtain the route name if needed (via get_stops_around_location), which aids tool selection.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description uses a specific verb 'Returns' and lists concrete resources: static route metadata, stop lists, polylines. It distinguishes from siblings by explicitly mentioning when not to use (live positions -> get_route_realtime).
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
Provides explicit use cases (user asks for stops, map, scheduled times) and non-use cases (live positions) with alternative named. Also gives prerequisite for obtaining route name if unknown.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
get_stop_geometryGet Stop GeometryARead-onlyIdempotentInspect
Returns static map context for a stop: its marker and polylines for every route that serves it. No live data is fetched. Use this when you need to enrich an existing map with route shapes (e.g. overlay polylines alongside a get_stop_realtime map block) or when the user asks to visualise which routes pass a stop without needing live arrivals. Do NOT use this when live arrival times or vehicle positions are needed — use get_stop_realtime instead. Requires a numeric stop ID; call get_stops_around_location first if you only have coordinates.
| Name | Required | Description | Default |
|---|---|---|---|
| stop_id | Yes | Municipal stop code shown on stop signage (e.g. 707). Accepts a positive integer or an equivalent digit-only string. |
Output Schema
| Name | Required | Description |
|---|---|---|
| data | Yes | |
| view | Yes | |
| ui_blocks | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already declare readOnlyHint, idempotentHint, openWorldHint. The description adds that no live data is fetched and specifies return components (marker, polylines), which is valuable beyond annotations.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Two well-structured sentences, front-loaded, no wasted words. Every sentence adds value.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the tool has an output schema, the description adequately covers purpose, usage guidelines, and prerequisites. Parameter is simple. No gaps identified.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema coverage is 100% with clear parameter description. The description reiterates it requires a numeric stop ID and adds cross-reference to get_stops_around_location, but adds minimal new semantic info beyond the schema.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool returns static map context for a stop: marker and polylines for every route. It uses specific verbs and resource, distinguishing from sibling get_stop_realtime.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
Explicitly says when to use (enrich map, visualize routes) and when not to (live data needed), with a direct reference to get_stop_realtime as alternative. Also provides prerequisite to call get_stops_around_location if only coordinates are available.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
get_stop_realtimeGet Stop RealtimeARead-onlyIdempotentInspect
Returns live arrivals and vehicle positions for a stop, producing both a map UI block and a structured arrival list. Use this as the default tool when the user asks about arrivals, departures, or vehicles at a specific stop. Prefer get_stop_geometry when only static route polylines are needed and live data is irrelevant. Requires a numeric stop ID (shown on stop signage); use get_stops_around_location first if you only have an address or coordinates.
| Name | Required | Description | Default |
|---|---|---|---|
| stop_id | Yes | Municipal stop code shown on stop signage (e.g. 707). Accepts a positive integer or an equivalent digit-only string. |
Output Schema
| Name | Required | Description |
|---|---|---|
| data | Yes | |
| view | Yes | |
| ui_blocks | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already indicate read-only and idempotent. The description adds that it produces a map UI block and structured list, which is behavioral context beyond annotations. No contradictions.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Two sentences with essential information, front-loaded with purpose, and no extraneous words. Every sentence earns its place.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a tool with one parameter, full schema coverage, and output schema, the description covers all necessary aspects: functionality, usage context, parameter source, and sibling relationships.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema coverage is 100%, so baseline 3. The description adds value by explaining how to obtain the stop ID (from signage) and when to use a different tool for other inputs, exceeding mere schema details.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool returns live arrivals and vehicle positions for a stop, specifying both a map UI block and structured arrival list. It distinguishes itself from siblings like `get_stop_geometry` and `get_stops_around_location`.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
Explicitly says to use as default for arrivals/departures, prefers `get_stop_geometry` for static data, and suggests `get_stops_around_location` for address/coordinate inputs. Provides clear when-to-use and alternatives.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
get_stops_around_locationGet Stops Around LocationARead-onlyIdempotentInspect
Discovers transit stops near a geographic point, returning each stop's numeric code, name, coordinates, and walking distance. Also emits a map UI block with multiple markers for map-capable clients (e.g. ChatGPT). Use this as the first step whenever the user provides an address, place name, or coordinates and you need stop IDs before calling get_stop_realtime or get_stop_geometry. Do NOT use this to fetch arrivals or live vehicle data — it returns stop metadata only. Default radius is 1 000 m; narrow it (e.g. 300 m) for dense urban areas or widen it (up to 3 000 m) for rural locations.
| Name | Required | Description | Default |
|---|---|---|---|
| latitude | Yes | Decimal latitude of the search centre, WGS84 (e.g. 49.842 for central Lviv). | |
| longitude | Yes | Decimal longitude of the search centre, WGS84 (e.g. 24.031 for central Lviv). | |
| radius_meters | No | Search radius in metres (50–3000, default 1000). Use ~300 for dense urban intersections, up to 3000 for suburban or rural areas. |
Output Schema
| Name | Required | Description |
|---|---|---|
| data | Yes | |
| view | Yes | |
| ui_blocks | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already declare readOnlyHint=true and idempotentHint=true, so safety profile is clear. Description adds valuable context: emits a map UI block for map-capable clients, default radius is 1000 m, and valid radius range (50–3000). This goes beyond annotations without contradicting them.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Description is efficiently structured: first sentence states primary function and added map UI block, second sentence provides usage guidance and exclusions, third sentence offers radius optimization tips. No redundant or superfluous information; every sentence earns its place.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given that an output schema exists (so return structure need not be described), the description is complete: it covers purpose, when to use, when not to use, and parameter behavior. Context signals (3 params, 2 required, 100% schema coverage, sibling tools) are fully addressed by the description.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Input schema already covers all parameters with descriptions (100% coverage). Description adds no new parameter details but provides usage context: default radius (1000 m), suggested values for dense urban (300 m) vs rural (3000 m), and clarifies that latitude/longitude use WGS84. This added value justifies a score above baseline 3.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
Description clearly states the tool discovers transit stops near a geographic point, returning specific metadata (code, name, coordinates, distance) and a map UI block. It distinguishes itself from sibling tools like get_stop_realtime (arrivals) and get_stop_geometry (geometry), ensuring unambiguous purpose.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
Explicitly says to use as the first step when needing stop IDs before calling get_stop_realtime or get_stop_geometry, and warns not to use for arrivals or live data. Also provides radius adjustment guidance for dense urban vs rural areas, leaving no ambiguity about when to employ this tool.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
5 tool updates
v1.0.11- Added
get_route_realtime - Added
get_route_static - Added
get_stop_geometry - Added
get_stop_realtime - Added
get_stops_around_location
5 tool updates
v1.0.9- Removed
get_route_realtime - Removed
get_route_static - Removed
get_stop_geometry - Removed
get_stop_realtime - Removed
get_stops_around_location
3 tool updates
v1.0.8- Changed
get_stop_geometry2 fields changed- changed
Input schema / properties / stop_id / anyOfPrevious value: -[ - { - "description": "Numeric municipal stop code (e.g. 707).", - "exclusiveMinimum": 0, - "maximum": 9007199254740991, - "type": "integer" - }, - { - "description": "Municipal stop code as digits-only string (e.g. \"707\").", - "pattern": "^\\d+$", - "type": "string" - } -]New value: +[ + { + "description": "Positive integer stop code (e.g. 707).", + "exclusiveMinimum": 0, + "maximum": 9007199254740991, + "type": "integer" + }, + { + "description": "Stop code as a digits-only string (e.g. \"707\").", + "pattern": "^\\d+$", + "type": "string" + } +] - added
Input schema / properties / stop_id / descriptionAdded value: +"Municipal stop code shown on stop signage (e.g. 707). Accepts a positive integer or an equivalent digit-only string."
- Changed
get_stop_realtime2 fields changed- changed
Input schema / properties / stop_id / anyOfPrevious value: -[ - { - "description": "Numeric municipal stop code (e.g. 707).", - "exclusiveMinimum": 0, - "maximum": 9007199254740991, - "type": "integer" - }, - { - "description": "Municipal stop code as digits-only string (e.g. \"707\").", - "pattern": "^\\d+$", - "type": "string" - } -]New value: +[ + { + "description": "Positive integer stop code (e.g. 707).", + "exclusiveMinimum": 0, + "maximum": 9007199254740991, + "type": "integer" + }, + { + "description": "Stop code as a digits-only string (e.g. \"707\").", + "pattern": "^\\d+$", + "type": "string" + } +] - added
Input schema / properties / stop_id / descriptionAdded value: +"Municipal stop code shown on stop signage (e.g. 707). Accepts a positive integer or an equivalent digit-only string."
- Changed
get_stops_around_location3 fields changed- changed
Input schema / properties / latitude / descriptionPrevious value: -"Center latitude (WGS84)."New value: +"Decimal latitude of the search centre, WGS84 (e.g. 49.842 for central Lviv)." - changed
Input schema / properties / longitude / descriptionPrevious value: -"Center longitude (WGS84)."New value: +"Decimal longitude of the search centre, WGS84 (e.g. 24.031 for central Lviv)." - changed
Input schema / properties / radius_meters / descriptionPrevious value: -"Search radius in meters (default 1000; same cap as the public /closest API)."New value: +"Search radius in metres (50–3000, default 1000). Use ~300 for dense urban intersections, up to 3000 for suburban or rural areas."
2 tool updates
v1.0.5- Added
get_route_realtime - Added
get_route_static
1 tool update
v1.0.4- Removed
get_vehicles_by_stop
4 tool updates
v1.0.0- First observed
get_stop_geometry - First observed
get_stop_realtime - First observed
get_stops_around_location - First observed
get_vehicles_by_stop
TDQS
Scored across 5 tools
Each tool has a clearly distinct purpose: route static vs realtime, stop geometry vs realtime, and stop discovery. Descriptions explicitly disambiguate when to use each, leaving no ambiguity.
All tool names follow the consistent pattern 'get_[resource]_[modifier]' in snake_case, e.g., get_route_realtime, get_stop_geometry. The naming is predictable and easy to understand.
5 tools is well-scoped for a transit information server, covering all essential operations: route static and realtime data, stop static geometry and realtime arrivals, and stop discovery. No excess or deficiency.
The tool surface is complete for the domain: users can discover stops, get realtime arrivals, static route info, route shapes, and live vehicle positions. There are no obvious gaps such as missing CRUD operations or dead ends.
Maintenance
Related MCP Connectors
Read-only public transit departures, stop search, and city coverage for bus and train users.
MBTA MCP — Boston real-time transit via the MBTA v3 API (api-v3.mbta.com)
Transitland MCP — global GTFS aggregator
SEPTA MCP — Philadelphia SEPTA real-time transit (www3.septa.org/api, keyless)
Related MCP Servers
- FlicenseAqualityAmaintenanceA Model Context Protocol server that provides real-time Caltrain schedule information, allowing AI assistants to look up train departures between any stations and access station information using GTFS data.210-
- FlicenseNot gradedqualityDmaintenanceA server that provides seamless access to the GTFOBins database through Claude Desktop, allowing users to query exploitation techniques, search for specific binaries, and explore privilege escalation methods directly from Claude conversations.-
- AlicenseNot gradedqualityDmaintenanceEnables searching for Auckland public transport stops and retrieving real-time transit schedules and timetables using the Auckland Transport API with GTFS standardized data.MIT
- FlicenseNot gradedqualityDmaintenanceProvides real-time transit data for OC Transpo in Ottawa, including live vehicle positions and trip updates via GTFS-RT feeds. It enables AI agents to monitor arrival delays, schedule changes, and transit telemetry through the Model Context Protocol.2-