Skip to main content
Glama
Fabsbags

swisstrip-mcp

by Fabsbags

Get Ticket Link

get_ticket_link
Read-only

Generates a direct purchase link for train tickets on SBB.ch, applying Halbtax or GA discounts automatically on mobile.

Instructions

Get a direct purchase link to buy a train ticket on SBB.ch. Only call this when the user wants to buy a specific ticket. On mobile with SBB app installed, opens directly in the app with Halbtax/GA applied automatically.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dateYesTravel date YYYY-MM-DD
timeYesDeparture time HH:MM
to_idYesDestination station ID (e.g. "8507000")
from_idYesOrigin station ID (e.g. "8503000")
to_nameYesDestination station name (e.g. "Bern")
trip_idYesTrip ID to purchase
from_nameYesOrigin station name (e.g. "Zürich HB")
traveler_typeNoTraveler typeADULT
reduction_cardNoSwiss reduction card: HALF_FARE (Halbtax), GA (General Abonnement), or NONEHALF_FARE

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.6.3

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so the description builds on that with useful behavioral details: automatic Halbtax/GA application and mobile app deep-linking. No contradictions with 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?

Three sentences, each serving a clear purpose: function, usage condition, and platform behavior. No 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?

The description covers the tool's purpose, when to use it, and key behavioral nuances. With a fully documented schema and annotations, this is sufficient for an agent to select and invoke it correctly, though it does not explicitly state the return format (a link is implied).

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?

All 9 parameters are fully documented in the schema (100% coverage), so the description does not need to explain them. It adds a minor note about Halbtax/GA being applied automatically, which aligns with the reduction_card parameter, but no further parameter-specific insight.

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: 'Get a direct purchase link to buy a train ticket on SBB.ch'. It uses a specific verb and resource, and the focus on 'buy' distinguishes it from sibling tools like search_connections or get_prices.

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 phrase 'Only call this when the user wants to buy a specific ticket' provides an explicit usage condition. It does not explicitly name alternative tools, but the condition implies this is for purchase scenarios rather than searching or pricing.

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