Skip to main content
Glama

get_arrivals

Retrieve live arrival times at Swiss transport stations to check upcoming departures and plan journeys using real-time public transit data.

Instructions

Get live arrivals at a Swiss transport station

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
stationYesStation name
limitNoNumber of arrivals (default: 10)
datetimeNoDateTime YYYY-MM-DDTHH:MM (default: now)

Implementation Reference

  • Handler logic for the "get_arrivals" tool in transport.ts.
    case "get_arrivals": {
      const url = buildUrl(`${BASE}/stationboard`, {
        station: args.station as string,
        limit: args.limit as number,
        datetime: args.datetime as string,
        type: "arrival",
      });
      const data = await fetchJSON<{ station: Station; stationboard: BoardEntry[] }>(url);
      return JSON.stringify({
        station: data.station?.name,
        arrivals: data.stationboard.map(slimBoardEntry),
      });
    }
  • Schema definition for the "get_arrivals" tool.
      name: "get_arrivals",
      description: "Get live arrivals at a Swiss transport station",
      inputSchema: {
        type: "object",
        required: ["station"],
        properties: {
          station: { type: "string", description: "Station name" },
          limit: { type: "number", description: "Number of arrivals (default: 10)" },
          datetime: { type: "string", description: "DateTime YYYY-MM-DDTHH:MM (default: now)" },
        },
      },
    },

Tool Definition Quality

Score is being calculated. Check back soon.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/vikramgorla/mcp-swiss'

If you have feedback or need assistance with the MCP directory API, please join our Discord server