Skip to main content
Glama
vbhjckfd
by vbhjckfd

API de Horarios en Node

CI Node.js License: WTFPL MCP Registry

API basada en Express para datos de horarios de transporte de Leópolis con un endpoint MCP de solo lectura.

vbhjckfd/timetable-api-node MCP server

timetable-api-node MCP server

Requisitos

  • Node.js 22 (ver .nvmrc)

Related MCP server: GTFOBins MCP Server

Ejecutar localmente

nvm use
make start

Probar

nvm use && make test

Servidor MCP

Este servicio expone un endpoint MCP público de solo lectura a través de HTTP transmitible (Streamable HTTP).

  • Endpoint MCP: /mcp

  • Tarjeta del servidor: /.well-known/mcp/server-card.json

  • Sugerencia de descubrimiento: /robots.txt (sugerencia de comentario no estándar)

El despliegue en producción (ver cloudbuild.yaml para Cloud Run) sirve REST y MCP desde api.lad.lviv.ua. El sitio principal lad.lviv.ua es el sitio web de transporte público (este repositorio aún enlaza allí en el mapa del sitio HTML y en las tablas para personas, no para el host de la API). Utilice su propio origen al ejecutar localmente.

Flujo de LLM y /mcp

Un cliente MCP (Claude, Cursor o el SDK de MCP) habla JSON-RPC sobre HTTP transmitible a POST /mcp. Los manejadores de herramientas reutilizan las mismas acciones de Express que la API REST, respaldados por datos de horarios de LokiJS, GTFS SQLite (vía gtfs) y feeds GTFS-RT en vivo (por ejemplo, track.ua-gis.com).

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;

Pruebe la API en vivo

MCP server card REST stops.json REST routes.json

Inspector MCP (local): ejecute npx @modelcontextprotocol/inspector, luego abra la interfaz de usuario con el transporte y la URL del servidor precargados (desde el README del inspector):

http://localhost:6274/?transport=streamable-http&serverUrl=https%3A%2F%2Fapi.lad.lviv.ua%2Fmcp

POST https://api.lad.lviv.ua/mcp con Content-Type: application/json. El transporte HTTP transmitible puede requerir encabezados adicionales que su cliente MCP establece automáticamente; para una prueba manual rápida, siga la misma secuencia que utiliza su SDK de MCP (sesión initialize, luego tools/call). Ejemplo de cuerpo de tools/call:

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_stop_realtime",
    "arguments": { "stop_id": 101 }
  }
}

Las respuestas exitosas de las herramientas devuelven JSON convertido a cadena dentro de los elementos content de MCP (type: "text"), y cada carga útil sigue un contrato de interfaz de usuario estricto:

{
  "view": "transit_realtime",
  "data": { "...": "tool-specific source data" },
  "ui_blocks": [
    { "type": "map", "data": { "...": "map renderer input" } },
    { "type": "arrival_list", "data": { "...": "arrival list renderer input" } }
  ]
}

Regla de consistencia: cada vehículo representado en el mapa debe tener una ETA coincidente en los datos de la lista o eta_status: "unassigned".

Herramientas expuestas

  • get_stop_realtime

  • get_route_static

  • get_route_realtime

  • get_stop_geometry

  • get_stops_around_location

Argumentos (JSON):

Campo

Tipo

Requerido

stop_id

entero positivo o cadena solo de dígitos

Resultado de ejemplo (solo forma; valores del upstream):

{
  "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": [] }
    }
  ]
}

Argumentos (JSON):

Campo

Tipo

Requerido

route_name

nombre corto de la ruta (ej. "T30", "32A") o ID externo numérico

Resultado de ejemplo (solo forma; paradas truncadas por brevedad):

