Consultar los datos de un recurso (DataStore)
query_resource_dataQuery tabular CKAN DataStore resources without downloading: run full-text searches, apply exact filters, sort, and paginate records to retrieve needed Ecuador open data.
Instructions
Query a tabular CKAN resource through the DataStore without downloading it: full-text query, exact filters (filters_json), sort and pagination.
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": "query_resource_data"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rows | No | Number of records to return (default 20, max 100) | |
| sort | No | Optional sort expression, e.g. "anio desc" | |
| query | No | Optional full-text search across datastore fields | |
| format | No | text summary (default) or json structured result. | text |
| offset | No | Pagination offset (default 0) | |
| source | No | CKAN portal; nacional (default), cuenca, latacunga or iadb. | nacional |
| resource_id | Yes | Resource UUID (from list_dataset_resources) | |
| filters_json | No | Optional JSON object of exact field filters, e.g. '{"provincia":"Pichincha"}' |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filas | No | ||
| source | No | ||
| columnas | No | ||
| metadatos | Yes | ||
| url_fuente | No |