Skip to main content
Glama

train_positions

Read-onlyIdempotent

Get live locations of every in-service CTA 'L' train, optionally filtered by line, nearby station or coordinates, radius, or Loop-bound status.

Instructions

Live location of every in-service 'L' train (one CTA request covers all lines).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "train_positions"
  }
}

Input Schema

NameRequiredDescriptionDefault
nearNo'LAT,LON' or station name; keep trains within radius_m.
linesNoLines to include; default all eight.
radius_mNo
loop_onlyNoOnly trains whose next stop is on the elevated Loop.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, openWorldHint and idempotentHint, so the safety profile is covered. The parenthetical 'one CTA request covers all lines' adds real operational context by telling the agent not to fan out per line, but the description says nothing about data freshness or latency for a 'live' feed, nor about result size limits.

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?

A single front-loaded sentence with the scope defined first and the operational note parenthesized. Zero filler and nothing that could be cut without losing 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?

An output schema exists, so return values need no explanation, and annotations cover the safety and read-only profile. For a four-parameter all-optional query tool the description is nearly sufficient, with only freshness characteristics and the undocumented radius_m parameter left implicit.

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 75% and the description adds no parameter-level meaning beyond what the schema documents for near, lines and loop_only. radius_m is undocumented in the schema, and the description does not compensate — the 'keep trains within radius_m' semantics live only in the near parameter's text. Baseline 3 is appropriate given mostly-covered schema.

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: 'live location of every in-service L train', with the scope qualifier 'every in-service' clarifying it is a full-fleet snapshot rather than a single train. An agent can distinguish this from follow_train and train_arrivals by the resource itself, 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 implied by 'every in-service' train — this is the bulk-snapshot tool rather than a per-train or per-station query — but there is no explicit when-to-use or when-not-to-use guidance. Nothing tells the agent to prefer follow_train for a single train or train_arrivals for upcoming stops, so routing must be inferred from sibling names.

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