get_schema
Inspect a dataset's resources and column schemas, showing whether metadata is authoritative or inferred, to verify data structure before querying.
Instructions
Describe a resource's columns and how the schema was obtained (DataStore metadata = authoritative; inferred_from_file = best guess). Also lists the dataset's resources.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dataset_id | Yes | Dataset id or name from search_datasets. | |
| resource_id | No | Resource id; optional if the dataset has only one. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| note | No | ||
| error | No | ||
| schema | No | ||
| source | No | ||
| resources | No | ||
| row_count | No | ||
| dataset_id | No | ||
| dataset_url | No | ||
| resource_id | No | ||
| sample_rows | No | ||
| authoritative | No | False when the schema was only inferred from file contents. | |
| dataset_title | No | ||
| resource_name | No | ||
| schema_source | No | 'datastore_metadata', 'inferred_from_file' or 'unavailable'. | |
| sample_columns | No | ||
| table_name_in_queries | No |