Read an open dataset
read_datasetInspect a datos.gob.es dataset's CSV or JSON columns, licence, and up to 20 sample rows to assess content before analysis.
Instructions
Read a datos.gob.es dataset: its columns and up to 20 sample rows, with its licence.
Reads CSV and JSON files listed in the catalogue (the first 5 MB). Columns that look like
personal data (names, ID numbers, emails, phones) are withheld. Values are shown as the
publisher published them.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"dataset_id": "<dataset_id>"
},
"name": "read_dataset"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dataset_id | Yes | An id from find_datasets. | |
| file_index | No | Which file of the dataset (from 0); default: the first CSV or JSON. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | ||
| checks | No | ||
| sources | Yes | ||
| confidence | Yes | Lowest confidence across inputs: high, medium or low. Never state a conclusion more strongly than this. |