Skip to main content
Glama
GTFS Realtime MCP Server

GTFS Realtime MCP Server

by bribroder

plan_trip

Plan a future transit trip using scheduled GTFS timetables by specifying origin, destination, and date/time, with depart-after or arrive-by options.

Instructions

Plan a transit trip in the future using the scheduled GTFS timetable.

  • origin_station_name: e.g. "Metro Center"

  • dest_station_name: e.g. "Shady Grove"

  • date_time_str: Human-readable date and time (e.g. "tomorrow at 8am", "2024-05-15 10:00")

  • query_type: 'depart_at' (leave after this time) or 'arrive_by' (reach destination before this time)

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "origin_station_name": "<origin_station_name>",
      "dest_station_name": "<dest_station_name>",
      "date_time_str": "<date_time_str>"
    },
    "name": "plan_trip"
  }
}

Input Schema

NameRequiredDescriptionDefault
query_typeNodepart_at
date_time_strYes
dest_station_nameYes
origin_station_nameYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It usefully discloses that results come from the scheduled GTFS timetable, implying results may not reflect real-time delays or service changes, but it says nothing about behavior on dates with no service, tolerance for inexact station names, whether multiple itineraries are returned, or error conditions.

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

Conciseness4/5

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

One front-loaded purpose sentence followed by a tight bullet per parameter, with no filler. The bullets do repeat parameter names already present in the schema, but they earn that space by adding examples and the query_type meaning.

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

Completeness3/5

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

Because an output schema exists, the description need not explain return values, and the parameter documentation is solid. However, for a trip-planning tool with no annotation coverage, it omits important operational context such as calendar/holiday behavior, station-name matching rules, and the presence of the required date for advance planning.

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 description coverage is 0%, so the description must compensate and largely does: it defines each of the four parameters with concrete examples and, critically, explains the semantics of the query_type values ('depart_at' = leave after this time, 'arrive_by' = reach destination before this time), which the schema does not encode at all. The remaining gap is date_time_str, where "human-readable" leaves parsing leniency and accepted formats ambiguous.

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

Purpose4/5

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

The description gives a specific verb and resource ("Plan a transit trip") plus a scope qualifier ("in the future using the scheduled GTFS timetable"), which lets an agent distinguish it from a real-time next-departure tool. It does not name any sibling explicitly, so sibling differentiation is left implicit.

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

Usage Guidelines3/5

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

Usage is implied rather than stated: "in the future" and "scheduled timetable" suggest this is for planned/advance trips rather than live departures, and the query_type explanation clarifies the depart_at vs arrive_by intent. There is no explicit when-not-to-use guidance or named alternative (e.g. for imminent departures or service alerts).

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.