Resolve a Philippine place name to PSGC
resolve_ph_locationResolve Philippine place names to official PSGC records, handling nicknames like QC or ambiguous names by returning best match and alternatives.
Instructions
Fuzzy-resolve a Philippine place name to its canonical PSGC record.
Handles common nicknames directly, such as "QC", "Gensan", "CDO", and
"Metro Manila". An ambiguous name such as "San Juan" still returns one
best match, plus an alternatives list of the other candidates. This
tool sets no data_status field on any path. Check matched and
upstream_error instead. Examples:
resolve_ph_location("Cebu City") exact city match resolve_ph_location("QC") nickname resolves to Quezon City resolve_ph_location("San Juan") ambiguous name, returns alternatives
On failure, a clean no-match returns matched: false and caveats, with no upstream_error key at all. When the PSGC API itself is unreachable, it returns matched: false, upstream_error: true, and the real error in caveats.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Free-text place name. Examples: "Sta. Mesa, Manila", "Cebu City", "NCR", "Pampanga", "Tagaytay". |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||