find_institutions
Find SNS hospitals and local health units by name or nearest coordinates, including emergency-data availability and the stats_entity needed to query official waiting-time statistics.
Instructions
Find SNS hospitals / local health units (ULS) by name, or the nearest ones to a coordinate.
Use this first when the user names a hospital or a place ("hospitals near Lisbon",
"is there an emergency department near 38.72,-9.14?"), then pass stats_entity to
emergency_stats / surgery_wait_stats / consultation_wait_stats.
Each result: name, its parent ULS, coordinates, distance_km (when lat/lon given), whether
it reports emergency / consultation / surgery data on tempos.min-saude.pt, and
stats_entity — the name under which the official statistics report it (statistics are
per ULS / hospital group, not per building). This list does NOT contain live waiting times;
for live emergency waits send the user to https://tempos.min-saude.pt.
Args:
query: Part of the name, accent-insensitive, e.g. "Santa Maria", "Faro", "ULS Algarve".
lat, lon: Sort by distance from this point (WGS84), e.g. Lisbon 38.7223, -9.1393.
Without query, umbrella ULS entries are skipped (they duplicate a hospital's location).
emergency_only: Only places that report emergency-department data.
limit: Max results (default 10, max 50).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lat | No | ||
| lon | No | ||
| limit | No | ||
| query | No | ||
| emergency_only | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||