Skip to main content
Glama

search_stations

Read-only

Free. Resolve a station or city name to a stop_id. A bare city name resolves to that city's main rail hub only when exactly one candidate exists; the answer then carries a 'resolution' object naming the rule, the chosen station and the rejected alternatives. Use the returned stop_id as 'to' in plan_transfer. Every id-like field in a result carries an 'accepted_by' block saying whether it is valid as a station argument — read it instead of guessing: the 'eva' field is a station identifier, NOT a stop id, and is rejected by departures.

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 or city name, e.g. 'Leipzig Hbf'.
limitNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations only declare readOnlyHint=true, yet the description adds substantial behavior: the tool is free, the single-candidate city-name resolution rule, the presence of a 'resolution' object naming rule/chosen station/rejected alternatives, and an 'accepted_by' block on every id-like field. The 'eva' warning prevents a specific misuse that no structured field conveys.

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?

Front-loaded with cost and purpose, then the resolution rule, then downstream usage and the id-field caveat — a logical order with no filler. The 'accepted_by' sentence is dense and slightly convoluted but every clause carries actionable information.

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?

There is no output schema, so the description must describe return values, and it does so well (resolution object, accepted_by block). Only the 'limit' parameter's effect on the candidate set and output size is left unaddressed, a minor gap for a two-parameter tool.

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 coverage is 50% (q documented, limit not). The description compensates strongly for 'q' by explaining the bare-city-name resolution semantics and how to interpret the response, but it says nothing about 'limit' or how it interacts with the resolution rule, leaving one parameter entirely on 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?

States a precise verb and resource: 'Resolve a station or city name to a stop_id.' It also differentiates itself from siblings by naming plan_transfer (consumer of the stop_id) and departures (which rejects the 'eva' field), so an agent can place it in the workflow without opening another schema.

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?

Gives clear downstream usage ('Use the returned stop_id as \'to\' in plan_transfer') and a concrete pitfall (do not pass 'eva' to departures). It stops short of an explicit when-not-to-use rule, but no competing lookup tool is presented, so the guidance is adequate.

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