search_country_sweep
Cheapest live fares from one origin to every destination city in a whole country, in one call (e.g. London to all of Spain). Replaces dozens of route searches. Runs as a background job: returns a jobId; poll get_job_result until done.
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": {
"origin": "<origin>",
"country": "<country>",
"dates": "<dates>"
},
"name": "search_country_sweep"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dates | Yes | Departure dates YYYY-MM-DD. 1 to 31 dates per call; must be real calendar dates (2026-02-30 is rejected). | |
| oneway | No | Default true | |
| origin | Yes | e.g. "London" | |
| country | Yes | Country or continent, e.g. "Spain" | |
| nonstop | No | Default true |