Skip to main content
Glama

departures

Read-only

Fetches upcoming train times from an SNCF station ID, including real-time delays, cancellations, skipped stops, and platforms when available.

Instructions

Next departures from a station (id from find_station). Delay, cancellation and skipped stop come from the SNCF GTFS-RT realtime feed (transport.data.gouv.fr, open licence); a train absent from it runs as planned (realtime false). Platform only when the SNCF API provides it. realtime_unavailable is set when the feed is down (planned times only). from_datetime is ISO 8601, Paris time if no offset; defaults to now.

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

Input Schema

NameRequiredDescriptionDefault
countNo
station_idYes
from_datetimeNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior5/5

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

Goes well beyond the readOnlyHint/openWorldHint annotations by disclosing the realtime data source (SNCF GTFS-RT, open licence), the meaning of realtime=false (absent train runs as planned), the realtime_unavailable fallback when the feed is down, and that platform is only present when the SNCF API supplies it. These are exactly the caveats an agent needs to interpret results and set expectations.

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?

Dense and front-loaded, leading with what the tool returns before caveats. The single run-on block is packed but nearly every clause carries information; a light break into the fallback/error semantics would improve scanning.

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?

Complete for a read-only query tool: an output schema exists so return shape needn't be described, and the realtime fallback modes are covered. The only real gap is the undocumented count parameter and lack of explicit sibling routing guidance.

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?

With 0% schema description coverage the description carries the burden, and it explains station_id's provenance, plus from_datetime's ISO 8601 format, Paris-time default offset, and now-default. The count parameter is never mentioned, leaving one of three parameters to be inferred from the schema alone.

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 ("Next departures from a station") and immediately disambiguates by tying the input to find_station, so it reads clearly against siblings like journeys and disruptions.

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?

Gives the required prerequisite (station id comes from find_station) and the default time window behavior (from_datetime defaults to now), which sets the calling context well. It stops short of saying when to prefer this over disruptions or journeys, so no explicit exclusions.

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