Skip to main content
Glama

Get Connections

get_connections
Read-onlyIdempotent

Get public transport connections between two Swiss locations. Returns up to the requested number of next departures.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
toYesArrival station name or ID.
fromYesDeparture station name or ID.
limitNoMaximum number of connections to return. Defaults to 4.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
toYesArrival station
fromYesDeparture station
countYesNumber of connections returned
connectionsYesList of available connections

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "connections": {
      +      "description": "List of available connections",
      +      "items": {
      +        "properties": {
      +          "arrival": {
      +            "description": "Arrival stop details",
      +            "properties": {
      +              "arrival": {
      +                "description": "Arrival time at this stop",
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              },
      +              "delay": {
      +                "description": "Delay in minutes",
      +                "type": [
      +                  "number",
      +                  "null"
      +                ]
      +              },
      +              "departure": {
      +                "description": "Departure time from this stop",
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              },
      +              "platform": {
      +                "description": "Platform number",
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              },
      +              "station": {
      +                "properties": {
      +                  "coordinate": {
      +                    "properties": {
      +                      "x": {
      +                        "type": [
      +                          "number",
      +                          "null"
      +                        ]
      +                      },
      +                      "y": {
      +                        "type": [
      +                          "number",
      +                          "null"
      +                        ]
      +                      }
      +                    },
      +                    "type": [
      +                      "object",
      +                      "null"
      +                    ]
      +                  },
      +                  "id": {
      +                    "description": "Station identifier",
      +                    "type": [
      +                      "string",
      +                      "null"
      +                    ]
      +                  },
      +                  "name": {
      +                    "description": "Station name",
      +                    "type": [
      +                      "string",
      +                      "null"
      +                    ]
      +                  }
      +                },
      +                "type": "object"
      +              }
      +            },
      +            "type": "object"
      +          },
      +          "departure": {
      +            "description": "Departure stop details",
      +            "properties": {
      +              "arrival": {
      +                "description": "Arrival time at this stop",
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              },
      +              "delay": {
      +                "description": "Delay in minutes",
      +                "type": [
      +                  "number",
      +                  "null"
      +                ]
      +              },
      +              "departure": {
      +                "description": "Departure time from this stop",
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              },
      +              "platform": {
      +                "description": "Platform number",
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              },
      +              "station": {
      +                "properties": {
      +                  "coordinate": {
      +                    "properties": {
      +                      "x": {
      +                        "type": [
      +                          "number",
      +                          "null"
      +                        ]
      +                      },
      +                      "y": {
      +                        "type": [
      +                          "number",
      +                          "null"
      +                        ]
      +                      }
      +                    },
      +                    "type": [
      +                      "object",
      +                      "null"
      +                    ]
      +                  },
      +                  "id": {
      +                    "description": "Station identifier",
      +                    "type": [
      +                      "string",
      +                      "null"
      +                    ]
      +                  },
      +                  "name": {
      +                    "description": "Station name",
      +                    "type": [
      +                      "string",
      +                      "null"
      +                    ]
      +                  }
      +                },
      +                "type": "object"
      +              }
      +            },
      +            "type": "object"
      +          },
      +          "duration": {
      +            "description": "Total journey duration",
      +            "type": "string"
      +          },
      +          "sections": {
      +            "description": "Journey sections (vehicle legs or walks)",
      +            "items": {
      +              "properties": {
      +                "arrival": {
      +                  "description": "Section arrival stop",
      +                  "properties": {
      +                    "arrival": {
      +                      "type": [
      +                        "string",
      +                        "null"
      +                      ]
      +                    },
      +                    "delay": {
      +                      "type": [
      +                        "number",
      +                        "null"
      +                      ]
      +                    },
      +                    "departure": {
      +                      "type": [
      +                        "string",
      +                        "null"
      +                      ]
      +                    },
      +                    "platform": {
      +                      "type": [
      +                        "string",
      +                        "null"
      +                      ]
      +                    },
      +                    "station": {
      +                      "properties": {
      +                        "coordinate": {
      +                          "properties": {
      +                            "x": {
      +                              "type": [
      +                                "number",
      +                                "null"
      +                              ]
      +                            },
      +                            "y": {
      +                              "type": [
      +                                "number",
      +                                "null"
      +                              ]
      +                            }
      +                          },
      +                          "type": [
      +                            "object",
      +                            "null"
      +                          ]
      +                        },
      +                        "id": {
      +                          "type": [
      +                            "string",
      +                            "null"
      +                          ]
      +                        },
      +                        "name": {
      +                          "type": [
      +                            "string",
      +                            "null"
      +                          ]
      +                        }
      +                      },
      +                      "type": "object"
      +                    }
      +                  },
      +                  "type": "object"
      +                },
      +                "departure": {
      +                  "description": "Section departure stop",
      +                  "properties": {
      +                    "arrival": {
      +                      "type": [
      +                        "string",
      +                        "null"
      +                      ]
      +                    },
      +                    "delay": {
      +                      "type": [
      +                        "number",
      +                        "null"
      +                      ]
      +                    },
      +                    "departure": {
      +                      "type": [
      +                        "string",
      +                        "null"
      +                      ]
      +                    },
      +                    "platform": {
      +                      "type": [
      +                        "string",
      +                        "null"
      +                      ]
      +                    },
      +                    "station": {
      +                      "properties": {
      +                        "coordinate": {
      +                          "properties": {
      +                            "x": {
      +                              "type": [
      +                                "number",
      +                                "null"
      +                              ]
      +                            },
      +                            "y": {
      +                              "type": [
      +                                "number",
      +                                "null"
      +                              ]
      +                            }
      +                          },
      +                          "type": [
      +                            "object",
      +                            "null"
      +                          ]
      +                        },
      +                        "id": {
      +                          "type": [
      +                            "string",
      +                            "null"
      +                          ]
      +                        },
      +                        "name": {
      +                          "type": [
      +                            "string",
      +                            "null"
      +                          ]
      +                        }
      +                      },
      +                      "type": "object"
      +                    }
      +                  },
      +                  "type": "object"
      +                },
      +                "journey": {
      +                  "description": "Public transport vehicle details",
      +                  "properties": {
      +                    "category": {
      +                      "description": "Transport category (e.g., train, bus)",
      +                      "type": "string"
      +                    },
      +                    "name": {
      +                      "description": "Journey name",
      +                      "type": "string"
      +                    },
      +                    "number": {
      +                      "description": "Vehicle number",
      +                      "type": "string"
      +                    },
      +                    "operator": {
      +                      "description": "Transport operator name",
      +                      "type": "string"
      +                    },
      +                    "to": {
      +                      "description": "Vehicle destination",
      +                      "type": "string"
      +                    }
      +                  },
      +                  "type": [
      +                    "object",
      +                    "null"
      +                  ]
      +                },
      +                "walk": {
      +                  "description": "Walking segment details",
      +                  "properties": {
      +                    "duration": {
      +                      "description": "Walking duration in seconds",
      +                      "type": "number"
      +                    }
      +                  },
      +                  "type": [
      +                    "object",
      +                    "null"
      +                  ]
      +                }
      +              },
      +              "type": "object"
      +            },
      +            "type": "array"
      +          },
      +          "transfers": {
      +            "description": "Number of transfers required",
      +            "type": "number"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "count": {
      +      "description": "Number of connections returned",
      +      "type": "number"
      +    },
      +    "from": {
      +      "description": "Departure station",
      +      "properties": {
      +        "coordinate": {
      +          "description": "Geographic coordinates",
      +          "properties": {
      +            "x": {
      +              "description": "X coordinate (longitude)",
      +              "type": [
      +                "number",
      +                "null"
      +              ]
      +            },
      +            "y": {
      +              "description": "Y coordinate (latitude)",
      +              "type": [
      +                "number",
      +                "null"
      +              ]
      +            }
      +          },
      +          "type": [
      +            "object",
      +            "null"
      +          ]
      +        },
      +        "id": {
      +          "description": "Station identifier",
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "name": {
      +          "description": "Station name",
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        }
      +      },
      +      "type": "object"
      +    },
      +    "to": {
      +      "description": "Arrival station",
      +      "properties": {
      +        "coordinate": {
      +          "description": "Geographic coordinates",
      +          "properties": {
      +            "x": {
      +              "description": "X coordinate (longitude)",
      +              "type": [
      +                "number",
      +                "null"
      +              ]
      +            },
      +            "y": {
      +              "description": "Y coordinate (latitude)",
      +              "type": [
      +                "number",
      +                "null"
      +              ]
      +            }
      +          },
      +          "type": [
      +            "object",
      +            "null"
      +          ]
      +        },
      +        "id": {
      +          "description": "Station identifier",
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "name": {
      +          "description": "Station name",
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        }
      +      },
      +      "type": "object"
      +    }
      +  },
      +  "required": [
      +    "from",
      +    "to",
      +    "count",
      +    "connections"
      +  ],
      +  "type": "object"
      +}
  2. Changed1 schema field changed
    • addedInput schema / examples
      Added value: +[
      +  {
      +    "from": "Zurich HB",
      +    "to": "Geneva"
      +  },
      +  {
      +    "from": "Bern",
      +    "limit": 6,
      +    "to": "Lausanne"
      +  }
      +]
  3. First observed

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already establish the tool as read-only, idempotent, and non-destructive. The description adds that it returns 'up to the requested number of next departures,' which indicates the tool returns upcoming departures and respects a limit. However, it does not disclose other behavioral traits like sorting, time zone handling, or error behavior, so it adds only modest value beyond annotations.

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?

The description is two short, front-loaded sentences that state the core purpose and the return behavior with no filler. Every word earns its place, making it highly concise and well-structured.

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?

Given the tool's simplicity (3 parameters, all documented, with an output schema present), the description is largely sufficient. It explains the core function and the limit behavior, while annotations cover safety. It does not need to detail return values because an output schema exists. A minor gap is the lack of mention of any required time/date parameters (which the schema also omits), but for a basic connection query, the description is complete enough.

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%, meaning all parameters (from, to, limit) have descriptions. The description rephrases 'two Swiss locations' for from/to and mentions 'number of next departures' for limit but does not add new semantic meaning beyond the schema. Baseline 3 is appropriate due to high schema coverage.

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?

The description clearly states the tool's function: getting public transport connections between two Swiss locations, which distinguishes it from siblings like get_stationboard (departures for a single station) and search_stations (station lookup). It uses a specific verb 'Get' and resource 'connections'.

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?

The description implies usage for point-to-point connection queries but does not explicitly mention when not to use this tool or name alternatives. Sibling tools exist (e.g., get_stationboard, search_stations), but no guidance is given on choosing between them, so the context is clear but lacks 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.

TDQS

A3.9/5.0
Disambiguation3/5

Most tools have distinct names and purposes, but the ask_pipeworx family (ask_pipeworx, ask_pipeworx_beta, ask_pipeworx_grounded) creates ambiguity as they serve overlapping needs with slight variations. Additionally, the transport tools (get_connections, get_stationboard, search_stations) are clearly distinct from the rest, but the overall set mixes domains, making it harder for an agent to know which tool to pick.

Naming Consistency3/5

All tool names use snake_case, but there is no consistent pattern: some start with verbs (get_, list_, search_, remember, forget), some with nouns (entity_profile, recent_changes, recent_alerts), and others with adjectives (ai_visibility_check, deep_research). This inconsistency, while not chaotic, makes the set less predictable.

Tool Count1/5

The server name 'swisstransport' implies a narrow Swiss transport focus, but with 34 tools, only 3 are transport-related. The count is vastly inappropriate for the suggested purpose. Even considering the actual broad domain (data query, prediction markets, memory), 34 tools is on the high side and likely overwhelming for any single server.

Completeness4/5

Inferring the domain from the tool descriptions, the set covers a wide range of capabilities: data query (ask_pipeworx, deep_research), entity comparison (compare_entities), prediction markets (polymarket_*), memory (remember/recall), subscriptions, and more. There are few obvious gaps given the scope; for example, broader financial data is accessible through ask_pipeworx. The transport subset is minimal but present.