Skip to main content
Glama

Kildeverk

Upcoming departures

transit_departures
Read-onlyIdempotent

Next departures from a stop (all its platforms) or from one quay, for every operator in Norway: scheduled and real-time times, delay, platform, line, destination and cancellations, plus any disruption notices. Optionally only some modes, or from a later start 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": {
      "stop": "<stop>"
    },
    "name": "transit_departures"
  }
}

Input Schema

NameRequiredDescriptionDefault
stopYesNSR id of a stop place ('NSR:StopPlace:59872', all its platforms) or of one quay ('NSR:Quay:571', one platform or side of the road). Find ids with transit_find_stops.
limitNo
modesNoe.g. ['rail'].
startNoLook from this time instead of now (local Norwegian time unless an offset is given). Real-time data only exists for the next few hours.
within_minutesNoOnly departures within this many minutes.
include_cancelledNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and open-world, so the safety profile needs no restating. Beyond that the description usefully discloses the payload's nature — mixed scheduled and real-time data, cancellations, and appended disruption notices — which tells the agent to expect nullable real-time fields and cancellation entries. The caveat about real-time data only existing for the next few hours lives in the schema rather than the description.

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?

Two sentences, front-loaded with the resource and its granularity, with no filler or marketing language. The first sentence is long and packs a full field list into one clause chain, which slightly hurts scannability but every clause carries information.

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?

There is no output schema, and the description compensates by naming the returned fields (times, delay, platform, line, destination, cancellations, disruption notices) so the agent can reason about the response shape. Combined with the schema's id pattern guidance and the real-time availability caveat, nothing essential to a correct call is missing.

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 67%, so the schema carries stop, modes, start and within_minutes reasonably well; the description still adds meaning by clarifying that a StopPlace id covers all platforms while a Quay id covers one platform, that modes is a filter, and that start shifts the query window. limit and within_minutes are left entirely to the schema, which keeps this short of a 5.

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?

"Next departures from a stop (all its platforms) or from one quay" gives a specific verb ('departures') plus the exact resource and its two granularities, and enumerates what comes back (scheduled/real-time times, delay, platform, line, destination, cancellations, disruptions). It is unmistakably a departure-board lookup, though it never names the neighbouring transit_journeys or transit_vehicles to rule them out explicitly.

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?

The closing sentence gives the two narrowing dimensions ('only some modes, or from a later start time'), which is usage guidance about optional filters. There is no statement of when NOT to use it (e.g., for point-to-point planning use transit_journeys) and no prerequisites, so the when-to-use signal is implied rather than stated.

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.