직통 노선 찾기
find_direct_routesFind direct bus routes between Korean stops without transfers, ranked by fewest stops, and identify correct boarding/alighting stop IDs when names match; if empty, use transfer routes.
Instructions
출발 정류소에서 도착 정류소까지 갈아타지 않고 가는 버스 노선을 찾습니다(이동 정류장 수가 적은 순). 이름이 같은 출발·도착 후보를 모두 넘기면, 어느 쪽 정류소에서 타고 내려야 하는지(fromNodeId/toNodeId)까지 판별합니다. 결과가 비어 있으면 직통 노선이 없는 것이니 find_transfer_routes로 환승 경로를 찾으세요. viaTurnaround가 true면 종점에서 회차해 가는 경로라 안내 시 언급하세요.
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": {
"cityCode": "<cityCode>",
"fromNodeIds": "<fromNodeIds>",
"toNodeIds": "<toNodeIds>"
},
"name": "find_direct_routes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cityCode | Yes | list_cities로 얻은 도시 코드. 예: 25(대전) | |
| toNodeIds | Yes | 정류소 ID 목록. 이름이 같은 정류소(길 건너편 등)가 여러 개면 모두 넣으세요. 최대 5개 | |
| fromNodeIds | Yes | 정류소 ID 목록. 이름이 같은 정류소(길 건너편 등)가 여러 개면 모두 넣으세요. 최대 5개 |