Stations on a line
get_stations_by_lineGet all stations on a specific transit line. Supports DC Metro and NYC Subway.
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": {
"city": "<city>",
"lineCode": "<lineCode>"
},
"name": "get_stations_by_line"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| city | Yes | ||
| lineCode | Yes | Line code — DC: RD, BL, YL, OR, GR, SV | NYC: 1-7, A, C, E, B, D, F, M, N, Q, R, W, J, Z, L, G, SI |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| city | Yes | ||
| line | Yes | ||
| stations | Yes |