Skip to main content
Glama
kintscher

swiss-rail-mcp

by kintscher

last_train_home

Find the last train back to your home station tonight. Optionally specify an earliest departure time to receive the last connection and a summary.

Instructions

Find the latest realistic train back to home_station tonight.

Use this tool when the user asks "when's the last train home from ?" or wants reassurance about staying out late. Looks at connections departing around 22:00 (or after_time if given) and returns the latest one, plus a human-readable summary.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
after_timeNoOptional earliest departure as ``HH:MM`` (24h, Europe/Zurich). Defaults to ``"22:00"``.
home_stationYesDestination station (where you want to end up).
current_stationYesOrigin station (where you are now).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

No annotations are provided, so the description carries the full burden. It discloses that the tool looks at connections departing around 22:00 or after_time, returns the latest one, and includes a human-readable summary. This explains the search window and output format, adding context beyond a minimal description. It doesn't clarify 'realistic' or edge cases, but core behavior is transparent.

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 sentences, front-loaded with the main purpose, then usage guidance and behavior. Every clause earns its place with no filler or redundancy.

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?

With an output schema present, return values are specified elsewhere. The description provides sufficient context for selection and invocation: parameters are in schema, and behavior is described. Minor gaps like no-train results are not addressed, but for a simple tool this is adequate.

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?

The input schema provides descriptions for all three parameters, including home_station, current_station, and after_time with format and default. The description adds only a general reference to 'back to home_station' and 'after_time' but no additional syntax or detail beyond the schema, so the baseline of 3 applies.

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 states 'Find the latest realistic train back to home_station tonight' — a specific verb, resource, and scope. It clearly distinguishes from siblings like get_connections by focusing on the last train home, and from plan_evening_out by its single-query nature.

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?

It explicitly says 'Use this tool when the user asks "when's the last train home from <X>?" or wants reassurance about staying out late.' This gives clear triggering scenarios. It doesn't explicitly name alternatives, but the intent is unambiguous.

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/kintscher/swiss-rail-mcp'

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