{"openapi":"3.1.0","info":{"title":"Ekispert (BYOK) API","version":"0.1.0","description":"Ekispert (BYOK) lets an AI assistant read your own Ekispert data through the Ekispert API with a key you supply (Ekispert API access key). Read-only: 8 tools (search_stations, get_station, list_stations, nearby_stations, stations_near_address, list_operation_lines, list_companies, search_route). The BYOK key travels with each request, is used for that one call only and is never stored, logged or...\n\nEvery operation is read-only or compute-only. The same tools are available over MCP (streamable HTTP) at https://byok-ekispert.connectorbay.com/mcp.","contact":{"name":"Unify Dynamics LLC","email":"agent@connectorbay.com","url":"https://connectorbay.com/byok-ekispert/docs"},"termsOfService":"https://connectorbay.com/byok-ekispert/terms"},"servers":[{"url":"https://byok-ekispert.connectorbay.com"}],"externalDocs":{"url":"https://connectorbay.com/byok-ekispert/docs"},"security":[{"upstreamKey":[]}],"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer","description":"Optional. A Pro API key raises rate limits; no credentials are required."},"upstreamKey":{"type":"apiKey","in":"header","name":"X-Upstream-Key","description":"Your own key for the service this connector wraps (bring your own key). Used for that one call only; never stored, logged or cached."}},"schemas":{"Error":{"type":"object","properties":{"ok":{"const":false},"error":{"type":"object"}}}}},"paths":{"/v1/tools/search_stations":{"post":{"operationId":"search_stations","summary":"Look up Japanese stations and stops by name (prefix or partial match): code, name, reading, transport kind and prefectur","description":"Look up Japanese stations and stops by name (prefix or partial match): code, name, reading, transport kind and prefecture. Use for \"What is the Ekispert station code for Tokyo station\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"name":{"description":"Station name or the start of it in Japanese, for example '東京'.","maxLength":200,"title":"Name","type":"string"},"name_match_type":{"anyOf":[{"enum":["forward","partial"],"type":"string"},{"type":"null"}],"default":"forward","description":"Name matching: forward (prefix, default) or partial.","title":"Name Match Type"},"type":{"anyOf":[{"maxLength":60,"type":"string"},{"type":"null"}],"default":null,"description":"Colon-separated transport kinds to include, for example train, bus, plane or ship (default all).","title":"Type"},"prefecture_code":{"anyOf":[{"maxLength":60,"type":"string"},{"type":"null"}],"default":null,"description":"Japanese prefecture code (1 to 47), colon-separated for several, for example 13 for Tokyo.","title":"Prefecture Code"}},"required":["name"],"title":"search_stationsArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/get_station":{"post":{"operationId":"get_station","summary":"Get one station by code with prefecture and coordinates (list form when searching by name, prefecture or company instead","description":"Get one station by code with prefecture and coordinates (list form when searching by name, prefecture or company instead). Use for \"Where is Ekispert station 22828\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"code":{"description":"Station code from search_stations.","minimum":1,"title":"Code","type":"integer"},"gcs":{"anyOf":[{"enum":["wgs84","tokyo"],"type":"string"},{"type":"null"}],"default":"wgs84","description":"Coordinate system of coordinates sent and returned: wgs84 (world) or tokyo (Japanese datum, the API default).","title":"Gcs"}},"required":["code"],"title":"get_stationArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/list_stations":{"post":{"operationId":"list_stations","summary":"List stations filtered by name, prefecture, company or line, 100 per block, with coordinates. Use for \"List the train st","description":"List stations filtered by name, prefecture, company or line, 100 per block, with coordinates. Use for \"List the train stations in prefecture 13 (Tokyo)\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"name":{"anyOf":[{"maxLength":60,"type":"string"},{"type":"null"}],"default":null,"description":"Station name prefix.","title":"Name"},"operation_line_code":{"anyOf":[{"maxLength":20,"type":"string"},{"type":"null"}],"default":null,"description":"Only stations of this operation line code (from list_operation_lines); exclusive with name.","title":"Operation Line Code"},"corporation_name":{"anyOf":[{"maxLength":60,"type":"string"},{"type":"null"}],"default":null,"description":"Only stations of this company name; exclusive with name.","title":"Corporation Name"},"type":{"anyOf":[{"maxLength":60,"type":"string"},{"type":"null"}],"default":null,"description":"Colon-separated transport kinds to include, for example train, bus, plane or ship (default all).","title":"Type"},"prefecture_code":{"anyOf":[{"maxLength":60,"type":"string"},{"type":"null"}],"default":null,"description":"Japanese prefecture code (1 to 47), colon-separated for several, for example 13 for Tokyo.","title":"Prefecture Code"},"offset":{"anyOf":[{"maximum":100000,"minimum":1,"type":"integer"},{"type":"null"}],"default":1,"description":"Position of the first record (default 1); page by raising it by limit.","title":"Offset"},"limit":{"anyOf":[{"maximum":100,"minimum":1,"type":"integer"},{"type":"null"}],"default":100,"description":"Records per block (1 to 100).","title":"Limit"},"gcs":{"anyOf":[{"enum":["wgs84","tokyo"],"type":"string"},{"type":"null"}],"default":"wgs84","description":"Coordinate system of coordinates sent and returned: wgs84 (world) or tokyo (Japanese datum, the API default).","title":"Gcs"}},"title":"list_stationsArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/nearby_stations":{"post":{"operationId":"nearby_stations","summary":"Find stations around a coordinate, nearest first, with straight-line distance in metres. Use for \"Which stations are wit","description":"Find stations around a coordinate, nearest first, with straight-line distance in metres. Use for \"Which stations are within 1 km of 35.6783,139.7704\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"geo_point":{"description":"Coordinates as 'latitude,longitude,coordinate system,radius metres', for example '35.6783,139.7704,wgs84,1000'.","maxLength":80,"title":"Geo Point","type":"string"},"type":{"anyOf":[{"maxLength":60,"type":"string"},{"type":"null"}],"default":null,"description":"Colon-separated transport kinds to include, for example train, bus, plane or ship (default all).","title":"Type"},"station_count":{"anyOf":[{"maximum":500,"minimum":0,"type":"integer"},{"type":"null"}],"default":null,"description":"Maximum number of stations when a radius is given (0 or empty for all).","title":"Station Count"},"gcs":{"anyOf":[{"enum":["wgs84","tokyo"],"type":"string"},{"type":"null"}],"default":"wgs84","description":"Coordinate system of coordinates sent and returned: wgs84 (world) or tokyo (Japanese datum, the API default).","title":"Gcs"}},"required":["geo_point"],"title":"nearby_stationsArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/stations_near_address":{"post":{"operationId":"stations_near_address","summary":"Find stations near a Japanese address, nearest first, with straight-line distance in metres. Use for \"Which stations are","description":"Find stations near a Japanese address, nearest first, with straight-line distance in metres. Use for \"Which stations are near Koenji-kita 2 in Suginami, Tokyo\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"address":{"description":"Japanese address text, optionally with radius, for example '東京都杉並区高円寺北2,500'.","maxLength":200,"title":"Address","type":"string"},"type":{"anyOf":[{"maxLength":60,"type":"string"},{"type":"null"}],"default":null,"description":"Colon-separated transport kinds to include, for example train, bus, plane or ship (default all).","title":"Type"},"gcs":{"anyOf":[{"enum":["wgs84","tokyo"],"type":"string"},{"type":"null"}],"default":"wgs84","description":"Coordinate system of coordinates sent and returned: wgs84 (world) or tokyo (Japanese datum, the API default).","title":"Gcs"}},"required":["address"],"title":"stations_near_addressArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/list_operation_lines":{"post":{"operationId":"list_operation_lines","summary":"List operating lines (railway, subway, bus lines) with company, line code, name and colour; filter by company or prefect","description":"List operating lines (railway, subway, bus lines) with company, line code, name and colour; filter by company or prefecture. Use for \"Which lines does Tokyo Metro operate according to Ekispert\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"name":{"anyOf":[{"maxLength":60,"type":"string"},{"type":"null"}],"default":null,"description":"Line name to match.","title":"Name"},"name_match_type":{"anyOf":[{"enum":["forward","partial"],"type":"string"},{"type":"null"}],"default":"forward","description":"Name matching: forward (default) or partial.","title":"Name Match Type"},"corporation_name":{"anyOf":[{"maxLength":60,"type":"string"},{"type":"null"}],"default":null,"description":"Only lines of this company name.","title":"Corporation Name"},"prefecture_code":{"anyOf":[{"maxLength":60,"type":"string"},{"type":"null"}],"default":null,"description":"Japanese prefecture code (1 to 47), colon-separated for several, for example 13 for Tokyo.","title":"Prefecture Code"},"offset":{"anyOf":[{"maximum":100000,"minimum":1,"type":"integer"},{"type":"null"}],"default":1,"description":"Position of the first record (default 1); page by raising it by limit.","title":"Offset"},"limit":{"anyOf":[{"maximum":100,"minimum":1,"type":"integer"},{"type":"null"}],"default":100,"description":"Records per block (1 to 100).","title":"Limit"}},"title":"list_operation_linesArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/list_companies":{"post":{"operationId":"list_companies","summary":"List transport companies (rail, bus, air, ship) with code, name and kind; filter by name, kind or prefecture. Use for \"W","description":"List transport companies (rail, bus, air, ship) with code, name and kind; filter by name, kind or prefecture. Use for \"Which railway companies run in Hokkaido\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"name":{"anyOf":[{"maxLength":60,"type":"string"},{"type":"null"}],"default":null,"description":"Company name prefix.","title":"Name"},"kind":{"anyOf":[{"enum":["bus","train"],"type":"string"},{"type":"null"}],"default":null,"description":"bus for bus companies or train for all others.","title":"Kind"},"prefecture_code":{"anyOf":[{"maxLength":60,"type":"string"},{"type":"null"}],"default":null,"description":"Japanese prefecture code (1 to 47), colon-separated for several, for example 13 for Tokyo.","title":"Prefecture Code"},"offset":{"anyOf":[{"maximum":100000,"minimum":1,"type":"integer"},{"type":"null"}],"default":1,"description":"Position of the first record (default 1); page by raising it by limit.","title":"Offset"},"limit":{"anyOf":[{"maximum":100,"minimum":1,"type":"integer"},{"type":"null"}],"default":100,"description":"Records per block (1 to 100).","title":"Limit"}},"title":"list_companiesArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/search_route":{"post":{"operationId":"search_route","summary":"Search routes between stations with times, transfers and fares (timetable based). Returns up to answerCount courses. Use","description":"Search routes between stations with times, transfers and fares (timetable based). Returns up to answerCount courses. Use for \"How do I get from Shinjuku to Kyoto on 20261120 leaving at 0900 and what does it cost\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"via_list":{"description":"Colon-separated stops, first is the origin and last the destination; each a station code or name, for example '新宿:京都'.","maxLength":300,"title":"Via List","type":"string"},"date":{"anyOf":[{"maximum":20991231,"minimum":20200101,"type":"integer"},{"type":"null"}],"default":null,"description":"Travel date as YYYYMMDD (default today).","title":"Date"},"time":{"anyOf":[{"maximum":2359,"minimum":0,"type":"integer"},{"type":"null"}],"default":null,"description":"Time as HHMM (default now).","title":"Time"},"search_type":{"anyOf":[{"enum":["departure","arrival","firstTrain","lastTrain","plain"],"type":"string"},{"type":"null"}],"default":"departure","description":"departure (default), arrival, firstTrain, lastTrain or plain.","title":"Search Type"},"sort":{"anyOf":[{"enum":["ekispert","price","time","transfer","teiki","co2"],"type":"string"},{"type":"null"}],"default":"ekispert","description":"Order: ekispert (default), price, time, transfer, teiki or co2.","title":"Sort"},"answer_count":{"anyOf":[{"maximum":20,"minimum":1,"type":"integer"},{"type":"null"}],"default":5,"description":"Maximum courses returned (1 to 20, default 5).","title":"Answer Count"},"gcs":{"anyOf":[{"enum":["wgs84","tokyo"],"type":"string"},{"type":"null"}],"default":"wgs84","description":"Coordinate system of coordinates sent and returned: wgs84 (world) or tokyo (Japanese datum, the API default).","title":"Gcs"}},"required":["via_list"],"title":"search_routeArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}}}}