Skip to main content
Glama

Tfnsw Alerts

tfnsw_alerts
Read-onlyIdempotent

Current Transport for NSW service alerts and incidents, trackwork, delays, cancellations, road and stop closures, for one transport mode or all of them, with the affected lines and the validity period. AUTHORITATIVE for "is anything disrupted on Sydney transport right now".

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

Input Schema

NameRequiredDescriptionDefault
modeNoFilter by mode: 'train', 'metro', 'bus', 'ferry', 'lightrail', or omit for all.
limitNoMax alerts to return (default 50).
_apiKeyNoTransport for NSW API key. Free from https://opendata.transport.nsw.gov.au/.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, so the safety profile is fully covered; the description adds value by disclosing the payload shape ('the affected lines and the validity period') and the currentness guarantee ('Current'). It does not mention the API-key requirement (left to the schema) or any rate limits, but that is a modest gap given the 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?

Two sentences with no padding: the first front-loads what the tool returns and its scope, the second front-loads the routing trigger in capitals. Every clause carries information about content or usage.

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 no output schema, the description carries the burden of describing return values and does so by naming the affected lines and validity period. Combined with the annotation-declared safety profile and 100% schema coverage, an agent has everything needed to select and invoke it correctly.

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 all three parameters (mode, limit, _apiKey) are already documented in the input schema and the baseline applies. The phrase 'for one transport mode or all of them' only restates the documented behavior of the optional mode filter; nothing is added about limit semantics or defaults.

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 names a specific resource (Transport for NSW service alerts/incidents) and enumerates the covered event types — trackwork, delays, cancellations, road and stop closures — plus the scope ('one transport mode or all of them'). It is immediately clear what the tool returns. It stops short of differentiating itself from the sibling 'recent_alerts', leaving that distinction to be inferred.

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?

The closing sentence, 'AUTHORITATIVE for "is anything disrupted on Sydney transport right now"', gives an explicit, actionable when-to-use trigger and signals preference over other alert sources. There is no when-not guidance and no named alternative to use for non-current or historical queries, so the routing picture is clear but not exhaustive.

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.