Errance

Hosted MCP App, public transport worldwide powered by Transitous: journeys, boards, real time, maps

Sollte ich dies verwenden

Qualität und Sicherheit

A
Qualität der Beschreibung
97%
Vollständigkeit des Schemas
89%
Qualität der Benennung
82%
Risiko der Vergiftung
100%
Übereinstimmung der Berechtigungen
100%
Einhaltung des Protokolls
100%

Befunde (1)

  • LOWTool 'server_info' description lacks action verbin server_info

Basierend auf einer automatisierten Analyse der Tool-Definitionen und der Einhaltung des Protokolls.

Kontextkosten

~7,477Tokens (Tool-Definitionen)
~6.7 KBTypische Antwortgröße
Erhebliche Auswirkung auf die Aufmerksamkeit (5.84% von 128k Kontext)

Dies ist die ungefähre Anzahl der Tokens, die jedes Mal verbraucht werden, wenn die Tools des Servers in den Kontext eines Modells geladen werden. Höhere Werte verringern die Aufmerksamkeit, die für andere Aufgaben verfügbar ist.

Installieren

Installation mit einem Klick

Fügen Sie dies Ihrer Datei `claude_desktop_config.json` hinzu:

{
  "mcpServers": {
    "errance": {
      "url": "https://errance.litote.org/mcp"
    }
  }
}

Remote-Endpunkte

https://errance.litote.org/mcpstreamable-http

Was es kann

Tool-Inventar

Tools (10)

🟢 Nur lesen🟡 Schreiben🔴 Löschen⚪ Unbekannt
🟢search_places(text, types, near, limit, language)

Use this when the user asks for stops, stations, addresses or places themselves (e.g. "which stations are there in Lyon?", "what is near me?"). Searches them by name, or lists what is near a 'lat,lon'. Returns the id of each stop and the 'lat,lon' of the other places, which the other tools accept. Not needed before planning a journey or showing departures: those tools take the place names directly.

Eingabe-Schema

{
  "type": "object",
  "properties": {
    "text": {
      "type": "string",
      "description": "Name to search (e.g. 'Lyon Part-Dieu'), or 'lat,lon' for reverse geocoding."
    },
    "types": {
      "type": "array",
      "description": "Restricts the result types.",
      "items": {
        "type": "string",
        "enum": [
          "STOP",
          "ADDRESS",
          "PLACE"
        ]
      }
    },
    "near": {
      "type": "string",
      "description": "'lat,lon' to favor results near this position."
    },
    "limit": {
      "type": "integer",
      "description": "Maximum number of results (default 10).",
      "minimum": 1,
      "maximum": 50
    },
    "language": {
      "type": "string",
      "description": "Preferred language of the names, as ISO 639-1 code (e.g. fr, de). The names of the stations are translated in fr, es, en, nl, de and it (\"Gérone\" for Girona in fr)."
    }
  },
  "required": [
    "text"
  ]
}

Ausgabe-Schema

{
  "type": "object",
  "properties": {
    "kind": {
      "type": "string"
    },
    "query": {
      "type": "string"
    },
    "matches": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/PlaceMatchDto"
      }
    }
  },
  "required": [
    "kind",
    "query",
    "matches"
  ],
  "$defs": {
    "PlaceMatchDto": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "type": {
          "type": "string"
        },
        "lat": {
          "type": "number"
        },
        "lon": {
          "type": "number"
        },
        "area": {
          "type": "string"
        },
        "modes": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      },
      "required": [
        "id",
        "name",
        "type",
        "lat",
        "lon"
      ]
    }
  }
}
🟢server_info

Use this only when the user asks about the server itself: its version, whether real-time data and shared vehicles are available, its limits and default map position. Not needed before the other tools.

Eingabe-Schema

{
  "type": "object",
  "properties": {}
}

Ausgabe-Schema

{
  "type": "object",
  "properties": {
    "kind": {
      "type": "string"
    },
    "baseUrl": {
      "type": "string"
    },
    "motisVersion": {
      "type": "string"
    },
    "realTime": {
      "type": "boolean"
    },
    "gbfs": {
      "type": "boolean"
    },
    "hasElevation": {
      "type": "boolean"
    },
    "hasStreetRouting": {
      "type": "boolean"
    },
    "maxOneToAllTravelTimeMinutes": {
      "type": "number"
    },
    "initialView": {
      "$ref": "#/$defs/Coordinates"
    },
    "initialZoom": {
      "type": "number"
    }
  },
  "required": [
    "kind",
    "baseUrl",
    "motisVersion",
    "hasElevation",
    "hasStreetRouting",
    "maxOneToAllTravelTimeMinutes",
    "initialView",
    "initialZoom"
  ],
  "$defs": {
    "Coordinates": {
      "type": "object",
      "properties": {
        "lat": {
          "type": "number"
        },
        "lon": {
          "type": "number"
        }
      },
      "required": [
        "lat",
        "lon"
      ]
    }
  }
}
🟢explore_area(place, radiusKm, minLat, minLon, maxLat, ...)

