Skip to main content
Glama

Switzerland OpenData Rail and Transit MCP

Plan Swiss rail connections

plan_swiss_rail_connections
Read-onlyIdempotent

Plan point-to-point Swiss SBB rail and public transit routes with departure times, transfers, durations, and platforms.

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": "plan_swiss_rail_connections"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYesDestination station (e.g. "Geneva", "Bern", "Lugano").
dateNoOptional travel date in YYYY-MM-DD format.
fromYesOrigin station (e.g. "Zurich HB", "Basel SBB").
timeNoOptional departure time in hh:mm format.
limitNoMaximum connections to return (default 4, max 16).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, openWorldHint, idempotentHint and destructiveHint=false, so the safety profile is covered. The description adds useful output context (the plan includes departure times, transfers, durations and platforms), but says nothing about behavior for unknown stations, network coverage limits outside the SBB network, or whether results are live versus scheduled.

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 with no filler; the resource and the returned fields come first. Nothing in it is redundant with the title or could be cut without losing information.

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?

Five parameters, full schema coverage, and rich annotations mean the description need not explain inputs or safety. It also sketches the return contents despite there being no output schema, which is the main remaining gap-filler. Only minor edges (error behavior for unrecognized stations) are unaddressed.

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%, with every parameter documented including formats (YYYY-MM-DD, hh:mm), examples and the default/max for limit. The description adds no parameter-level detail beyond 'point-to-point', so the schema is doing all the work and 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?

States a specific verb and resource ('Plan point-to-point Swiss SBB rail and public transit routes') and enumerates the returned fields (departure times, transfers, durations, platforms). It implicitly separates itself from siblings like check_swiss_rail_connection_delays and get_swiss_stationboard_departures by promising full route plans rather than delay or board data, but it never names or contrasts them explicitly.

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 only implied: an agent can infer this is for origin-to-destination journey planning from the 'point-to-point' phrasing. There is no statement of when to prefer this over get_swiss_stationboard_departures or check_swiss_rail_connection_delays, and no stated preconditions or exclusions.

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.