Ver metadata de un recurso (archivo)
get_resource_infoRetrieve metadata for a CKAN resource—format, size, MIME type, download URL, and parent dataset—using its resource ID before previewing or querying file contents.
Instructions
Metadata for one CKAN resource (file): format, size, MIME type, download URL and parent dataset. Take resource_id from list_dataset_resources; then preview_resource_data or query_resource_data for its contents.
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": "get_resource_info"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| 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 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | No | ||
| metadatos | Yes | ||
| url_fuente | No |