Use this when the user asks which public transport stops and lines there are around a place, or whether public transport data is available somewhere. Shows the stops and lines of the area (a place and a radius, or bounds) on a map. Returns the 'routeIdx' of each line, for route_details, and the 'stopId' of each stop, for departures. Not for a journey (plan_journey) nor for shared bikes, scooters and cars (rentals).

Eingabe-Schema

{
  "type": "object",
  "properties": {
    "place": {
      "type": "string",
      "description": "Center of the area: place name, stop name or 'lat,lon'."
    },
    "radiusKm": {
      "type": "number",
      "description": "Radius around 'place' in km (default 1.5, max 50.0)."
    },
    "minLat": {
      "type": "number",
      "description": "South bound (instead of place/radiusKm)."
    },
    "minLon": {
      "type": "number",
      "description": "West bound (instead of place/radiusKm)."
    },
    "maxLat": {
      "type": "number",
      "description": "North bound (instead of place/radiusKm)."
    },
    "maxLon": {
      "type": "number",
      "description": "East bound (instead of place/radiusKm)."
    },
    "modes": {
      "type": "array",
      "description": "Only the stops and routes of these modes.",
      "items": {
        "type": "string",
        "enum": [
          "TRANSIT",
          "TRAM",
          "SUBWAY",
          "FERRY",
          "AIRPLANE",
          "BUS",
          "COACH",
          "RAIL",
          "HIGHSPEED_RAIL",
          "LONG_DISTANCE",
          "NIGHT_RAIL",
          "REGIONAL_FAST_RAIL",
          "REGIONAL_RAIL",
          "SUBURBAN",
          "FUNICULAR",
          "AERIAL_LIFT",
          "OTHER",
          "METRO",
          "CABLE_CAR"
        ]
      }
    },
    "language": {
      "type": "string",
      "description": "Preferred language of the names, as ISO 639-1 code (e.g. fr, de). The names of the stations are translated in fr, es, en, nl, de and it (\"Gérone\" for Girona in fr)."
    }
  }
}

Ausgabe-Schema

{
  "type": "object",
  "properties": {
    "kind": {
      "type": "string"
    },
    "title": {
      "type": "string"
    },
    "bbox": {
      "$ref": "#/$defs/Bbox"
    },
    "zoom": {
      "type": "number"
    },
    "stops": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "stopId": {
            "type": "string"
          },
          "modes": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "name"
        ]
      }
    },
    "routes": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/RouteDto"
      }
    },
    "totalStops": {
      "type": "integer"
    },
    "totalRoutes": {
      "type": "integer"
    },
    "zoomFiltered": {
      "type": "boolean"
    }
  },
  "required": [
    "kind",
    "title",
    "bbox",
    "zoom",
    "routes",
    "totalStops",
    "totalRoutes",
    "zoomFiltered"
  ],
  "$defs": {
    "Bbox": {
      "type": "object",
      "properties": {
        "minLat": {
          "type": "number"
        },
        "minLon": {
          "type": "number"
        },
        "maxLat": {
          "type": "number"
        },
        "maxLon": {
          "type": "number"
        }
      },
      "required": [
        "minLat",
        "minLon",
        "maxLat",
        "maxLon"
      ]
    },
    "RouteDto": {
      "type": "object",
      "properties": {
        "routeIdx": {
          "type": "integer"
        },
        "mode": {
          "type": "string"
        },
        "names": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "color": {
          "type": "string"
        },
        "textColor": {
          "type": "string"
        },
        "numStops": {
          "type": "integer"
        },
        "variants": {
          "type": "integer"
        }
      },
      "required": [
        "routeIdx",
        "mode",
        "names",
        "numStops",
        "variants"
      ]
    }
  }
}
🟢route_details(routeIdx, language)

Use this when the user asks about a line found by explore_area: shows it on a map with its path and all its stops. 'routeIdx' comes from explore_area.

Eingabe-Schema

{
  "type": "object",
  "properties": {
    "routeIdx": {
      "type": "integer",
      "description": "Route index returned by explore_area.",
      "minimum": 0
    },
    "language": {
      "type": "string",
      "description": "Preferred language of the names, as ISO 639-1 code (e.g. fr, de). The names of the stations are translated in fr, es, en, nl, de and it (\"Gérone\" for Girona in fr)."
    }
  },
  "required": [
    "routeIdx"
  ]
}

Ausgabe-Schema

