station_headways
Calculate train headways at a CTA station by direction for a line and time range from locally recorded positions, covering median, p90, max, bunching, and longest gaps; requires local recording.
Instructions
From locally recorded positions: time between trains passing a station per direction (median,
p90, max, bunching, longest gaps). Needs chitransit record running on this machine.
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>",
"line": "<line>"
},
"name": "station_headways"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| line | Yes | 'L' line. | |
| since | No | '90m', '24h', '7d' or an ISO time. | 24h |
| until | No | Same formats; default now. | |
| station | Yes | Station name or map id. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||