Skip to main content
Glama

Train Connections

train_connections
Read-only

Lists direct MÁV trains between two stations for a chosen day, with optional departure-time filtering. Use it for timetable-style 'which trains go from A to B' queries.

Instructions

All direct MÁV trains between two stations for a whole day, like a timetable. Use this for 'which trains go from A to B tomorrow'; use plan_trip for door-to-door routes with transfers.

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": {
      "origin": "<origin>",
      "destination": "<destination>"
    },
    "name": "train_connections"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateNoDay, ISO format '2026-11-09'. Default: today
originYesRailway station or city, e.g. 'Miskolc', 'Debrecen', 'Budapest' (= Keleti, Nyugati, Déli, Kelenföld)
from_timeNoOnly trains leaving at or after this time, 'HH:MM'
destinationYesRailway station or city
include_detoursNoAlso list direct trains taking more than 1.5x the fastest (long way round)

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so the safety profile is covered. The description adds meaningful behavior beyond that: results are restricted to direct trains only (no transfers) and cover a full day. It does not state whether results are sorted by departure time or how detours are excluded by default, but include_detours is documented in the schema.

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?

Two short sentences, front-loaded with the core cap (direct trains, whole day) before the alternative routing. Zero wasted wording.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return values need not be explained. For a five-parameter filtered-list tool with full schema coverage and read-only annotations, nothing an agent needs to invoke it correctly is missing.

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 100%, so the schema already documents origin, destination, date, from_time and include_detours. The description reinforces the two-station and whole-day semantics but adds no syntax or format details beyond the schema. Baseline 3 is appropriate.

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 ('All direct MÁV trains between two stations for a whole day') with a clear scope qualifier ('direct', 'whole day') and explicitly distinguishes itself from plan_trip. An agent can identify this as the timetable-style direct-connection lister without opening the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

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

Gives a concrete example query ('which trains go from A to B tomorrow') and names the alternative (plan_trip) with the exact condition that selects it ('door-to-door routes with transfers'). Both when-to-use and when-not are explicit.

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