Skip to main content
Glama

Train stops

rj_train_stops
Read-onlyIdempotent

List every stop and time for a train by supplying its search-result ref, covering the full route including stations before your origin.

Instructions

List every stop of a train with its time, from a row's ref of rj_search_trains.

This is the whole route, including stations before your origin. Times are Tehran time; a time earlier than the one before it is after midnight.

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": {
      "ref": "<ref>"
    },
    "name": "rj_train_stops"
  }
}

Input Schema

NameRequiredDescriptionDefault
refYesThe `ref` of a row from rj_search_trains.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.2

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already cover safety (readOnly, idempotent, non-destructive), and the description goes further with non-obvious data traits: the return is the complete route rather than only the requested segment, timestamps are Tehran local time, and a time earlier than its predecessor indicates a post-midnight rollover. That midnight rule is exactly the kind of quirk an agent cannot infer from annotations or schema.

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?

Two short blocks, front-loaded with purpose and then the two data caveats. Every sentence carries information an agent needs; nothing is redundant padding.

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?

There is no output schema, so the description must characterize return values, and it does: stops with times, full route scope, and the timezone/rollover convention. For a one-parameter read-only lookup, nothing material is missing.

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?

With a single parameter and 100% schema description coverage, the schema already documents `ref` as coming from rj_search_trains, so the description's mention of the same provenance adds no new semantics. Baseline 3 applies since there is nothing further to clarify about a single opaque reference string.

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 specific verb and resource ('List every stop of a train with its time') and pins the input provenance to a row from rj_search_trains, which cleanly distinguishes it from rj_search_trains and rj_stations without needing the schema opened.

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?

Implicitly establishes the two-step workflow: you must first call rj_search_trains to obtain the `ref`, then call this for the route. It also warns that the result covers the whole route including stations before your origin, which shapes how an agent should read the output. No explicit when-not-to-use or exclusion statement is given.

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