Skip to main content
Glama

train_arrivals

Read-onlyIdempotent

Get the next CTA 'L' trains for a station, including arrival minutes, destination, platform, and live, scheduled, or delayed status. Filter by line or limit results.

Instructions

Next 'L' trains at a station, with minutes, destination, platform and live/scheduled/delayed flags.

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": {
      "station": "<station>"
    },
    "name": "train_arrivals"
  }
}

Input Schema

NameRequiredDescriptionDefault
lineNo'L' line: Red, Blue, Brown, Green, Orange, Purple, Pink or Yellow.
stationYesStation name, map id (4xxxx) or platform stop id (3xxxx).
max_resultsNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, and openWorldHint, so the safety profile is covered. The description adds some value by naming the live/scheduled/delayed status flags, which hints at data freshness semantics, but it says nothing about result ordering, pagination, or coverage limits, and the field list overlaps with the provided output schema.

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?

A single front-loaded sentence with no filler, leading with the core action and following with the returned fields. Slightly terse — the 'L' shorthand and the compressed 'live/scheduled/delayed' phrasing take a moment to parse.

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?

With an output schema explaining return values and annotations covering safety, the description is adequate for a small read tool. It is still silent on default behavior when line is null and on result ordering/caps, which are the remaining questions an agent would have before calling it.

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 67%, so the schema already documents line (with the valid color list) and station identifier formats. The description only reinforces the station-scoping notion and does not explain what omitting line does or how max_results affects output, so it adds little beyond structured fields.

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?

The description names a specific verb and resource (next 'L' trains at a station) and previews the payload fields (minutes, destination, platform, live/scheduled/delayed flags). An agent can distinguish this from bus_arrivals or train_positions without opening the schema, though no sibling is named explicitly.

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 only implied by 'Next' trains at a station — there is no statement of when to prefer this over train_positions, follow_train, or line_status, and no mention of what happens when the line parameter is omitted. The context is clear enough for a simple lookup tool but leaves the comparison to siblings to inference.

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