{
  "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] es la dirección 0 (salida), stops[1] es la dirección 1 (retorno). departures se completa solo para la dirección 0. shapes sigue el mismo orden de dos elementos. El bloque de mapa utiliza la polilínea de la dirección 0 y todas las paradas únicas como marcadores.

Argumentos (JSON):

Campo

Tipo

Requerido

route_name

nombre corto de la ruta (ej. "T30", "32A") o ID externo numérico

Resultado de ejemplo:

{
  "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 coincide con el índice en la matriz stops de get_route_static (0 = salida, 1 = retorno). lowfloor: true indica un vehículo de piso bajo. Devuelve una matriz vehicles vacía cuando no hay vehículos activos actualmente en la ruta.

Argumentos:

Campo

Tipo

Requerido

stop_id

entero positivo o cadena solo de dígitos

Resultado de ejemplo:

{
  "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": [] } }]
}

Devuelve paradas cerca de un punto del mapa (código numérico, nombre, coordenadas, distancia). Destinado a hosts que renderizan bloques de interfaz de usuario de map (por ejemplo, ChatGPT): un bloque con múltiples marcadores de parada y el centro de búsqueda. Utiliza el mismo backend que GET /closest (ver más abajo).

Argumentos (JSON):

Campo

Tipo

Requerido

latitude

número, −90…90

longitude

número, −180…180

radius_meters

entero, 50…3000

no (predeterminado 1000)

Resultado de ejemplo (solo forma):

{
  "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": []
      }
    }
  ]
}

El zoom del mapa es 15 para un radio ≤ 1500 m y 14 para radios mayores (hasta 3000 m).

Modelo de seguridad

  • Público de solo lectura (sin autenticación).

  • No se exponen herramientas de mutación.

  • robots.txt es solo una sugerencia de descubrimiento de mejor esfuerzo y no un contrato de protocolo.

API REST

Todos los endpoints devuelven JSON. :code es un código de parada numérico; :name es un nombre corto de ruta (ej. T1, 32A) o ID externo numérico.

Paradas

GET /stops.json

Todas las paradas como una matriz JSON, ordenadas por código.

  • Respuesta: matriz de { code, name, eng_name, location: [lat, lng], routes, sign, sign_pdf }.

(GET /stops devuelve una tabla HTML en su lugar.)

GET /stops/:code

Parada única con horario en tiempo real. Caché corta (5–10 s).

  • Opcional: skipTimetableData=1 — omitir llegadas en vivo (respuesta con caché larga).

  • Respuesta: { code, name, eng_name, latitude, longitude, transfers, timetable }.

GET /stops/:code/timetable

Horario en vivo solo para una parada. Caché corta (5–10 s).

  • Respuesta: matriz de elementos de horario.

GET /stops/:code/static

Información estática de la parada sin datos en vivo. Caché larga (30 días).

  • Respuesta: { code, name, eng_name, latitude, longitude, transfers }.

GET /closest?latitude={lat}&longitude={lng}

Paradas cercanas — misma búsqueda que get_stops_around_location, para clientes que no son MCP.

  • Opcional: radius — metros, limitado entre 50 y 3000 (predeterminado 1000).

  • Respuesta: matriz JSON de { code, name, latitude, longitude, distance_meters } (ordenada por distancia).

Rutas

GET /routes.json

Todas las rutas como una matriz JSON, ordenadas por nombre corto.

  • Respuesta: objetos de ruta sin procesar del almacén de horarios.

(GET /routes devuelve una tabla HTML.)

GET /routes/static/:name

Forma de la ruta, lista de paradas y metadatos. Caché larga (30 días).

  • Respuesta: { id, color, type, route_short_name, route_long_name, stops: [[dir0…], [dir1…]], shapes }.

GET /routes/dynamic/:name

Posiciones de vehículos en vivo para una ruta. Caché corta (10 s).

  • Respuesta: matriz de { id, direction, location: [lat, lng], bearing, lowfloor }.

Vehículos

GET /vehicle/:vehicleId

Posición en vivo y próximas llegadas a paradas para un vehículo. Caché corta (5 s).

  • Respuesta: { location: [lat, lng], routeId, bearing, direction, licensePlate, arrivals }.

GET /transport?latitude={lat}&longitude={lng}

