Skip to main content
Glama

Direct trains between stations

train_connections
Read-only

Find direct trains between two Finnish stations with departure and arrival times, live delays, tracks, and travel time to plan a journey.

Instructions

Direct trains from one Finnish station to another, with departure/arrival times, live delays, tracks and travel 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": {
      "from": "<from>",
      "to": "<to>"
    },
    "name": "train_connections"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYesArrival station code or name
dateNoTravel date YYYY-MM-DD (default: upcoming trains from now). For today, trains that have already left are left out unless 'after' is given.
fromYesDeparture station code or name
afterNoOnly trains departing at or after this local time (HH:MM). Implies today if no date.
limitNo

Output Schema

NameRequiredDescriptionDefault
toYes
dateYesYYYY-MM-DD, or "upcoming"
fromYes
connectionsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

The annotations already declare readOnlyHint=true and openWorldHint=true, so the safety and external-data profile is covered. The description adds that results include live delays, tracks, and travel time, which is useful context, but it says nothing about rate limits, geographic scope beyond 'Finnish,' or how direct-only filtering behaves.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single front-loaded sentence that names the route, the scope qualifier, and the payload without a wasted word. Nothing is buried or repeated.

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 high schema coverage, existing annotations, and an output schema, the definition carries only the burden of stating purpose and scope, which it does. The only real gap is guidance on when to choose this over the sibling board and status tools.

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 coverage is 80%, so the schema already documents station codes, the YYYY-MM-DD date, the HH:MM after-time, and the limit bounds. The description adds no parameter-level meaning beyond that, so the baseline of 3 applies.

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?

The description states a specific verb and resource: 'Direct trains from one Finnish station to another,' plus the data returned. That scoping word 'direct' separates it conceptually from a general journey planner and from siblings like train_status or station_board, 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 Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Nothing tells the agent when to pick this over station_board or train_status, nor are there prerequisites or exclusions. The agent must infer from the purpose line alone that this is the point-to-point connection search.

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