Skip to main content
Glama

Search Connections

search_connections
Read-onlyIdempotent

Find train connections between two Swiss stations. Accepts station names directly (e.g. "Zürich HB", "Bern") or UIC IDs — name resolution happens internally. Returns live schedules with departure/arrival times, duration, transfers, and trip IDs for downstream pricing/details/ticket calls. Live data: includes delays and cancellations for trains departing within 30 min.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
toYesDestination station name or ID (e.g. "Bern" or "8507000")
dateNoTravel date in YYYY-MM-DD format (default: today)
fromYesOrigin station name or ID (e.g. "Zurich HB" or "8503000")
timeNoTime in HH:MM (Europe/Zurich local time, 24h). By default treated as DEPARTURE time. Default: now.
arrival_timeNoDefaults to false (treat `time` as departure). Only set true when the user EXPLICITLY says they want to ARRIVE by a specific time ("I need to be in Bern by 9am", "arriving at 14:00"). For loose phrases like "around 9am", "morning", or "tomorrow at 9", leave this false — those mean departure time.

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already indicate read-only, idempotent, and non-destructive behavior. The description adds valuable context beyond this: 'name resolution happens internally' and 'Live data: includes delays and cancellations for trains departing within 30 min.' These details enrich understanding without contradicting 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 three sentences, each serving a clear purpose: what the tool does, accepted inputs, and what it returns. It is front-loaded and free of redundancy or fluff.

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?

Although there is no output schema, the description lists key return fields (departure/arrival times, duration, transfers, trip IDs) and the live-data caveat. It does not mention pagination or the existence of get_more_connections, but the description is still substantial for a search tool with this complexity.

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 detailed descriptions for each parameter. The main description does not add significant parameter-level meaning beyond what the schema already provides (e.g., station names/IDs are already mentioned in the schema). Baseline 3 is appropriate.

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: 'Find train connections between two Swiss stations.' It uses a specific verb and resource, and distinguishes itself from siblings like search_stations (which finds stations) and get_prices/get_trip_details (which are downstream).

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description positions this as the entry point for schedule queries, noting it returns 'trip IDs for downstream pricing/details/ticket calls.' This implies when to use it relative to siblings, but it does not explicitly mention alternatives or when-not-to-use, so it falls just short of a 5.

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

A4.4/5.0
Disambiguation5/5

Each tool has a clearly distinct role: station search, connection search, pagination of results, trip details, pricing, and ticket purchase. There is no overlap that would confuse an agent; the only similar pair (search_connections and get_more_connections) is explicitly separated as initial search vs. loading more results.

Naming Consistency5/5

All tool names follow a consistent verb_noun pattern (search_* for discovery, get_* for retrieval). The naming style is uniform and predictable, with no mixing of conventions or vague verbs.

Tool Count5/5

With 6 tools, the server is well-scoped for its purpose: searching stations, planning connections, viewing details, checking prices, and buying tickets. Each tool earns its place, and the count is neither too thin nor bloated.

Completeness5/5

The tool set covers the complete user journey from station lookup and connection search to trip details, pricing, and direct ticket purchase. The workflow has no dead ends; after a search, trip IDs link seamlessly to downstream tools like get_prices and get_ticket_link.