Skip to main content
Glama

journeys

Read-only

Find SNCF train connections between two station IDs departing after a specified time, with real-time delays, cancellations, and skipped stops.

Instructions

Journeys between two stations (ids from find_station), departing after from_datetime (ISO 8601, Paris time if no offset; defaults to now). Leg delays, cancellations and skipped stops come from the SNCF GTFS-RT realtime feed (transport.data.gouv.fr, open licence); realtime_unavailable is set when it is down.

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": {
      "from_station": "<from_station>",
      "to_station": "<to_station>"
    },
    "name": "journeys"
  }
}

Input Schema

NameRequiredDescriptionDefault
countNo
to_stationYes
from_stationYes
from_datetimeNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

Beyond readOnlyHint and openWorldHint, the description discloses the data provenance (SNCF GTFS-RT realtime feed, open licence), the presence of leg delays, cancellations and skipped stops, and the realtime_unavailable degradation flag. That degradation behavior is exactly the kind of operational context annotations cannot carry.

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?

Three sentences, front-loaded with the core operation and parenthetical clarifications kept tight. No filler, though the timezone and feed-provenance details could be trimmed slightly for scanability.

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 an output schema present, the description need not explain return shapes, yet it still flags the realtime_unavailable field that matters for interpreting results. The one remaining hole is the undocumented count parameter for a tool whose complexity is otherwise well covered.

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 0%, so the description must compensate. It usefully defines from_station/to_station as ids from find_station and from_datetime as ISO 8601 with Paris-time fallback and a default of now, but says nothing about count (default 3, no stated maximum or meaning).

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?

States a specific verb and resource — journeys between two stations departing after a datetime — which an agent can distinguish from a single-station board like departures. It also names the prerequisite source for station ids (find_station), though it does not explicitly contrast itself with departures or disruptions.

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 implied rather than stated: the agent learns that station ids must come from find_station and that results are departures after a given time, which is a useful workflow cue. There is no explicit when-not-to-use or routing toward departures/disruptions for adjacent questions.

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

Deploy Server

Other Tools