{
  "type": "object",
  "properties": {
    "kind": {
      "type": "string"
    },
    "title": {
      "type": "string"
    },
    "bbox": {
      "$ref": "#/$defs/Bbox"
    },
    "zoom": {
      "type": "number"
    },
    "stops": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "stopId": {
            "type": "string"
          },
          "modes": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "name"
        ]
      }
    },
    "routes": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/RouteDto"
      }
    },
    "totalStops": {
      "type": "integer"
    },
    "totalRoutes": {
      "type": "integer"
    },
    "zoomFiltered": {
      "type": "boolean"
    }
  },
  "required": [
    "kind",
    "title",
    "bbox",
    "zoom",
    "routes",
    "totalStops",
    "totalRoutes",
    "zoomFiltered"
  ],
  "$defs": {
    "Bbox": {
      "type": "object",
      "properties": {
        "minLat": {
          "type": "number"
        },
        "minLon": {
          "type": "number"
        },
        "maxLat": {
          "type": "number"
        },
        "maxLon": {
          "type": "number"
        }
      },
      "required": [
        "minLat",
        "minLon",
        "maxLat",
        "maxLon"
      ]
    },
    "RouteDto": {
      "type": "object",
      "properties": {
        "routeIdx": {
          "type": "integer"
        },
        "mode": {
          "type": "string"
        },
        "names": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "color": {
          "type": "string"
        },
        "textColor": {
          "type": "string"
        },
        "numStops": {
          "type": "integer"
        },
        "variants": {
          "type": "integer"
        }
      },
      "required": [
        "routeIdx",
        "mode",
        "names",
        "numStops",
        "variants"
      ]
    }
  }
}
🟢reachability(place, maxTravelTimeMinutes, time, arriveBy, maxTransfers, ...)

Use this when the user asks how far they can go by public transport within a given time (e.g. "where can I go in 30 minutes from here?"), or, with arriveBy, from where a place can be reached within that time. Returns the reachable stops with their travel time, shown on a map colored by travel time. Not for a journey to a given destination (plan_journey).

Eingabe-Schema

{
  "type": "object",
  "properties": {
    "place": {
      "type": "string",
      "description": "Origin: place name, stop name, stop id or 'lat,lon'."
    },
    "maxTravelTimeMinutes": {
      "type": "integer",
      "description": "Maximum travel time in minutes (default 30).",
      "minimum": 1,
      "maximum": 240
    },
    "time": {
      "type": "string",
      "description": "Departure (or arrival) date-time, ISO-8601: with offset, or in the local time of the place. Default: now."
    },
    "arriveBy": {
      "type": "boolean",
      "description": "true: places from which 'place' can be reached."
    },
    "maxTransfers": {
      "type": "integer",
      "description": "Maximum number of transfers.",
      "minimum": 0,
      "maximum": 10
    },
    "modes": {
      "type": "array",
      "description": "Allowed transit modes (default: all).",
      "items": {
        "type": "string",
        "enum": [
          "TRANSIT",
          "TRAM",
          "SUBWAY",
          "FERRY",
          "AIRPLANE",
          "BUS",
          "COACH",
          "RAIL",
          "HIGHSPEED_RAIL",
          "LONG_DISTANCE",
          "NIGHT_RAIL",
          "REGIONAL_FAST_RAIL",
          "REGIONAL_RAIL",
          "SUBURBAN",
          "FUNICULAR",
          "AERIAL_LIFT",
          "OTHER",
          "METRO",
          "CABLE_CAR"
        ]
      }
    },
    "language": {
      "type": "string",
      "description": "Preferred language of the origin name, as ISO 639-1 code (e.g. fr, de)."
    }
  },
  "required": [
    "place"
  ]
}

Ausgabe-Schema

{
  "type": "object",
  "properties": {
    "kind": {
      "type": "string"
    },
    "origin": {
      "$ref": "#/$defs/PlaceDto"
    },
    "maxTravelTimeMinutes": {
      "type": "integer"
    },
    "totalPlaces": {
      "type": "integer"
    }
  },
  "required": [
    "kind",
    "origin",
    "maxTravelTimeMinutes",
    "totalPlaces"
  ],
  "$defs": {
    "PlaceDto": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        },
        "lat": {
          "type": "number"
        },
        "lon": {
          "type": "number"
        },
        "stopId": {
          "type": "string"
        },
        "modes": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "track": {
          "type": "string"
        },
        "arrival": {
          "type": "string"
        },
        "departure": {
          "type": "string"
        },
        "scheduledArrival": {
          "type": "string"
        },
        "scheduledDeparture": {
          "type": "string"
        },
        "cancelled": {
          "type": "boolean"
        },
        "tz": {
          "type": "string"
        },
        "area": {
          "type": "string"
        },
        "country": {
          "type": "string"
        }
      },
      "required": [
        "name",
        "lat",
        "lon"
      ]
    }
  }
}
🟢departures(stopId, stop, time, arriveBy, count, ...)

