Odpt Resolve Station
odpt_resolve_stationFind a Japan train station by name, in English or Japanese ("Shinjuku" or "新宿"), and return its ODPT station id(s), operator, railway and coordinates, for looking up Japanese railway/metro stations (Tokyo Metro, JR East, Toei and other operators). ODPT has no name-search endpoint, so this fetches station master data for the given operator (or a short list of major Tokyo operators if none is given) and matches client-side, one station can have several ids, one per operator/railway that serves it. Use the returned station_id with odpt_station_timetable. Needs an ODPT developer consumer key via _apiKey; Pipeworx supplies one if omitted. Example: odpt_resolve_station({ query: "Shinjuku" }).
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"query": "Hakusan",
"operator": "Toei"
},
"name": "odpt_resolve_station"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max matches to return, 1-50. Default 10. | |
| query | Yes | Station name in English or Japanese, e.g. "Shinjuku" or "新宿". | |
| _apiKey | Yes | Optional: your own ODPT developer consumer key. Pipeworx supplies one if omitted. | |
| operator | No | Limit to one operator, e.g. "Tokyo Metro", "JR East", "Toei", or an exact odpt.Operator id. Default: searches several major Tokyo operators. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | No | ||
| query | No | ||
| source | No | ||
| stations | No | ||
| data_as_of | No |