Skip to main content
Glama

Search railway stations

search_stations
Read-onlyIdempotent

Finds railway stations by name or public code among every station a stored train calls at, on every network GADUIN reads, whether or not it has a page on gaduin.com: name, public code (null where the railway has only an internal identifier: then pass the name with network to get_station_board), network, country, coordinates, time zone and how it matched. Matches rank by public code (or the railway's own station number), whole name, start of name, then any part of it; accents and case are ignored. total counts every match; returned is how many this answer holds, the first limit of them. coverage_days: the catalogue holds every station a train scheduled from that many days ago onward calls at.

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": {
      "q": "<q>"
    },
    "name": "search_stations"
  }
}

Input Schema

NameRequiredDescriptionDefault
qYesStation name, part of it, or its code, e.g. Zurich.
limitNoMax stations to return (1-50). Defaults to 20.
networkNoThe railway's country code to narrow the match, e.g. GB, US or CH.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, open-world and non-destructive, so the safety profile needs no restating. The description does add real behavior beyond that: the catalogue's scope, the ranking order of matches, how total versus returned relate to the limit, and what coverage_days measures. It stops short of describing the actual response shape or error behavior, so it sits at adequate rather than rich.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose is front-loaded in the first clause and every later clause carries distinct information (scope, ranking, pagination, coverage window). The weakness is that it is delivered as one long run-on sentence with nested parentheses, which makes the return-field list harder to scan than it needs to be.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the description carries the burden of explaining results and does so: it enumerates the returned fields, defines total versus returned relative to limit, and explains coverage_days. For a three-parameter read tool, an agent has everything needed to call it and interpret the answer.

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 coverage is 100%, so all three parameters are already documented in the schema and the baseline of 3 applies. The description adds some match semantics the schema lacks — accents and case are ignored, and ranking depends on whether the query hits a code or a name — but it does not explain the limit interaction or when network should be supplied beyond the single get_station_board case.

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 opening clause names a specific verb and resource ("Finds railway stations by name or public code") and immediately bounds the corpus it searches (stations any stored train calls at, across every network GADUIN reads, including ones without a gaduin.com page). It also distinguishes itself from get_station_board by naming that sibling for the internal-identifier case.

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 gives a concrete routing rule: when a station has no public code and only an internal identifier, use get_station_board with the name plus network instead. That is explicit alternative-selection guidance for one case, but there is no general statement of when a station lookup is the right starting point versus the board/punctuality siblings.

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.

Resources