Use this when the user asks for the next departures or arrivals of a stop or station (timetable, delays, tracks). Give the stop name in 'stop', or its 'stopId' when another result gave it. Returns the departures with real-time delays, cancellations and tracks when available, shown as a departure board. For a railway station, the first answer also lists the lines of the whole station (its stops within 200 m), and the board shows its trains, metros and buses in tabs: call it without 'station', 'modes' and 'lines', unless the user asks for some modes or lines (e.g. the trains, metro line 14): then give 'station' true and those 'modes' or 'lines'. Not for a journey between two places (plan_journey), nor for the lines and stops around a place on a map (explore_area). Service alerts (disruptions, works, closed lines or elevators) active at the time of a leg or departure are numbered after it, e.g. 'alerts [1]', and listed at the end: tell the user briefly about those of the options you propose. The itineraries do not avoid the lines with an alert: warn when one says the service is interrupted (NO_SERVICE).

Eingabe-Schema

{
  "type": "object",
  "properties": {
    "stopId": {
      "type": "string",
      "description": "Exact stop id."
    },
    "stop": {
      "type": "string",
      "description": "Stop name, resolved by geocoding (used when stopId is missing)."
    },
    "time": {
      "type": "string",
      "description": "Start date-time, ISO-8601: with offset, or in the local time of the stop. Default: now."
    },
    "arriveBy": {
      "type": "boolean",
      "description": "true: arrivals instead of departures."
    },
    "count": {
      "type": "integer",
      "description": "Number of departures (default 20).",
      "minimum": 1,
      "maximum": 100
    },
    "modes": {
      "type": "array",
      "description": "Only these transit modes, when the user asks for them.",
      "items": {
        "type": "string",
        "enum": [
          "TRANSIT",
          "TRAM",
          "SUBWAY",
          "FERRY",
          "AIRPLANE",
          "BUS",
          "COACH",
          "RAIL",
          "HIGHSPEED_RAIL",
          "LONG_DISTANCE",
          "NIGHT_RAIL",
          "REGIONAL_FAST_RAIL",
          "REGIONAL_RAIL",
          "SUBURBAN",
          "FUNICULAR",
          "AERIAL_LIFT",
          "OTHER",
          "METRO",
          "CABLE_CAR"
        ]
      }
    },
    "station": {
      "type": "boolean",
      "description": "true: departures of all the stops of the station (within 200 m), not only of this stop."
    },
    "lines": {
      "type": "array",
      "description": "Only these lines of the station (names listed in the station lines), with 'station' true.",
      "items": {
        "type": "string"
      }
    },
    "pageCursor": {
      "type": "string",
      "description": "Cursor returned by a previous call, to get the next or previous page."
    },
    "language": {
      "type": "string",
      "description": "Preferred language of the names, as ISO 639-1 code (e.g. fr, de). The names of the stations are translated in fr, es, en, nl, de and it (\"Gérone\" for Girona in fr)."
    }
  }
}

Ausgabe-Schema

{
  "type": "object",
  "properties": {
    "kind": {
      "type": "string"
    },
    "stop": {
      "$ref": "#/$defs/PlaceDto"
    },
    "arriveBy": {
      "type": "boolean"
    },
    "stopTimes": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/StopTimeDto"
      }
    },
    "nextPageCursor": {
      "type": "string"
    },
    "previousPageCursor": {
      "type": "string"
    },
    "stationLines": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/StationLineDto"
      }
    },
    "alerts": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/AlertDto"
      }
    }
  },
  "required": [
    "kind",
    "stop",
    "arriveBy",
    "stopTimes"
  ],
  "$defs": {
    "PlaceDto": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        },
        "lat": {
          "type": "number"
        },
        "lon": {
          "type": "number"
        },
        "stopId": {
          "type": "string"
        },
        "modes": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "track": {
          "type": "string"
        },
        "arrival": {
          "type": "string"
        },
        "departure": {
          "type": "string"
        },
        "scheduledArrival": {
          "type": "string"
        },
        "scheduledDeparture": {
          "type": "string"
        },
        "cancelled": {
          "type": "boolean"
        },
        "tz": {
          "type": "string"
        },
        "area": {
          "type": "string"
        },
        "country": {
          "type": "string"
        }
      },
      "required": [
        "name",
        "lat",
        "lon"
      ]
    },
    "StopTimeDto": {
      "type": "object",
      "properties": {
        "time": {
          "type": "string"
        },
        "scheduledTime": {
          "type": "string"
        },
        "realTime": {
          "type": "boolean"
        },
        "cancelled": {
          "type": "boolean"
        },
        "mode": {
          "type": "string"
        },
        "line": {
          "type": "string"
        },
        "headsign": {
          "type": "string"
        },
        "realTimeSource": {
          "type": "string"
        },
        "routeColor": {
          "type": "string"
        },
        "routeTextColor": {
          "type": "string"
        },
        "track": {
          "type": "string"
        },
        "agency": {
          "type": "string"
        },
        "tripId": {
          "type": "string"
        },
        "trainNumber": {
          "type": "string"
        },
        "realTimeTripId": {
          "type": "string"
        },
        "stops": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/StopCallDto"
          }
        },
        "alerts": {
          "type": "array",
          "items": {
            "type": "integer"
          }
        }
      },
      "required": [
        "realTime",
        "cancelled",
        "mode",
        "line",
        "headsign",
        "agency",
        "tripId"
      ]
    },
    "StopCallDto": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        },
        "time": {
          "type": "string"
        }
      },
      "required": [
        "name"
      ]
    },
    "StationLineDto": {
      "type": "object",
      "properties": {
        "mode": {
          "type": "string"
        },
        "line": {
          "type": "string"
        },
        "agency": {
          "type": "string"
        },
        "routeColor": {
          "type": "string"
        },
        "routeTextColor": {
          "type": "string"
        }
      },
      "required": [
        "mode",
        "line",
        "agency"
      ]
    },
    "AlertDto": {
      "type": "object",
      "properties": {
        "header": {
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "url": {
          "type": "string"
        },
        "effect": {
          "type": "string"
        },
        "cause": {
          "type": "string"
        },
        "end": {
          "type": "string"
        },
        "linkText": {
          "type": "string"
        }
      },
      "required": [
        "header"
      ]
    }
  }
}
🟢trip_details(tripId, realTimeTripId, language)

