Skip to content
Eden Engine

Swiss Connections: Journey Planner Between Two Swiss Locations

opendatachtransport/connections

Journey options between two Swiss locations from the national timetable: for each connection the departure and arrival (time, platform, delay), total duration, number of transfers, the products used, and the sections with line, operator and the stops passed. Give the origin and destination (names or station numbers), optionally a date (YYYY-MM-DD) and time (HH:MM) of departure, and how many connections to return (1 to 8, default 4). When date and time are omitted the next departures from now are returned. A pair the router cannot connect, or an unknown name, returns an empty list. Swiss Transport API data (timetable from opentransportdata.swiss), passed through unmodified and served by Eden Engine; not an official SBB or Opendata.ch product.

activeper callv1

Price

$0.0026 per call

You pay the price shown. If a call turns out to cost more than its quote, you pay the actual price, capped at twice the quote. No monthly minimum. Top-ups start at $0.50.

Data source

Swiss Transport API (Opendata.ch, data from opentransportdata.swiss)

Swiss public transport timetable data from opentransportdata.swiss, via the Swiss Transport API (transport.opendata.ch, operated by Opendata.ch), passed through unmodified; walking-route data is (c) OpenStreetMap contributors. Served by Eden Engine; not an official SBB, opentransportdata.swiss or Opendata.ch product.

Use it

Five steps: search, inspect, learn, run, settle. No per-tool setup; your agent reaches this tool through the meta-tools it already has.

Connect once and your AI can find and run this tool, and any other it needs.

agent
// 1. search: find the tool
omnial_search({ query: "what you need" })

// 2. inspect: price and input schema
omnial_inspect({ tool: "opendatachtransport/connections" })

// 3. learn: read the usage guide at runtime
omnial_learn({ tool: "opendatachtransport/connections" })

// 4. run: price the exact call first, then run it
omnial_execute({ tool: "opendatachtransport/connections", input: { /* see input_schema */ }, dry_run: true })
omnial_execute({ tool: "opendatachtransport/connections", input: { /* ... */ } })

// 5. settle: the call is charged when it finishes, nothing to do

Not connected yet? Point your MCP client at https://mcp.eden-engine.com/mcp, then copy a config for your client.

Pricing

Every charge this tool can incur.

ChargePrice
Per call
$0.0026
Updated
Oct 21, 2026

Input and output schemas

Input schema
input_schema.json
{
  "type": "object",
  "required": [
    "from",
    "to"
  ],
  "properties": {
    "to": {
      "type": "string",
      "maxLength": 100,
      "minLength": 2,
      "description": "Destination: station name or number, for example Geneve."
    },
    "date": {
      "type": "string",
      "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$",
      "description": "Departure date, YYYY-MM-DD, within the loaded timetable (about five months). Omit for today."
    },
    "from": {
      "type": "string",
      "maxLength": 100,
      "minLength": 2,
      "description": "Origin: station name or number, for example Lausanne."
    },
    "time": {
      "type": "string",
      "pattern": "^[0-2][0-9]:[0-5][0-9]$",
      "description": "Departure time, HH:MM, 24-hour Swiss local time. Omit for now."
    },
    "limit": {
      "type": "integer",
      "default": 4,
      "maximum": 8,
      "minimum": 1,
      "description": "How many connections to return, 1 to 8; defaults to 4."
    }
  },
  "additionalProperties": false
}
Output schema
output_schema.json
{
  "type": "object",
  "required": [
    "connections"
  ],
  "properties": {
    "to": {
      "type": [
        "object",
        "null"
      ],
      "additionalProperties": true
    },
    "from": {
      "type": [
        "object",
        "null"
      ],
      "additionalProperties": true
    },
    "stations": {
      "type": [
        "object",
        "array",
        "null"
      ],
      "additionalProperties": true
    },
    "connections": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "to": {
            "type": "object",
            "description": "Arrival checkpoint: station, `arrival`, `platform`, `delay`.",
            "additionalProperties": true
          },
          "from": {
            "type": "object",
            "description": "Departure checkpoint: station, `departure`, `platform`, `delay`.",
            "additionalProperties": true
          },
          "duration": {
            "type": [
              "string",
              "null"
            ],
            "description": "Total duration as DDdHH:MM:SS, for example 00d00:53:00."
          },
          "products": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "sections": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": true
            },
            "description": "The legs of the journey."
          },
          "transfers": {
            "type": [
              "integer",
              "null"
            ]
          }
        },
        "additionalProperties": true
      },
      "description": "One object per connection, earliest first."
    }
  },
  "description": "The journey options and the locations the names were matched to.",
  "additionalProperties": true
}