get_dataset_schema
Check a dataset's columns, geometry, CRS, extent, and source health before writing spatial queries. Avoid stale or missing sources by reviewing trust metadata.
Instructions
Get a dataset's schema and source trust metadata.
Returns columns (name/type/role), geometry type, CRS/SRID, feature count,
spatial extent, and the safe source_origin. source_health is healthy,
missing, inaccessible, or unknown: inaccessible means GeoLens could not
determine whether the source still exists, while unknown means it was never
probed or cannot be probed. source_health_detail is a fixed GeoLens reason
code, not provider text. last_checked_at records the latest probe attempt;
last_refreshed_at records only the latest successful committed refresh.
source_freshness is advisory; overdue means two declared update intervals
elapsed without a successful refresh. Raw provider URLs, origin pointers,
and credentials are excluded. Call this before writing spatial questions so
you know both the available columns and whether the source may be stale.
Args: dataset_id: Dataset id (e.g. from search_datasets).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dataset_id | Yes |