Use this when the user asks for all the stops and times of a train, bus or other vehicle of a departures or plan_journey result (e.g. "where does this train stop?"). 'tripId' comes from those results. Service alerts (disruptions, works, closed lines or elevators) active at the time of a leg or departure are numbered after it, e.g. 'alerts [1]', and listed at the end: tell the user briefly about those of the options you propose. The itineraries do not avoid the lines with an alert: warn when one says the service is interrupted (NO_SERVICE).

Eingabe-Schema

{
  "type": "object",
  "properties": {
    "tripId": {
      "type": "string",
      "description": "Trip id, from departures or plan_journey."
    },
    "realTimeTripId": {
      "type": "string",
      "description": "The realTimeTripId of the departure, if it has one: the same train in another data source, which gives its real time."
    },
    "language": {
      "type": "string",
      "description": "Preferred language of the names, as ISO 639-1 code (e.g. fr, de). The names of the stations are translated in fr, es, en, nl, de and it (\"Gérone\" for Girona in fr)."
    }
  },
  "required": [
    "tripId"
  ]
}

Ausgabe-Schema

{
  "type": "object",
  "properties": {
    "kind": {
      "type": "string"
    },
    "tripId": {
      "type": "string"
    },
    "itinerary": {
      "$ref": "#/$defs/ItineraryDto"
    },
    "alerts": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/AlertDto"
      }
    }
  },
  "required": [
    "kind",
    "tripId",
    "itinerary"
  ],
  "$defs": {
    "ItineraryDto": {
      "type": "object",
      "properties": {
        "startTime": {
          "type": "string"
        },
        "endTime": {
          "type": "string"
        },
        "durationSeconds": {
          "type": "integer"
        },
        "transfers": {
          "type": "integer"
        },
        "legs": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/LegDto"
          }
        },
        "departure": {
          "$ref": "#/$defs/ItineraryStop"
        },
        "arrival": {
          "$ref": "#/$defs/ItineraryStop"
        },
        "transferStops": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      },
      "required": [
        "startTime",
        "endTime",
        "durationSeconds",
        "transfers",
        "legs"
      ]
    },
    "LegDto": {
      "type": "object",
      "properties": {
        "mode": {
          "type": "string"
        },
        "from": {
          "$ref": "#/$defs/PlaceDto"
        },
        "to": {
          "$ref": "#/$defs/PlaceDto"
        },
        "startTime": {
          "type": "string"
        },
        "endTime": {
          "type": "string"
        },
        "scheduledStartTime": {
          "type": "string"
        },
        "scheduledEndTime": {
          "type": "string"
        },
        "durationSeconds": {
          "type": "integer"
        },
        "realTime": {
          "type": "boolean"
        },
        "distanceMeters": {
          "type": "number"
        },
        "line": {
          "type": "string"
        },
        "headsign": {
          "type": "string"
        },
        "routeColor": {
          "type": "string"
        },
        "routeTextColor": {
          "type": "string"
        },
        "agency": {
          "type": "string"
        },
        "tripId": {
          "type": "string"
        },
        "trainNumber": {
          "type": "string"
        },
        "intermediateStops": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/PlaceDto"
          }
        },
        "alerts": {
          "type": "array",
          "items": {
            "type": "integer"
          }
        }
      },
      "required": [
        "mode",
        "from",
        "to",
        "startTime",
        "endTime",
        "scheduledStartTime",
        "scheduledEndTime",
        "durationSeconds",
        "realTime"
      ]
    },
    "PlaceDto": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        },
        "lat": {
          "type": "number"
        },
        "lon": {
          "type": "number"
        },
        "stopId": {
          "type": "string"
        },
        "modes": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "track": {
          "type": "string"
        },
        "arrival": {
          "type": "string"
        },
        "departure": {
          "type": "string"
        },
        "scheduledArrival": {
          "type": "string"
        },
        "scheduledDeparture": {
          "type": "string"
        },
        "cancelled": {
          "type": "boolean"
        },
        "tz": {
          "type": "string"
        },
        "area": {
          "type": "string"
        },
        "country": {
          "type": "string"
        }
      },
      "required": [
        "name",
        "lat",
        "lon"
      ]
    },
    "ItineraryStop": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        },
        "stopId": {
          "type": "string"
        },
        "time": {
          "type": "string"
        },
        "localTime": {
          "type": "string"
        },
        "track": {
          "type": "string"
        }
      },
      "required": [
        "name",
        "time"
      ]
    },
    "AlertDto": {
      "type": "object",
      "properties": {
        "header": {
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "url": {
          "type": "string"
        },
        "effect": {
          "type": "string"
        },
        "cause": {
          "type": "string"
        },
        "end": {
          "type": "string"
        },
        "linkText": {
          "type": "string"
        }
      },
      "required": [
        "header"
      ]
    }
  }
}
🟢plan_journey(from, to, position, time, arriveBy, ...)

