get_departure_cities
Find departure city IDs for group tours by matching Chinese name or pinyin, enabling subsequent tour searches.
Instructions
查询携程出发城市ID。当用户提到某出发城市(如上海、北京、合肥)时,先调用本工具按中文名/拼音模糊查询城市ID,再把ID传给 search_tours 或 recommend_tours 的 depart_city_id。
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": {
"keyword": "<keyword>"
},
"name": "get_departure_cities"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | 最多返回多少条城市,默认20 | |
| keyword | Yes | 出发城市中文名/拼音/英文名,支持模糊匹配,例如:合肥、hefei |