Query Public Transit / Transport
query_transitRetrieve public transit and transport data for a US or UK city to analyze ridership, traffic, and rail station usage.
Instructions
Public transit and transport data for a city in the US or UK.
US: NTD — ridership by agency and mode, service hours, efficiency (53 cities). UK: DfT — road traffic, bus passengers, rail station usage (8 major cities). CA: Not yet available.
Country auto-detected or specify with country parameter.
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>"
},
"name": "query_transit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| city | Yes | City name (e.g., 'NYC', 'Manchester', 'Chicago') | |
| country | No | Country code. Auto-detected from city name if omitted. Required for ambiguous cities like London, Birmingham, Richmond, Hamilton, Cambridge, Windsor. |