Skip to main content
Glama

Train positions

get_train_positions
Read-onlyIdempotent

Retrieves live Amtrak train positions from the map feed, filtered by route name and bounding box, returning latitude, longitude, heading, and speed for each train.

Instructions

Live Amtrak train positions from the map feed. Filter with a route name (for example Northeast or Acela) and a bounding box (north, south, east, west). Each row includes latitude, longitude, compass heading, and speed in mph.

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": "get_train_positions"
  }
}

Input Schema

NameRequiredDescriptionDefault
eastNoEastern longitude of the box.
westNoWestern longitude of the box.
limitNoMaximum trains. Default 50.
northNoNorthern latitude of the box.
routeNoRoute name fragment, matched against the fleet route name.
southNoSouthern latitude of the box.

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?

The annotations already disclose that this is a read-only, idempotent, open-world, non-destructive operation, so the safety profile is covered. The description adds that positions come from the live map feed and lists key row fields, but it does not mention freshness, pagination behavior beyond the schema, or rate 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?

The description is three compact sentences with the core purpose front-loaded, followed by filtering guidance and return fields. Every sentence contributes useful information with no filler.

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?

For a live-data query tool with all optional parameters, the description covers the data source, filtering approach, and key output fields. Since there is no output schema, listing latitude, longitude, heading, and speed is helpful, though it omits some operational details such as default limit behavior and update freshness.

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 description coverage is 100%, so all six parameters are already documented in the input schema. The description adds route examples and restates the bounding-box order, but it does not clarify the route fragment matching or the default limit beyond what the schema provides.

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 clearly states a specific resource and operation: live Amtrak train positions from the map feed. It does not explicitly differentiate this tool from siblings such as get_train_status, but the resource focus is still clear enough to distinguish positions from status or alerts.

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?

It explains that results can be filtered by route name and bounding box, and gives route examples. However, it does not say when to use this tool versus get_train_status or get_station_board, nor does it state exclusions or limitations on filtering.

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