Get CKAN Resource
ckan_get_resourceRetrieve a CKAN resource's metadata and, for queryable files, its columns, data types, and row count so you can plan filters and sorting before querying.
Instructions
Get one file's details. For a queryable resource this also returns its columns, their types and the row count, which ckan_query_data needs for filters and sorting.
Values are often stored as text, including years such as "2565Q2", so check column types before comparing 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": {
"site": "<site>",
"resource_id": "<resource_id>"
},
"name": "ckan_get_resource"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site | Yes | Site alias from ckan_list_sites, e.g. 'nso' | |
| resource_id | Yes | Resource UUID, from ckan_get_dataset | |
| response_format | No | 'markdown' for readable text, 'json' for structured data | markdown |