Use this when the user asks how to get from one place to another by public transport (itineraries, times, transfers). Give the places as the user said them: names, addresses, stop ids or 'lat,lon'. Returns itineraries with their walking legs, transfers and real-time delays when available, shown as a list and on a map. When a name is ambiguous, it fails with the candidates: call it again with the right one. Between two city names (e.g. 'Paris' to 'Nantes'), the itineraries go from station to station, without the local legs; give an address for door to door. The itineraries may not all leave from or arrive at the same station: give the station, local time and track of the departure and of the arrival of each one. Not for the area reachable within a time (reachability) nor for the departures of a stop (departures). Service alerts (disruptions, works, closed lines or elevators) active at the time of a leg or departure are numbered after it, e.g. 'alerts [1]', and listed at the end: tell the user briefly about those of the options you propose. The itineraries do not avoid the lines with an alert: warn when one says the service is interrupted (NO_SERVICE).

Eingabe-Schema

{
  "type": "object",
  "properties": {
    "from": {
      "type": "string",
      "description": "Origin: place name, stop id or 'lat,lon'. Default: 'position'."
    },
    "to": {
      "type": "string",
      "description": "Destination: place name, stop id or 'lat,lon'. Names are searched near the origin."
    },
    "position": {
      "type": "string",
      "description": "Position of the user, 'lat,lon', only when the user gave or shared it: origin when 'from' is missing, else favors the places near it."
    },
    "time": {
      "type": "string",
      "description": "Departure (or arrival with arriveBy) date-time, ISO-8601: with offset, or in the local time of the origin. Default: now."
    },
    "arriveBy": {
      "type": "boolean",
      "description": "true: 'time' is the latest arrival time."
    },
    "modes": {
      "type": "array",
      "description": "Allowed transit modes (default: all).",
      "items": {
        "type": "string",
        "enum": [
          "TRANSIT",
          "TRAM",
          "SUBWAY",
          "FERRY",
          "AIRPLANE",
          "BUS",
          "COACH",
          "RAIL",
          "HIGHSPEED_RAIL",
          "LONG_DISTANCE",
          "NIGHT_RAIL",
          "REGIONAL_FAST_RAIL",
          "REGIONAL_RAIL",
          "SUBURBAN",
          "FUNICULAR",
          "AERIAL_LIFT",
          "OTHER",
          "METRO",
          "CABLE_CAR"
        ]
      }
    },
    "maxTransfers": {
      "type": "integer",
      "description": "Maximum number of transfers.",
      "minimum": 0,
      "maximum": 10
    },
    "maxWalkMinutes": {
      "type": "integer",
      "description": "Maximum walk (or bike ride) to the first stop and from the last stop, in minutes (default 25): lower for a user who walks little.",
      "minimum": 1,
      "maximum": 60
    },
    "walkingSpeed": {
      "type": "string",
      "description": "Walking speed (default NORMAL, about 4.3 km/h).",
      "enum": [
        "SLOW",
        "NORMAL",
        "FAST"
      ]
    },
    "wheelchair": {
      "type": "boolean",
      "description": "true: accessible paths for a wheelchair user."
    },
    "transferMargin": {
      "type": "string",
      "description": "COMFORTABLE: 5 more minutes reserved for each transfer (default NORMAL).",
      "enum": [
        "NORMAL",
        "COMFORTABLE"
      ]
    },
    "bike": {
      "type": "string",
      "description": "Bike of the user: TO_STATION (ridden to the first stop, then left there), ON_BOARD (carried on board, ridden at both ends; only trips allowing bikes). Default NONE.",
      "enum": [
        "NONE",
        "TO_STATION",
        "ON_BOARD"
      ]
    },
    "count": {
      "type": "integer",
      "description": "Minimum number of itineraries (default 5).",
      "minimum": 1,
      "maximum": 20
    },
    "pageCursor": {
      "type": "string",
      "description": "Cursor returned by a previous call, for earlier or later itineraries."
    },
    "language": {
      "type": "string",
      "description": "Preferred language of the names, as ISO 639-1 code (e.g. fr, de). The names of the stations are translated in fr, es, en, nl, de and it (\"Gérone\" for Girona in fr)."
    }
  },
  "required": [
    "to"
  ]
}

