Skip to main content
Glama

Kildeverk

Journeys from A to B

transit_journeys
Read-onlyIdempotent

Plan a public transport journey anywhere in Norway with Entur, all operators: the next journeys (or arriving by a time) with times, duration, changes, walking, and each leg's mode, line, stops, platforms, real-time times and cancellations. Each end as a stop id, a stop name or coordinates.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

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

Input Schema

NameRequiredDescriptionDefault
timeNoNorwegian local time unless an offset is given; default now.
limitNo
modesNoOnly these modes, e.g. ['rail'] for train only. Default: all.
originNoA stop place id ('NSR:StopPlace:337') or a stop's name ('Oslo S').
arrive_byNoTreat time as the latest arrival.
origin_latNo
origin_lonNo
destinationNo
destination_latNo
destination_lonNo

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 read-only, idempotent, open-world, non-destructive behavior, so the safety profile is covered. Beyond that, the description discloses what the response actually carries: times, duration, changes, walking, per-leg mode, line, stops, platforms, real-time times and cancellations — meaningful context the annotations do not supply. It stops short of noting anything about failures, ambiguity handling, or coverage limits.

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?

A single sentence that front-loads purpose, geography, and provider before enumerating the return fields. Dense but every clause adds information; the long parenthetical enumeration is slightly heavy but not wasteful.

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, the description must describe returns, and it does so thoroughly per leg. For a 10-parameter tool it is nearly complete, but with zero required parameters it never states the practical requirement that an origin and a destination (or their coordinate pairs) must be supplied, nor how ambiguity in a stop name is resolved.

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 only 40% across 10 parameters, so the description carries real weight — and it does: 'Each end as a stop id, a stop name or coordinates' explains the origin/destination/origin_lat/origin_lon/destination_lat/destination_lon cluster, and '(or arriving by a time)' maps to arrive_by. It adds nothing for limit or modes, but those already have schema descriptions.

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 ('Plan a public transport journey'), the provider and coverage ('anywhere in Norway with Entur, all operators'), and what the result contains per leg. The A-to-B framing separates it from a departures-board sibling without needing to name it.

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 only implied: the A-to-B framing tells an agent this is a routing tool, and the parenthetical '(or arriving by a time)' hints at the arrive_by variant. There is no explicit when-to-use/when-not guidance and no alternate tool named for departure-board or stop-lookup needs, which sibling names suggest exist.

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.