Skip to main content
Glama

Errance

🚆 ⋯

trip_details
Read-only

All the stops of a trip (one vehicle run) with their times. 'tripId' comes from departures or plan_journey. Service alerts (disruptions, works, closed lines or elevators) active at the time of a leg or departure are numbered after it, e.g. 'alerts [1]', and listed at the end: tell the user briefly about those of the options you propose. The itineraries do not avoid the lines with an alert: warn when one says the service is interrupted (NO_SERVICE).

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

Input Schema

NameRequiredDescriptionDefault
tripIdYesTrip id.
languageNoPreferred language of the names, as ISO 639-1 code (e.g. fr, de). The names of the stations are translated in fr, es, en, nl, de and it ("Gérone" for Girona in fr).
realTimeTripIdNoThe realTimeTripId of the departure, if it has one: the same train in another feed, which gives its real time.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnly/openWorld/non-destructive, so the description correctly focuses on non-obvious behavior: alerts are numbered inline after the leg and listed at the end, itineraries do NOT avoid alerted lines, and NO_SERVICE must be surfaced as an interruption warning. That is genuinely useful disclosure an agent could not infer. It stops short of describing real-time vs. scheduled data behavior when realTimeTripId is supplied.

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?

Purpose is front-loaded in the first clause, followed by input provenance, then alert mechanics, then a directive. Dense but each sentence carries information. The alert/NO_SERVICE portion is slightly run-on and could be split for readability.

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 carries the return-value burden and does so partly: stops with times, inline numbered alerts, alert list at the end. It does not describe the per-stop fields or how real-time data alters the response, leaving a modest gap for a read tool with three parameters.

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 100%, so baseline is 3, but the description adds provenance for tripId that the schema's bare "Trip id." does not. It says nothing extra about language or realTimeTripId, leaving those wholly to the schema, which is acceptable given their documented descriptions.

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?

Opens with a concrete resource and scope: "All the stops of a trip (one vehicle run) with their times." The parenthetical "one vehicle run" distinguishes it from an itinerary-level tool like plan_journey or route_details without naming them. It is clear what is returned, though no sibling is named explicitly.

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 precondition for the key input: "'tripId' comes from departures or plan_journey," which tells the agent where to obtain it and implicitly which tools precede this one. It also prescribes downstream behavior (briefly tell the user about alerts for proposed options). No explicit when-not-to-use guidance, so not a 5.

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.