Ausgabe-Schema

{
  "type": "object",
  "properties": {
    "kind": {
      "type": "string"
    },
    "from": {
      "$ref": "#/$defs/PlaceDto"
    },
    "to": {
      "$ref": "#/$defs/PlaceDto"
    },
    "itineraries": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ItineraryDto"
      }
    },
    "direct": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ItineraryDto"
      }
    },
    "nextPageCursor": {
      "type": "string"
    },
    "previousPageCursor": {
      "type": "string"
    },
    "alerts": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/AlertDto"
      }
    },
    "maxWalkMinutes": {
      "type": "integer"
    }
  },
  "required": [
    "kind",
    "from",
    "to",
    "itineraries",
    "direct"
  ],
  "$defs": {
    "PlaceDto": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        },
        "lat": {
          "type": "number"
        },
        "lon": {
          "type": "number"
        },
        "stopId": {
          "type": "string"
        },
        "modes": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "track": {
          "type": "string"
        },
        "arrival": {
          "type": "string"
        },
        "departure": {
          "type": "string"
        },
        "scheduledArrival": {
          "type": "string"
        },
        "scheduledDeparture": {
          "type": "string"
        },
        "cancelled": {
          "type": "boolean"
        },
        "tz": {
          "type": "string"
        },
        "area": {
          "type": "string"
        },
        "country": {
          "type": "string"
        }
      },
      "required": [
        "name",
        "lat",
        "lon"
      ]
    },
    "ItineraryDto": {
      "type": "object",
      "properties": {
        "startTime": {
          "type": "string"
        },
        "endTime": {
          "type": "string"
        },
        "durationSeconds": {
          "type": "integer"
        },
        "transfers": {
          "type": "integer"
        },
        "legs": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/LegDto"
          }
        },
        "departure": {
          "$ref": "#/$defs/ItineraryStop"
        },
        "arrival": {
          "$ref": "#/$defs/ItineraryStop"
        },
        "transferStops": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      },
      "required": [
        "startTime",
        "endTime",
        "durationSeconds",
        "transfers",
        "legs"
      ]
    },
    "LegDto": {
      "type": "object",
      "properties": {
        "mode": {
          "type": "string"
        },
        "from": {
          "$ref": "#/$defs/PlaceDto"
        },
        "to": {
          "$ref": "#/$defs/PlaceDto"
        },
        "startTime": {
          "type": "string"
        },
        "endTime": {
          "type": "string"
        },
        "scheduledStartTime": {
          "type": "string"
        },
        "scheduledEndTime": {
          "type": "string"
        },
        "durationSeconds": {
          "type": "integer"
        },
        "realTime": {
          "type": "boolean"
        },
        "distanceMeters": {
          "type": "number"
        },
        "line": {
          "type": "string"
        },
        "headsign": {
          "type": "string"
        },
        "routeColor": {
          "type": "string"
        },
        "routeTextColor": {
          "type": "string"
        },
        "agency": {
          "type": "string"
        },
        "tripId": {
          "type": "string"
        },
        "trainNumber": {
          "type": "string"
        },
        "intermediateStops": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/PlaceDto"
          }
        },
        "alerts": {
          "type": "array",
          "items": {
            "type": "integer"
          }
        }
      },
      "required": [
        "mode",
        "from",
        "to",
        "startTime",
        "endTime",
        "scheduledStartTime",
        "scheduledEndTime",
        "durationSeconds",
        "realTime"
      ]
    },
    "ItineraryStop": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        },
        "stopId": {
          "type": "string"
        },
        "time": {
          "type": "string"
        },
        "localTime": {
          "type": "string"
        },
        "track": {
          "type": "string"
        }
      },
      "required": [
        "name",
        "time"
      ]
    },
    "AlertDto": {
      "type": "object",
      "properties": {
        "header": {
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "url": {
          "type": "string"
        },
        "effect": {
          "type": "string"
        },
        "cause": {
          "type": "string"
        },
        "end": {
          "type": "string"
        },
        "linkText": {
          "type": "string"
        }
      },
      "required": [
        "header"
      ]
    }
  }
}
🟢rentals(place, radiusKm, minLat, minLon, maxLat, ...)

