Skip to main content
Glama

Search Italian train stations

search_train_locations
Read-onlyIdempotent

Search Italian train stations by name across Trenitalia and Italo operators; station IDs are operator-specific, so use names for cross-operator results.

Instructions

TRAINS ONLY. Use for every request involving trains or rail to find operator-aware stations. Prefer names across operators; station IDs are operator-specific.

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": {
      "query": "<query>"
    },
    "name": "search_train_locations"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
queryYes
offsetNo
providerNo

Output Schema

NameRequiredDescriptionDefault
totalYes
errorsYes
locationsYes
truncatedYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.3.6
    • addedInput schema / properties / offset
      Added value: +{
      +  "default": 0,
      +  "maximum": 9007199254740991,
      +  "minimum": 0,
      +  "type": "integer"
      +}
    • changedOutput schema / properties / errors / items / properties / code / enum
      Previous value: -[
      -  "INVALID_INPUT",
      -  "UNKNOWN_LOCATION",
      -  "NO_JOURNEYS",
      -  "PROVIDER_UNAVAILABLE",
      -  "INCOMPATIBLE_RESPONSE",
      -  "RATE_LIMITED",
      -  "AMBIGUOUS_LOCATION",
      -  "COVERAGE_UNAVAILABLE",
      -  "QUOTE_UNAVAILABLE",
      -  "LIVE_STATUS_UNAVAILABLE",
      -  "TRAIN_NOT_FOUND"
      -]New value: +[
      +  "SEARCH_EXPIRED",
      +  "SEARCH_TOO_LARGE",
      +  "INVALID_INPUT",
      +  "UNKNOWN_LOCATION",
      +  "NO_JOURNEYS",
      +  "PROVIDER_UNAVAILABLE",
      +  "INCOMPATIBLE_RESPONSE",
      +  "RATE_LIMITED",
      +  "AMBIGUOUS_LOCATION",
      +  "COVERAGE_UNAVAILABLE",
      +  "QUOTE_UNAVAILABLE",
      +  "LIVE_STATUS_UNAVAILABLE",
      +  "TRAIN_NOT_FOUND"
      +]
  2. Addedv0.3.2

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive), so the description earns credit for adding a real gotcha: station IDs are operator-specific while names span operators. That is a substantive behavioral fact an agent would otherwise learn only by failure. It does not mention result size or pagination behaviour.

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?

Three short sentences with the scope constraint front-loaded in caps, so an agent reads the key discriminator first. Terse enough that the missing parameter guidance is an omission rather than clutter.

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

Completeness3/5

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

An output schema exists, so return values needn't be explained, and the read-only nature removes mutation concerns. Against 4 parameters with 0% schema coverage, however, the description leaves pagination and provider filtering entirely to inference, which is a meaningful gap for a search tool.

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

Parameters2/5

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

Schema description coverage is 0%, so the description carries the full burden. It partially compensates for the query parameter by steering toward station names and warning that IDs are operator-specific, but limit, offset, and the provider enum receive no explanation at all, and the pagination parameters are never mentioned.

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 and resource ('find operator-aware stations') with an emphasised scope marker ('TRAINS ONLY') that separates it from the generic search_locations sibling. It stops short of naming that sibling explicitly, so the differentiation is implied rather than spelled out.

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?

'Use for every request involving trains or rail' gives a clear selection rule, and 'TRAINS ONLY' implicitly excludes non-rail lookups. The caveat about station IDs being operator-specific is actionable, but no alternative tool is named for the non-train case.

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