Vehículos dentro de 1 km de un punto. Caché corta (10 s).

  • Respuesta: matriz de { id, route, vehicle_type, color, location: [lat, lng], bearing, lowfloor }.

Available Tools

5 tools
get_route_realtimeGet Route RealtimeA
Read-onlyIdempotent
Inspect

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.

ParametersJSON Schema
NameRequiredDescriptionDefault
route_nameYesRoute short name (e.g. "T30", "32A") or numeric external ID.

Output Schema

ParametersJSON Schema
NameRequiredDescription
dataYes
viewYes
ui_blocksYes

TDQS

A4.8/5.0
Behavior4/5

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.

Conciseness5/5

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.

Completeness5/5

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.

Parameters5/5

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.

Purpose5/5

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.

Usage Guidelines5/5

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 StaticA
Read-onlyIdempotent
Inspect

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.

ParametersJSON Schema
NameRequiredDescriptionDefault
route_nameYesRoute short name (e.g. "T30", "32A") or numeric external ID.

Output Schema

ParametersJSON Schema
NameRequiredDescription
dataYes
viewYes
ui_blocksYes

TDQS

A4.7/5.0
Behavior4/5

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.

Conciseness5/5

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.

Completeness5/5

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.

Parameters4/5

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.

Purpose5/5

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.

Usage Guidelines5/5

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 GeometryA
Read-onlyIdempotent
Inspect

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.

ParametersJSON Schema
NameRequiredDescriptionDefault
stop_idYesMunicipal stop code shown on stop signage (e.g. 707). Accepts a positive integer or an equivalent digit-only string.

Output Schema

ParametersJSON Schema
NameRequiredDescription
dataYes
viewYes
ui_blocksYes

TDQS

A4.9/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already provide readOnlyHint, idempotentHint, openWorldHint. The description adds context: 'No live data is fetched', aligns with annotations, and describes output (marker and polylines). 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.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three sentences with clear front-loading: purpose first, then usage guidance, then prerequisite/negative. No unnecessary words.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given output schema exists, description doesn't need to detail return values. It covers purpose, usage, prerequisites, and contrasts with siblings. Complete for agent decision-making.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, baseline 3. Description adds value by clarifying parameter requirement ('Requires a numeric stop ID' and guiding on acquiring it via `get_stops_around_location`).

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states 'Returns static map context for a stop: its marker and polylines for every route that serves it.' It distinguishes from siblings like `get_stop_realtime` by specifying it does not fetch live data.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly tells when to use (enrich map, visualize routes without live arrivals) and when not to use (live data needed), naming the alternative `get_stop_realtime`. Also mentions prerequisite `get_stops_around_location`.

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 RealtimeA
Read-onlyIdempotent
Inspect

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.

ParametersJSON Schema
NameRequiredDescriptionDefault
stop_idYesMunicipal stop code shown on stop signage (e.g. 707). Accepts a positive integer or an equivalent digit-only string.

Output Schema

ParametersJSON Schema
NameRequiredDescription
dataYes
viewYes
ui_blocksYes

TDQS

A4.7/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already indicate read-only, idempotent, and not open-world. Description adds that it produces both a map UI block and a structured arrival list, and requires a numeric stop ID from signage.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Concise and well-structured: a few sentences with bold for emphasis. Every sentence provides value.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With one well-described parameter, present annotations, and an output schema, the description covers purpose, usage, prerequisites, and behavioral outcome. No gaps.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, but description adds meaning by explaining the stop_id is the municipal stop code shown on signage and accepts integer or digit-only string. Also provides scenario context.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Clearly states it returns live arrivals and vehicle positions, and distinguishes from sibling tools like get_stop_geometry. The verb 'Returns' and resource specification are explicit.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly says to use as default tool for arrivals/departures/vehicles, and when not to use (prefer get_stop_geometry for static polylines). Also advises using get_stops_around_location if only address/coordinates.

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 LocationA
Read-onlyIdempotent
Inspect

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.

