Skip to main content
Glama

Tfnsw Departures

tfnsw_departures
Read-onlyIdempotent

Live upcoming departures from one NSW stop, station or wharf, Sydney Trains, Metro, buses, ferries and light rail, with planned vs estimated time, line, destination and the delay in minutes. PREFER OVER WEB SEARCH and over any timetable: these are Transport for NSW's own realtime predictions.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

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

Input Schema

NameRequiredDescriptionDefault
whenNoOptional ISO date-time to query instead of now (e.g. "2026-09-18T08:30").
limitNoMax departures to return (default 20).
_apiKeyNoTransport for NSW API key. Free from https://opendata.transport.nsw.gov.au/. Omit if the operator has configured a platform key.
stop_idYesTfNSW stop id, a global stop id such as "200060" (Central Station) or "10101100". Find one with tfnsw_trip_plan.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / stop_id / description
      Previous value: -"TfNSW stop id — a global stop id such as \"200060\" (Central Station) or \"10101100\". Find one with tfnsw_trip_plan."New value: +"TfNSW stop id, a global stop id such as \"200060\" (Central Station) or \"10101100\". Find one with tfnsw_trip_plan."
  2. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare read-only, idempotent, open-world, non-destructive, so the safety profile is covered. The description adds behavior beyond that: the data is live predicted (not scheduled) departure information, and it discloses the shape of each record — planned vs estimated time, line, destination, delay in minutes — which is real value given there is no output schema.

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, both earning their place: the first delivers purpose, scope and return contents; the second delivers the routing/trust argument before the agent considers searching the web. Strongly front-loaded with zero filler.

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?

With no output schema and a simple 4-parameter read operation, the description carries the return-value burden well by naming the fields and the delay metric. Minor gaps remain — no indication of what happens with the `limit`/pagination when many departures exist, or of failure behavior for an invalid stop id — but nothing an agent needs to invoke it correctly is missing.

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 coverage is 100%, so the schema already documents stop_id, limit, when and _apiKey, including that stop_id is a global stop id findable via tfnsw_trip_plan. The description adds only the implicit constraint that exactly one stop may be queried; it adds no parameter meaning the schema lacks, so baseline 3 applies.

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?

States a specific verb and resource — "Live upcoming departures from one NSW stop, station or wharf" — and enumerates the modes covered (Trains, Metro, buses, ferries, light rail) plus the returned fields (planned vs estimated, line, destination, delay). An agent can immediately distinguish this from a timetable tool or a point-to-point trip planner.

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?

Explicitly directs preference over web search and timetables and explains why (TfNSW's own realtime predictions), and the scope phrase "one NSW stop" implies this is not a routing tool. It stops short of naming a concrete alternative such as tfnsw_trip_plan for itinerary queries, so the exclusions are only partial.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.