Previsualizar los datos de un recurso
preview_resource_dataPreview the first rows of a CKAN resource as a table to inspect CSV, JSON, Excel, ODS, or compressed CSV data before querying or downloading it.
Instructions
First rows of a CKAN resource as a table: CSV/TSV, JSON/GeoJSON, XLS/XLSX/XLSB, ODS, and ZIP/tar.gz wrapping a CSV. Max 5 MB; for DataStore resources prefer query_resource_data.
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": {
"resource_id": "<resource_id>"
},
"name": "preview_resource_data"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rows | No | Number of data rows to preview (default: 20, max: 100) | |
| format | No | text summary (default) or json structured result. | text |
| source | No | CKAN portal; nacional (default), cuenca, latacunga or iadb. | nacional |
| resource_id | Yes | The resource UUID (get it from list_dataset_resources) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filas | No | ||
| source | No | ||
| columnas | No | ||
| metadatos | Yes | ||
| url_fuente | No |