Skip to main content
Glama
TfNSW Trip Planner MCP Server

TfNSW Trip Planner MCP Server

by 3bobchen

tfnsw_departures

Retrieve real-time departures for a NSW public transport stop, including upcoming services, line numbers, destinations, and delays; provide a stop ID from stop search.

Instructions

Get real-time departure board for a specific public transport stop in NSW. Shows upcoming services with line numbers, destinations, and real-time delays. Use tfnsw_stop_finder first to get the stop ID.

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": {
      "stopId": "<stopId>"
    },
    "name": "tfnsw_departures"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateNoDate in YYYYMMDD format (default: today)
timeNoTime in HHMM format (default: now)
limitNoMax departures to return (default 10)
stopIdYesStop/station ID (get this from tfnsw_stop_finder)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.3

TDQS

A3.8/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 disclosure burden. It does communicate that data is real-time and includes delays, which is useful behavioral context. However, it is silent on error behavior for unknown stop IDs, data freshness/caching, and rate limits — meaningful gaps for a tool with zero annotation coverage.

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 short sentences: purpose, return contents, and prerequisite — all front-loaded with no filler. Every sentence contributes information an agent needs.

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

Completeness4/5

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

For a simple four-parameter read tool with no output schema, the description covers purpose, return shape, and the required ID acquisition path. What is missing is light — a note on behavior for invalid stops or empty boards.

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

Parameters3/5

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

Schema description coverage is 100%, so date, time, limit, and stopId are already documented in structured form. The description only adds provenance guidance for stopId (via tfnsw_stop_finder), leaving date/time format interplay (e.g. supplying time without date) unaddressed. Baseline 3 applies when the schema does the heavy lifting.

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 ("Get real-time departure board for a specific public transport stop in NSW") and lists the returned fields (line numbers, destinations, delays). It clearly separates itself from tfnsw_stop_finder by naming it as a prerequisite, but it never contrasts itself with tfnsw_trip, the closest functional alternative.

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

Usage Guidelines4/5

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

It states an explicit prerequisite workflow: "Use tfnsw_stop_finder first to get the stop ID." That is concrete when-to-use guidance. It stops short of exclusions, e.g. that tfnsw_trip should be used for journey planning rather than a single-stop board.

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