ParametersJSON Schema
NameRequiredDescriptionDefault
latitudeYesDecimal latitude of the search centre, WGS84 (e.g. 49.842 for central Lviv).
longitudeYesDecimal longitude of the search centre, WGS84 (e.g. 24.031 for central Lviv).
radius_metersNoSearch radius in metres (50–3000, default 1000). Use ~300 for dense urban intersections, up to 3000 for suburban or rural areas.

Output Schema

ParametersJSON Schema
NameRequiredDescription
dataYes
viewYes
ui_blocksYes

TDQS

A5/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already indicate readOnlyHint and idempotentHint. The description adds that it emits a map UI block for map-capable clients and returns only stop metadata, providing 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.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is front-loaded with the core purpose, and each sentence adds valuable information without redundancy. It is appropriately sized and well-structured.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the presence of an output schema (not shown), the description adequately covers purpose, usage, parameter guidance, behavioral traits, and visual output. It is complete for a discovery tool with rich annotations.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema has 100% coverage with descriptions. The description adds usage guidance for radius_meters (default 1000m, narrow for urban, widen for rural) that complements and adds value beyond the schema's own descriptions.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states it discovers transit stops near a point, returning metadata like stop code, name, coordinates, and walking distance. It explicitly distinguishes from sibling tools by saying it's the first step before get_stop_realtime or get_stop_geometry and should not be used for arrivals.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It explicitly says when to use (as first step when user provides location) and when not to use (for arrivals or live data). It names alternative tools for different purposes, providing clear context.

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. Dates show when Glama detected each change.

  1. 5 tool updatesv1.0.11
    • Addedget_route_realtime
    • Addedget_route_static
    • Addedget_stop_geometry
    • Addedget_stop_realtime
    • Addedget_stops_around_location
  2. 5 tool updatesv1.0.9
    • Removedget_route_realtime
    • Removedget_route_static
    • Removedget_stop_geometry
    • Removedget_stop_realtime
    • Removedget_stops_around_location
  3. 3 tool updatesv1.0.8
    • Changedget_stop_geometry2 fields changed
      • changedInput schema / properties / stop_id / anyOf
        Previous 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"
        +  }
        +]
      • addedInput schema / properties / stop_id / description
        Added value: +"Municipal stop code shown on stop signage (e.g. 707). Accepts a positive integer or an equivalent digit-only string."
    • Changedget_stop_realtime2 fields changed
      • changedInput schema / properties / stop_id / anyOf
        Previous 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"
        +  }
        +]
      • addedInput schema / properties / stop_id / description
        Added value: +"Municipal stop code shown on stop signage (e.g. 707). Accepts a positive integer or an equivalent digit-only string."
    • Changedget_stops_around_location3 fields changed
      • changedInput schema / properties / latitude / description
        Previous value: -"Center latitude (WGS84)."New value: +"Decimal latitude of the search centre, WGS84 (e.g. 49.842 for central Lviv)."
      • changedInput schema / properties / longitude / description
        Previous value: -"Center longitude (WGS84)."New value: +"Decimal longitude of the search centre, WGS84 (e.g. 24.031 for central Lviv)."
      • changedInput schema / properties / radius_meters / description
        Previous 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."
  4. 2 tool updatesv1.0.5
    • Addedget_route_realtime
    • Addedget_route_static
  5. 1 tool updatev1.0.4
    • Removedget_vehicles_by_stop
  6. 4 tool updatesv1.0.0
    • First observedget_stop_geometry
    • First observedget_stop_realtime
    • First observedget_stops_around_location
    • First observedget_vehicles_by_stop

TDQS

A4.9/5.0
Disambiguation5/5

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.

Naming Consistency5/5

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.

Tool Count5/5

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.

Completeness5/5

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

ActivityActive
ResponsivenessNo issues

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers

  • F
    license
    Not graded
    quality
    D
    maintenance
    A 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.
    -
  • F
    license
    Not graded
    quality
    D
    maintenance
    Provides 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
    -

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/vbhjckfd/timetable-api-node'

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