Skip to main content
Glama
tpjnorton

swiss-public-transport-mcp

by tpjnorton

get_booking_link

Create a direct SBB booking link for a specific train journey to enable quick ticket purchase.

Instructions

Get a direct link to buy tickets on sbb.ch for a specific journey.

Use this when someone wants to:

  • Buy a ticket ("book me a train from Zürich to Bern")

  • Get a link to the SBB website for a specific route and time

  • Share a timetable link with someone

Returns a ready-to-click URL that opens SBB's timetable with the search pre-filled.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
from_stationYes
to_stationYes
dateNo
timeNo
is_arrival_timeNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

With no annotations provided, the description carries the full burden. It transparently states that the tool returns a 'ready-to-click URL' with search pre-filled. While it could mention error behavior or rate limits, the core behavioral trait is clearly disclosed.

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 extremely concise, with three bullet points and a summary sentence. Every sentence adds value, no fluff, and the most important information is front-loaded.

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?

The tool has 5 parameters (2 required) and an output schema. The description covers the overall purpose and return value well but omits details on optional parameters and input validation. For a straightforward URL-generation tool, this is mostly adequate but could be slightly more complete.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema has 0% description coverage, and the tool description does not explain any parameters. Though the description mentions 'specific journey', it does not detail what each parameter (from_station, to_station, date, time, is_arrival_time) means or how to format them, leaving the agent without guidance beyond the schema.

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 returns a direct booking link for a specific journey. It lists concrete use cases like buying a ticket or sharing a timetable link, effectively distinguishing it from siblings like 'plan_journey' or 'get_stationboard'.

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 explicitly gives three scenarios for using the tool ('buy a ticket', 'get a link', 'share a timetable link'), which guides the agent on when to invoke it. However, it does not explicitly state when NOT to use it or mention alternatives among siblings, leaving some ambiguity.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

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/tpjnorton/swiss-public-transport-mcp'

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