datasets_numbeo_cities_facets
Returns terms aggregation counts for the Numbeo cities dataset, honoring the same filters as Search the Numbeo cities dataset. Use alongside the related search tool to inspect filter counts under the same query filters.
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": {
"facet": "<facet>"
},
"name": "datasets_numbeo_cities_facets"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | No | Optional full-text query over the city name, max 256 characters. | |
| page | No | Result page number, 1-based, default 1; page times page_size must not exceed 10000. | |
| sort | No | Optional sort order. Allowed values: name_asc, cost_of_living_asc, cost_of_living_desc, quality_of_life_desc, safety_desc, crime_asc, health_care_desc, pollution_asc, traffic_asc. Defaults to relevance with q, otherwise name_asc. | |
| facet | Yes | Required facet to aggregate. Allowed values: country. | |
| country | No | Optional exact country filter, max 128 characters. | |
| page_size | No | Page size, default 20, max 100; page times page_size must not exceed 10000. | |
| max_crime_index | No | Optional maximum Crime Index. | |
| min_crime_index | No | Optional minimum Crime Index. | |
| min_safety_index | No | Optional minimum Safety Index. | |
| max_traffic_index | No | Optional maximum Traffic Index. | |
| max_pollution_index | No | Optional maximum Pollution Index. | |
| min_health_care_index | No | Optional minimum Health Care Index. | |
| max_cost_of_living_index | No | Optional maximum Cost of Living Index (New York = 100). | |
| min_cost_of_living_index | No | Optional minimum Cost of Living Index (New York = 100). | |
| min_quality_of_life_index | No | Optional minimum Quality of Life Index. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | The tool result payload (shape varies per tool; see each tool's docs resource). |