Use this when the user looks for shared bikes, scooters or cars around a place, or asks whether some are available there (e.g. "are there shared bikes near Châtelet?", "where can I rent a scooter?"). Gives the real-time availability, which you cannot know without it: the sharing providers of the area (e.g. Vélib', Lime), their stations with the vehicles and free docks available now, and the free-floating vehicles, shown on a map. Not for public transport stops and lines (explore_area).

Eingabe-Schema

{
  "type": "object",
  "properties": {
    "place": {
      "type": "string",
      "description": "Center of the area: place name, stop name or 'lat,lon'."
    },
    "radiusKm": {
      "type": "number",
      "description": "Radius around 'place' in km (default 1.5, max 50.0)."
    },
    "minLat": {
      "type": "number",
      "description": "South bound (instead of place/radiusKm)."
    },
    "minLon": {
      "type": "number",
      "description": "West bound (instead of place/radiusKm)."
    },
    "maxLat": {
      "type": "number",
      "description": "North bound (instead of place/radiusKm)."
    },
    "maxLon": {
      "type": "number",
      "description": "East bound (instead of place/radiusKm)."
    },
    "providers": {
      "type": "array",
      "description": "Only these provider ids.",
      "items": {
        "type": "string"
      }
    },
    "withVehicles": {
      "type": "boolean",
      "description": "Include free-floating vehicles (default true)."
    },
    "language": {
      "type": "string",
      "description": "Preferred language of the place name, as ISO 639-1 code (e.g. fr, de)."
    }
  }
}

Ausgabe-Schema

{
  "type": "object",
  "properties": {
    "kind": {
      "type": "string"
    },
    "title": {
      "type": "string"
    },
    "bbox": {
      "$ref": "#/$defs/Bbox"
    },
    "providers": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/RentalProviderDto"
      }
    },
    "totalStations": {
      "type": "integer"
    },
    "totalVehicles": {
      "type": "integer"
    }
  },
  "required": [
    "kind",
    "title",
    "providers",
    "totalStations",
    "totalVehicles"
  ],
  "$defs": {
    "Bbox": {
      "type": "object",
      "properties": {
        "minLat": {
          "type": "number"
        },
        "minLon": {
          "type": "number"
        },
        "maxLat": {
          "type": "number"
        },
        "maxLon": {
          "type": "number"
        }
      },
      "required": [
        "minLat",
        "minLon",
        "maxLat",
        "maxLon"
      ]
    },
    "RentalProviderDto": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "groupId": {
          "type": "string"
        },
        "operator": {
          "type": "string"
        },
        "url": {
          "type": "string"
        },
        "color": {
          "type": "string"
        },
        "formFactors": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "stations": {
          "type": "integer"
        },
        "vehicles": {
          "type": "integer"
        },
        "areaVehicles": {
          "type": "integer"
        }
      },
      "required": [
        "id",
        "name",
        "groupId",
        "formFactors",
        "stations",
        "vehicles",
        "areaVehicles"
      ]
    }
  }
}
🟢data_sources(place, radiusKm, minLat, minLon, maxLat, ...)

Use this when the user asks where the data comes from: which open data feeds and transport operators cover a place, who provides the shared vehicles there, or the licenses and attributions of the data and maps. Without a place, lists the sources of the server; with a place, also the feeds, operators and shared mobility providers of the area. Not for the lines or stops themselves (explore_area).

Eingabe-Schema

{
  "type": "object",
  "properties": {
    "place": {
      "type": "string",
      "description": "Center of the area: place name, stop name or 'lat,lon'."
    },
    "radiusKm": {
      "type": "number",
      "description": "Radius around 'place' in km (default 1.5, max 50.0)."
    },
    "minLat": {
      "type": "number",
      "description": "South bound (instead of place/radiusKm)."
    },
    "minLon": {
      "type": "number",
      "description": "West bound (instead of place/radiusKm)."
    },
    "maxLat": {
      "type": "number",
      "description": "North bound (instead of place/radiusKm)."
    },
    "maxLon": {
      "type": "number",
      "description": "East bound (instead of place/radiusKm)."
    }
  }
}

Ausgabe-Schema

{
  "type": "object",
  "properties": {
    "kind": {
      "type": "string"
    },
    "area": {
      "type": "string"
    },
    "sources": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/DataSourceDto"
      }
    },
    "feeds": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/FeedDto"
      }
    },
    "operators": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/OperatorDto"
      }
    },
    "rentalProviders": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/SourceProviderDto"
      }
    }
  },
  "required": [
    "kind",
    "sources",
    "feeds",
    "operators",
    "rentalProviders"
  ],
  "$defs": {
    "DataSourceDto": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        },
        "role": {
          "type": "string"
        },
        "url": {
          "type": "string"
        },
        "license": {
          "type": "string"
        }
      },
      "required": [
        "name",
        "role"
      ]
    },
    "FeedDto": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "stops": {
          "type": "integer"
        },
        "modes": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      },
      "required": [
        "id",
        "stops",
        "modes"
      ]
    },
    "OperatorDto": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        },
        "url": {
          "type": "string"
        },
        "feed": {
          "type": "string"
        }
      },
      "required": [
        "name"
      ]
    },
    "SourceProviderDto": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        },
        "operator": {
          "type": "string"
        },
        "url": {
          "type": "string"
        }
      },
      "required": [
        "name"
      ]
    }
  }
}

Community

Diesen Server bewerten

Nachweis

Aktuelle Beobachtungen

verifiziertVersion nicht aufgezeichnet10 Tools