Compare civic indicators across places
compare_areasCompare key civic metrics for two to five Philippine locations side by side, with results in JSON or CSV format.
Instructions
Compare civic indicators for two to five Philippine places, side by side.
Calls get_area_profile for each place and builds one row per place, so an
agent does not have to call the profile tool once per place and merge the
results itself. locations needs 2 to 5 entries. metrics, when given, must
come from a fixed allowlist of eight names, and it defaults to all eight.
format is "json" or "csv". "csv" adds a CSV string under export.
Examples:
compare_areas(["Cebu City", "Davao City"]) compare_areas(["Cebu City", "Davao City"], metrics=["population"])
On failure: a rejected request, such as a wrong location count, too many or duplicate metrics, an unknown metric, or a bad format, never calls get_area_profile. It returns validation_error: true and data_status "invalid_request". A place that fails to resolve still gets a row, with resolved_name None, the overall data_status becomes "indeterminate" or "unavailable", and comparable turns false with a caveat naming the unresolved place.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | "json" (default) or "csv". | json |
| metrics | No | Names to compare, from population, population_year, poverty_incidence_pct, poverty_year, headline_inflation_pct, employment_rate_pct, infra_notice_count, earthquake_risk_level. Defaults to all eight. | |
| locations | Yes | 2 to 5 place names, e.g. ["Cebu City", "Davao City"]. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||