Skip to main content
Glama

Switzerland OpenData Rail and Transit MCP

Get Swiss station coordinates

get_swiss_station_coordinates
Read-onlyIdempotent

Find the closest Swiss public transit stations to a given latitude and longitude with distances in meters.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "latitude": "<latitude>",
      "longitude": "<longitude>"
    },
    "name": "get_swiss_station_coordinates"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum nearby stations to return (default 10, max 20).
latitudeYesLatitude in Switzerland (e.g. 47.377847 for Zurich HB).
longitudeYesLongitude in Switzerland (e.g. 8.540192 for Zurich HB).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, openWorld and non-destructive, so the safety profile is covered. The description usefully adds that results include distances in meters, but it is silent on how far the search reaches (is it radius-bounded or just the N nearest?), which materially affects interpretation of results.

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?

One tightly constructed sentence with the proximity criterion, geographic scope and output units all front-loaded, and no filler whatsoever.

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?

For a simple, non-destructive read tool with full schema coverage and rich annotations, this is nearly complete; the only real gaps are the absence of any search-radius semantics and no hint about ordering beyond the word 'closest'.

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

Parameters4/5

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

Schema description coverage is 100% with min/max bounds and Zurich HB examples, so the schema does the heavy lifting. The description still adds meaning by establishing that results are ordered by closeness and that the limit caps 'nearby stations', reinforcing the ranking semantics of the return set.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb ('Find the closest') and resource ('Swiss public transit stations'), plus the input basis (latitude/longitude) and what comes back (distances in meters). It does not explicitly contrast with siblings like search_swiss_transit_locations, so an agent must infer that this one is coordinate-based proximity and the other is name/location search.

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?

Usage is implied by the phrasing 'to a given latitude and longitude' — you'd use this when you already have coordinates. There is no explicit when-to-use/when-not guidance and no named alternative for the case where the agent only has a station name, which is the main confusion risk with the sibling search tool.

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.